File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ def create_toolchain(
7575 out += f"""\
7676 set(CMAKE_SYSTEM_NAME "Android")
7777set(CMAKE_SYSTEM_VERSION "{ android_api } ") # API level
78+ set(ANDROID_PLATFORM "android-{ android_api } ") # API level
7879set(CMAKE_ANDROID_ARCH_ABI "{ android_arch_abi } ")
80+ set(ANDROID_ABI "{ android_arch_abi } ")
7981set(CMAKE_ANDROID_NDK "$ENV{{ANDROID_NDK}}") # provided by GitHub
8082
8183string(COMPARE EQUAL "${{CMAKE_ANDROID_NDK}}" "" _is_empty)
@@ -95,6 +97,7 @@ def create_toolchain(
9597 # for android if we have libcxx in toolchain assume static runtime
9698 out += f"""\
9799 set(CMAKE_ANDROID_STL_TYPE "c++_static") # LLVM libc++ static
100+ set(ANDROID_STL "c++_static")
98101"""
99102
100103 m = re .match (r"^osx-(\d+)-(\d+)" , parsed_toolchain )
You can’t perform that action at this time.
0 commit comments