summaryrefslogtreecommitdiffstats
path: root/packaging/ios/iPhoneDeviceCMakeToolchain
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/ios/iPhoneDeviceCMakeToolchain')
-rw-r--r--packaging/ios/iPhoneDeviceCMakeToolchain20
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}")