build_capi_win.cmd (1079B)
1 echo Building for x86_64... 2 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" 3 set build_dir=build-capi-windows-x64 4 shift 5 echo Preparing directories... 6 rmdir /s /q %build_dir% 7 mkdir %build_dir% 8 pushd %build_dir% 9 set arguments=-DKFR_ENABLE_DFT=ON -DKFR_ENABLE_CAPI_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=C:/LLVM9/bin/clang-cl.exe 10 echo Running cmake -GNinja %arguments% .. 11 cmake -GNinja %arguments% .. || exit /b 12 echo Running ninja... 13 ninja kfr_capi || exit /b 14 popd 15 16 echo Building for x86... 17 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat" 18 set build_dir=build-capi-windows-x32 19 shift 20 echo Preparing directories... 21 rmdir /s /q %build_dir% 22 mkdir %build_dir% 23 pushd %build_dir% 24 set arguments=-DENABLE_DFT=ON -DENABLE_CAPI_BUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_CXX_COMPILER=C:/LLVM9/bin/clang-cl.exe 25 echo Running cmake -GNinja %arguments% .. 26 cmake -GNinja %arguments% .. || exit /b 27 echo Running ninja... 28 ninja kfr_capi || exit /b 29 popd