summaryrefslogtreecommitdiffstats
path: root/packaging/ios/iPhoneSimulatorCMakeToolchain
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2016-03-06 06:46:26 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-06 11:02:48 -0800
commit710b3615fe875cd99a78f643790201b587ffef97 (patch)
tree8cdf544c07bb6e7a67135b60479bac0a77616800 /packaging/ios/iPhoneSimulatorCMakeToolchain
parent74e6e0ed3798863ccffb39ab46dd88e67b4b460c (diff)
downloadsubsurface-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/iPhoneSimulatorCMakeToolchain')
-rw-r--r--packaging/ios/iPhoneSimulatorCMakeToolchain20
1 files changed, 20 insertions, 0 deletions
diff --git a/packaging/ios/iPhoneSimulatorCMakeToolchain b/packaging/ios/iPhoneSimulatorCMakeToolchain
new file mode 100644
index 000000000..0d3cc40a4
--- /dev/null
+++ b/packaging/ios/iPhoneSimulatorCMakeToolchain
@@ -0,0 +1,20 @@
+INCLUDE(CMakeForceCompiler)
+
+SET (CMAKE_CROSSCOMPILING TRUE)
+SET (CMAKE_SYSTEM_NAME "Darwin")
+SET (CMAKE_SYSTEM_PROCESSOR "i386")
+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}")