* Fix interpreter for libnd4j tests and drop test script * Remove mingw when specifying javacpp.platform, add new profile that triggers when javacpp.platform is windows-x86_64 * Update android 32 bit toolchain for x86 * Try triple instead of -target * Change to -target * Update 32 bit arm * Change android bin path * Update arm 32 bit build again Co-authored-by: Adam Gibson <1144306+agibsonccc@users.noreply.github.com>
23 lines
727 B
CMake
23 lines
727 B
CMake
# CMake toolchain to build for Android 5.0 or newer. Sample usage:
|
|
#
|
|
set(CMAKE_SYSTEM_NAME Android)
|
|
set(CMAKE_ANDROID_ARCH_ABI x86)
|
|
set(CMAKE_ANDROID_NDK "$ENV{ANDROID_NDK}")
|
|
set(CMAKE_ANDROID_STL_TYPE c++_shared)
|
|
set(CMAKE_SYSTEM_VERSION "$ENV{ANDROID_VERSION}")
|
|
set(CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION clang)
|
|
|
|
set(ANDROID TRUE)
|
|
if (WIN32)
|
|
set(CMAKE_C_COMPILER "$ENV{ANDROID_CC}.exe")
|
|
set(CMAKE_CXX_COMPILER "$ENV{ANDROID_CC}++.exe")
|
|
else()
|
|
set(CMAKE_C_COMPILER "$ENV{ANDROID_CC}")
|
|
set(CMAKE_CXX_COMPILER "$ENV{ANDROID_CC}++")
|
|
endif (WIN32)
|
|
|
|
|
|
|
|
add_definitions(-D__ANDROID_API__=$ENV{ANDROID_VERSION} -DANDROID -fPIC -ffunction-sections -funwind-tables -fstack-protector-strong -target i686-linux-android)
|
|
|