mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 07:39:25 +08:00
37 lines
797 B
Batchfile
37 lines
797 B
Batchfile
@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 |