"windows",
"windows_x86-64",
"darwin-x86",
- "darwin-x86-64",
+ "darwin-x86_64",
"linux-x86",
"linux-x86_64"
]
# SDK paths
ANDROID_SDK_PATH = selectFirstExistingDir([
+ os.environ.get("ANDROID_SDK_PATH", None),
os.path.expanduser("~/android-sdk-linux"),
os.path.expanduser("~/android-sdk-mac_x86"),
"C:/android/android-sdk-windows",
if (ANDROID_NDK_HOST_OS STREQUAL "linux-x86" OR
ANDROID_NDK_HOST_OS STREQUAL "linux-x86_64" OR
- ANDROID_NDK_HOST_OS STREQUAL "darwin-x86")
+ ANDROID_NDK_HOST_OS STREQUAL "darwin-x86" OR
+ ANDROID_NDK_HOST_OS STREQUAL "darwin-x86_64")
cmake_force_c_compiler("${LLVM_PATH}bin/clang" Clang)
cmake_force_cxx_compiler("${LLVM_PATH}bin/clang++" Clang)
set(CMAKE_AR "${LLVM_PATH}/bin/llvm-ar" CACHE FILEPATH "Archiver")
+ set(CMAKE_RANLIB "${CROSS_COMPILE}ranlib" CACHE FILEPATH "Indexer")
elseif (ANDROID_NDK_HOST_OS STREQUAL "windows")
cmake_force_c_compiler("${LLVM_PATH}bin/clang.exe" Clang)
cmake_force_cxx_compiler("${LLVM_PATH}bin/clang++.exe" Clang)