cmake: simplify android build
This commit is contained in:
parent
890c418536
commit
690b5147db
@ -214,7 +214,11 @@ endif()
|
||||
# Android
|
||||
if(ANDROID)
|
||||
if (NOT FREERDP_ANDROID_EXTERNAL_SSL_PATH)
|
||||
message(STATUS "FREERDP_ANDROID_EXTERNAL_SSL_PATH not set! - Needs to be set if openssl is not found in the android NDK (which usually isn't)")
|
||||
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/external/openssl")
|
||||
set(FREERDP_ANDROID_EXTERNAL_SSL_PATH "${CMAKE_CURRENT_SOURCE_DIR}/external/openssl")
|
||||
else()
|
||||
message(STATUS "FREERDP_ANDROID_EXTERNAL_SSL_PATH not set! - Needs to be set if openssl is not found in the android NDK (which usually isn't)")
|
||||
endif()
|
||||
endif()
|
||||
set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${FREERDP_ANDROID_EXTERNAL_SSL_PATH})
|
||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/client/Android/FreeRDPCore/libs/${ANDROID_ABI})
|
||||
|
@ -303,6 +303,12 @@ set( CMAKE_SYSTEM_NAME Linux )
|
||||
# this one not so much
|
||||
set( CMAKE_SYSTEM_VERSION 1 )
|
||||
|
||||
# Android SDK
|
||||
|
||||
if (NOT DEFINED ANDROID_SDK)
|
||||
set(ANDROID_SDK "$ENV{ANDROID_SDK}")
|
||||
endif()
|
||||
|
||||
# rpath makes low sence for Android
|
||||
set( CMAKE_SKIP_RPATH TRUE CACHE BOOL "If set, runtime paths are not added when using shared libraries." )
|
||||
|
||||
|
@ -126,7 +126,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(__STDC_ISO_10646__) || defined(MB_LEN_MAX) || defined(USE_MULTIBYTE) || TRIO_FEATURE_WIDECHAR
|
||||
# if !defined(TRIO_PLATFORM_WINCE)
|
||||
# if (!defined(TRIO_PLATFORM_WINCE) && !defined(ANDROID))
|
||||
# define TRIO_COMPILER_SUPPORTS_MULTIBYTE
|
||||
# if !defined(MB_LEN_MAX)
|
||||
# define MB_LEN_MAX 6
|
||||
|
Loading…
Reference in New Issue
Block a user