@echo off call loadenv.bat if "%1" == "dep" ( call installvcpkgs.bat ) else if not "%1" == "" ( if "%1" == "debug" ( call :config debug call :build debug ) else ( call :config %1 call :build %1 ) ) else ( for %%i in (x86 armeabi-v7a) do ( call :config %%i call :build %%i ) ) goto :EOF :config if "%1" == "debug" ( cmake -B ./build/Debug -DANDROID_ABI=x86 -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" -S . ) else ( cmake -B ./build/Release_%1 -DANDROID_ABI=%1 -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -S . ) goto :EOF :build if "%1" == "debug" ( cmake --build ./build/Debug --config Debug ) else ( cmake --build ./build/Release_%1 --config Release ) goto :EOF