diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2016-03-06 06:46:26 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-06 11:02:48 -0800 |
commit | 710b3615fe875cd99a78f643790201b587ffef97 (patch) | |
tree | 8cdf544c07bb6e7a67135b60479bac0a77616800 /packaging/ios/iPhoneDeviceCMakeToolchain | |
parent | 74e6e0ed3798863ccffb39ab46dd88e67b4b460c (diff) | |
download | subsurface-710b3615fe875cd99a78f643790201b587ffef97.tar.gz |
iOS build: add various support files
It's unclear why the build fails if we don't add the sample app files as
well.
[Dirk Hohndel: refactored the patches]
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ios/iPhoneDeviceCMakeToolchain')
-rw-r--r-- | packaging/ios/iPhoneDeviceCMakeToolchain | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packaging/ios/iPhoneDeviceCMakeToolchain b/packaging/ios/iPhoneDeviceCMakeToolchain new file mode 100644 index 000000000..35d8b8923 --- /dev/null +++ b/packaging/ios/iPhoneDeviceCMakeToolchain @@ -0,0 +1,20 @@ +INCLUDE(CMakeForceCompiler) + +SET (CMAKE_CROSSCOMPILING TRUE) +SET (CMAKE_SYSTEM_NAME "Darwin") +SET (CMAKE_SYSTEM_PROCESSOR "arm") +SET (CMAKE_OSX_SYSROOT "$ENV{PLATFORM_DIR}") + +SET (CMAKE_C_COMPILER $ENV{CC}) +SET (CMAKE_CXX_COMPILER $ENV{CXX}) + +SET (CMAKE_FIND_ROOT_PATH "$ENV{SDK_DIR}" "$ENV{PLATFORM_DIR}") +SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) + +MESSAGE (STATUS "PLATFORM_DIR = $ENV{PLATFORM_DIR}") +MESSAGE (STATUS "SDK_DIR = $ENV{SDK_DIR}") +MESSAGE (STATUS "CC = $ENV{CC}") +MESSAGE (STATUS "CXX = $ENV{CXX}") +MESSAGE (STATUS "LD = $ENV{LD}") |