Skip to content

Commit

Permalink
working release arm64 builds todo: arm32 and x86 etc for android
Browse files Browse the repository at this point in the history
  • Loading branch information
RevoluPowered committed Apr 15, 2024
1 parent d0f3153 commit e446dcf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/jolt/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,18 @@ elif env["platform"] == "macos":
elif env["platform"] == "android":
#cmake_platform_opts += ' -DANDROID_NDK_VERSION=23.2.8568313'
cmake_platform_opts += ' -DCMAKE_SYSTEM_NAME=Android'
cmake_platform_opts += ' -DCMAKE_SYSTEM_VERSION=23'
cmake_platform_opts += ' -DCMAKE_SYSTEM_VERSION=24'
cmake_platform_opts += ' -DANDROID_ABI=arm64-v8a'
cmake_platform_opts += ' -DANDROID_NDK=/Users/gordon/Library/Android/sdk/ndk/23.2.8568313'
cmake_platform_opts += ' -DCMAKE_ANDROID_STL_TYPE=c++_shared'
cmake_platform_opts += ' -DANDROID_STL=c++_shared'
cmake_platform_opts += ' -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a'
cmake_platform_opts += ' -DCMAKE_TOOLCHAIN_FILE=/Users/gordon/Library/Android/Sdk/ndk/23.2.8568313/build/cmake/android.toolchain.cmake'
cmake_platform_opts += ' -DCMAKE_ANDROID_NDK=/Users/gordon/Library/Android/sdk/ndk/23.2.8568313'
cmake_platform_opts += ' -DANDROID_ARM_NEON=ON'
cmake_platform_opts += ' -DANDROID_PLATFORM=android-24'
cmake_platform_opts += ' -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang'
cmake_platform_opts += ' -DCMAKE_CXX_FLAGS="-fPIC"'
cmake_generator_type = '"Unix Makefiles"'

elif env["platform"] == "windows":
Expand Down Expand Up @@ -171,6 +178,7 @@ cmake_opts += " -DMI_BUILD_SHARED=OFF "
cmake_opts += " -DMI_BUILD_OBJECT=OFF "
cmake_opts += " -DMI_BUILD_TESTS=OFF "
cmake_opts += " -DMI_OVERRIDE=OFF "
cmake_opts += " -DMI_USE_CXX=OFF "
if env["platform"] == "windows":
cmake_opts += " -DCMAKE_CXX_FLAGS_RELEASE=/MT"
cmake_opts += " -DCMAKE_C_FLAGS_RELEASE=/MT"
Expand Down

0 comments on commit e446dcf

Please sign in to comment.