|
|
|
@ -670,16 +670,12 @@ set( ANDROID_SYSTEM_LIB_DIRS "" ) |
|
|
|
|
set( LIBRARY_OUTPUT_PATH_ROOT ${CMAKE_SOURCE_DIR} CACHE PATH "root for library output, set this to change where android libs are installed to" ) |
|
|
|
|
set( CMAKE_INSTALL_PREFIX "${ANDROID_TOOLCHAIN_ROOT}/user" CACHE STRING "path for installing" ) |
|
|
|
|
|
|
|
|
|
set( DO_NOT_CHANGE_OUTPUT_PATHS_ON_FIRST_PASS OFF CACHE BOOL "" ) |
|
|
|
|
if( DO_NOT_CHANGE_OUTPUT_PATHS_ON_FIRST_PASS ) |
|
|
|
|
if( EXISTS "${CMAKE_SOURCE_DIR}/jni/CMakeLists.txt" ) |
|
|
|
|
set( EXECUTABLE_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH_ROOT}/bin/${ANDROID_NDK_ABI_NAME}" CACHE PATH "Output directory for applications" ) |
|
|
|
|
else() |
|
|
|
|
set( EXECUTABLE_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH_ROOT}/bin" CACHE PATH "Output directory for applications" ) |
|
|
|
|
endif() |
|
|
|
|
set( LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH_ROOT}/libs/${ANDROID_NDK_ABI_NAME}" CACHE PATH "path for android libs" ) |
|
|
|
|
if( EXISTS "${CMAKE_SOURCE_DIR}/jni/CMakeLists.txt" ) |
|
|
|
|
set( EXECUTABLE_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH_ROOT}/bin/${ANDROID_NDK_ABI_NAME}" CACHE PATH "Output directory for applications" ) |
|
|
|
|
else() |
|
|
|
|
set( EXECUTABLE_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH_ROOT}/bin" CACHE PATH "Output directory for applications" ) |
|
|
|
|
endif() |
|
|
|
|
set( DO_NOT_CHANGE_OUTPUT_PATHS_ON_FIRST_PASS ON CACHE INTERNAL "" FORCE ) |
|
|
|
|
set( LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH_ROOT}/libs/${ANDROID_NDK_ABI_NAME}" CACHE PATH "path for android libs" ) |
|
|
|
|
|
|
|
|
|
#includes |
|
|
|
|
list( APPEND ANDROID_SYSTEM_INCLUDE_DIRS "${ANDROID_SYSROOT}/usr/include" ) |
|
|
|
|