diff options
author | sanine <sanine.not@pm.me> | 2022-03-04 10:47:15 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-03-04 10:47:15 -0600 |
commit | 058f98a63658dc1a2579826ba167fd61bed1e21f (patch) | |
tree | bcba07a1615a14d943f3af3f815a42f3be86b2f3 /src/mesh/assimp-master/scripts/android_crosscompile/make_android.bat | |
parent | 2f8028ac9e0812cb6f3cbb08f0f419e4e717bd22 (diff) |
add assimp submodule
Diffstat (limited to 'src/mesh/assimp-master/scripts/android_crosscompile/make_android.bat')
-rw-r--r-- | src/mesh/assimp-master/scripts/android_crosscompile/make_android.bat | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mesh/assimp-master/scripts/android_crosscompile/make_android.bat b/src/mesh/assimp-master/scripts/android_crosscompile/make_android.bat new file mode 100644 index 0000000..a50695e --- /dev/null +++ b/src/mesh/assimp-master/scripts/android_crosscompile/make_android.bat @@ -0,0 +1,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
\ No newline at end of file |