diff options
Diffstat (limited to 'tools/depends/target/Toolchain_binaddons.cmake.in')
-rw-r--r-- | tools/depends/target/Toolchain_binaddons.cmake.in | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/depends/target/Toolchain_binaddons.cmake.in b/tools/depends/target/Toolchain_binaddons.cmake.in index a889085ecf..b0cd5748bb 100644 --- a/tools/depends/target/Toolchain_binaddons.cmake.in +++ b/tools/depends/target/Toolchain_binaddons.cmake.in @@ -33,15 +33,20 @@ elseif(OS STREQUAL osx) if(NOT APP_RENDER_SYSTEM) set(APP_RENDER_SYSTEM gl) endif() -elseif(OS STREQUAL ios) +elseif(OS STREQUAL darwin_embedded) set(CMAKE_SYSTEM_NAME Darwin) - set(CORE_SYSTEM_NAME ios) + set(CORE_SYSTEM_NAME darwin_embedded) + if(PLATFORM STREQUAL appletvos) + set(CORE_PLATFORM_NAME tvos) + else() + set(CORE_PLATFORM_NAME ios) + endif() if(NOT APP_RENDER_SYSTEM) set(APP_RENDER_SYSTEM gles) endif() endif() -if(CORE_SYSTEM_NAME STREQUAL ios OR CORE_SYSTEM_NAME STREQUAL osx) +if(CMAKE_SYSTEM_NAME STREQUAL Darwin) set(CMAKE_OSX_SYSROOT @use_sdk_path@) list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_OSX_SYSROOT} ${CMAKE_OSX_SYSROOT}/usr /usr/X11R6) set(CMAKE_LIBRARY_PATH @CMAKE_FIND_ROOT_PATH@/lib:@use_sdk_path@/lib:/usr/X11R6/lib) @@ -54,6 +59,7 @@ set(CMAKE_C_COMPILER @CC@) set(CMAKE_CXX_COMPILER @CXX@) set(CMAKE_AR @AR@ CACHE FILEPATH "Archiver") set(CMAKE_LINKER @LD@ CACHE FILEPATH "Linker") +set(CMAKE_NM @NM@ CACHE FILEPATH "Nm") set(CMAKE_OBJDUMP @OBJDUMP@ CACHE FILEPATH "Objdump") set(CMAKE_RANLIB @RANLIB@ CACHE FILEPATH "Ranlib") @@ -79,6 +85,7 @@ if(CORE_SYSTEM_NAME STREQUAL android) set(SDKROOT @use_sdk_path@) set(TOOLCHAIN @use_toolchain@) set(HOST @use_host@) + list(APPEND CMAKE_LIBRARY_PATH ${TOOLCHAIN}/sysroot/usr/lib/${HOST}/@use_ndk_api@) string(REPLACE ":" ";" SDK_BUILDTOOLS_PATH "@build_tools_path@") endif() |