* Fix cmake detection in msys * Fix toolchain file on windows * Make android 64 bit work * Fix libnd4j build script on msys * Update build script for windows/linux * Encoding issue for ci * Update pom.xml * Update pom.xml * Update pom.xml * Remove mingw * Ensure android x86 builds are inline with arm builds * Update toolchains and env variables for x86 * Move profile for build program up to parent * Fix blas vendor and add comment * Update cuda presets version * Set default value and move properties back to child pom * Change program from hard coded to use the script as the program * Update pom.xml * Update pom.xml * Static lib fix * Update static lib output * Get rid of old comments * Update static for buiding
22 lines
735 B
CMake
22 lines
735 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_64)
|
|
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 x86_64-none-linux-android)
|