diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-08-27 10:42:56 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-08-27 10:42:56 +0000 |
commit | 6223029c31bf72c6338e8d1bc7b43454708e118d (patch) | |
tree | 44fe265b8f66b0ecd0198885a5579a221c1fe09d /Toolchain | |
parent | 40009845f50524c06753724f9d19409ad6a9172e (diff) | |
download | navit-6223029c31bf72c6338e8d1bc7b43454708e118d.tar.gz |
Add:Build:Toolchain for iphone on linux build
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4722 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'Toolchain')
-rw-r--r-- | Toolchain/arm-apple-darwin9.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Toolchain/arm-apple-darwin9.cmake b/Toolchain/arm-apple-darwin9.cmake new file mode 100644 index 000000000..90a0ab821 --- /dev/null +++ b/Toolchain/arm-apple-darwin9.cmake @@ -0,0 +1,22 @@ + +# specify the cross compiler +SET(CMAKE_C_COMPILER "arm-apple-darwin9-gcc") +SET(CMAKE_CXX_COMPILER "arm-apple-darwin9-g++") +SET(CMAKE_RC_COMPILER_INIT "arm-apple-darwin9-windres") +SET(PKG_CONFIG_EXECUTABLE "arm-apple-darwin9-pkg-config") + +get_filename_component(COMPILER_PATH ${CMAKE_C_COMPILER} PATH) +set (SDKROOT "/work/compile/cc/iphone/trunk/toolchain" CACHE STRING "PATH to iPhone SDK") +set(CMAKE_FIND_ROOT_PATH "${SDKROOT}/sys") +INCLUDE_DIRECTORIES("${SDKROOT}/sys/usr/include") + +SET(USE_UIKIT TRUE) +SET(APPLE_BUILD TRUE) + +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +ADD_DEFINITIONS(-D__IPHONE_OS_VERSION_MIN_REQUIRED=20200) +set(CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_REQUIRED_FLAGS} -lobjc -framework CoreFoundation -bind_at_load") |