summaryrefslogtreecommitdiff
path: root/libs/assimp/scripts/android_crosscompile/make_android.bat
blob: a50695e16c62207c9c7d792b27e026d2d3c147ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off

set ASSIMP_PATH=D:\projects\asset-importer-lib\assimp
set CMAKE_PATH="C:\Program Files\CMake\bin\cmake.exe"
set ANDROID_NDK_PATH=C:\Users\kimkulling\AppData\Local\Android\Sdk\ndk-bundle
set ANDROID_CMAKE_PATH=contrib\android-cmake

pushd %ASSIMP_PATH%

rmdir /s /q build
mkdir build
cd build

%CMAKE_PATH% .. ^
  -G"MinGW Makefiles" ^
  -DCMAKE_BUILD_TYPE=Release ^
  -DCMAKE_TOOLCHAIN_FILE=%ANDROID_CMAKE_PATH%\android.toolchain.cmake ^
  -DCMAKE_MAKE_PROGRAM=%ANDROID_NDK_PATH%\prebuilt\windows-x86_64\bin\make.exe ^
  -DANDROID_NDK=%ANDROID_NDK_PATH% ^
  -DANDROID_NATIVE_API_LEVEL=android-9 ^
  -DASSIMP_ANDROID_JNIIOSYSTEM=ON ^
  -DANDROID_ABI=arm64-v8a ^
  -DASSIMP_BUILD_ZLIB=ON ^
  -DASSIMP_BUILD_TESTS=OFF

%CMAKE_PATH% --build .

popd