build instructions for Anaconda/Windows

pull/18/head
Jay Francis 2022-03-12 10:30:16 -05:00
rodzic 5dfde4709d
commit e908f1dc5c
2 zmienionych plików z 46 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,29 @@
setlocal EnableDelayedExpansion
@echo on
:: Set number of CPUs to use for build
set CPU_COUNT=3
:: Make a build folder and change to it
mkdir build
cd build
:: configure
cmake -G "Ninja" ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
..
if errorlevel 1 exit /B 1
:: build
cmake --build . --config Release -- -j%CPU_COUNT%
if errorlevel 1 exit /B 1
:: install
cmake --build . --config Release --target install
if errorlevel 1 exit /B 1
:: test
ctest --build-config Release --output-on-failure --timeout 120 -j%CPU_COUNT%
if errorlevel 1 exit /B 1

Wyświetl plik

@ -0,0 +1,17 @@
These are the steps used to locally build under Anaconda for Windows
- Installed VS 2019 Community Edition
- Installed Miniconda x64 for Windows
- Forked and locally cloned the original m17-cxx-demod repo
- Manually applied patches 0001, 0002, 0004 through 0010
- In a fresh Miniconda...
conda config --add channels conda-forge
conda create -n M17 vs2019_win-64 cmake ninja pkg-config boost-cpp gtest gmock gtest libcodec2
conda activate M17
- Copied https://github.com/conda-forge/m17-cxx-demod-feedstock/blob/master/recipe/bld.bat into my repo branch
- Modified the bld.bat
changed the exit 1 commands to exit /B 1 (so the command shell stayed open)
added set CPU_COUNT=3
- renamed bld.bat to windows_conda_build.bat
- Executed batch file - and it works! tests passed, and can run the apps