-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrebuild.bat
More file actions
15 lines (13 loc) · 728 Bytes
/
rebuild.bat
File metadata and controls
15 lines (13 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if exist src rmdir src /s /q
if exist CMakeFiles rmdir CMakeFiles /s /q
if exist lib rmdir lib /s /q
if exist SFML* del SFML*
if exist CMake* del CMake*
if exist Makefile del Makefile
if exist install* del install*
if exist cmake* del cmake*
cmake -DANDROID_ABI=%current_abi% -DANDROID_PLATFORM=android-21 -DCMAKE_TOOLCHAIN_FILE=%ndk_path%/build/cmake/android.toolchain.cmake -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=%ndk_path% -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_BUILD_TYPE=%build_type% -G "MinGW Makefiles" ../..
%ndk_path%\prebuilt\windows-x86_64\bin\make.exe
%ndk_path%\prebuilt\windows-x86_64\bin\make.exe install
IF %errorlevel% NEQ 0 exit /b %errorlevel%
exit