summaryrefslogtreecommitdiff
path: root/gyp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-02-18 13:26:44 +0100
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-03-22 11:56:01 -0700
commitc587eefbb1290cc01e3e14a0ae18a2d316a498fd (patch)
tree85f3ba7e5997fa1d9d1a0305ce563741cb772d5d /gyp
parentdb5ac4785fdc02b4e233201bb3c6f55270e3c65d (diff)
downloadqtlocation-mapboxgl-c587eefbb1290cc01e3e14a0ae18a2d316a498fd.tar.gz
[ios] make unit tests work on iOS and iOS Simulator
Diffstat (limited to 'gyp')
-rw-r--r--gyp/ios.gyp1
-rw-r--r--gyp/target-ios-bundle.gypi5
-rw-r--r--gyp/target-ios.gypi27
3 files changed, 33 insertions, 0 deletions
diff --git a/gyp/ios.gyp b/gyp/ios.gyp
index 6798384ef4..f07805d315 100644
--- a/gyp/ios.gyp
+++ b/gyp/ios.gyp
@@ -3,5 +3,6 @@
'../platform/ios/app/mapboxgl-app.gypi',
'../platform/ios/framework/framework-ios.gypi',
'../platform/ios/benchmark/benchmark-ios.gypi',
+ '../test/test.gypi',
],
}
diff --git a/gyp/target-ios-bundle.gypi b/gyp/target-ios-bundle.gypi
new file mode 100644
index 0000000000..24fa8b1437
--- /dev/null
+++ b/gyp/target-ios-bundle.gypi
@@ -0,0 +1,5 @@
+{
+ 'product_extension': 'app',
+ 'mac_bundle': 1,
+ 'includes': [ 'target-ios.gypi' ],
+}
diff --git a/gyp/target-ios.gypi b/gyp/target-ios.gypi
new file mode 100644
index 0000000000..6506ee0622
--- /dev/null
+++ b/gyp/target-ios.gypi
@@ -0,0 +1,27 @@
+{
+ 'product_extension': 'app',
+ 'xcode_settings': {
+ 'SDKROOT': 'iphoneos',
+ 'SUPPORTED_PLATFORMS': 'iphonesimulator iphoneos',
+ 'IPHONEOS_DEPLOYMENT_TARGET': '8.0',
+ 'TARGETED_DEVICE_FAMILY': '1,2',
+ 'COPY_PHASE_STRIP': 'NO',
+ 'CLANG_ENABLE_OBJC_ARC': 'YES',
+ 'CLANG_ENABLE_MODULES': 'YES',
+ },
+ 'configurations': {
+ 'Debug': {
+ 'xcode_settings': {
+ 'CODE_SIGN_IDENTITY': 'iPhone Developer',
+ 'COPY_PHASE_STRIP': 'NO',
+ },
+ },
+ 'Release': {
+ 'xcode_settings': {
+ 'CODE_SIGN_IDENTITY': 'iPhone Distribution',
+ 'ARCHS': [ "armv7", "armv7s", "arm64", "i386", "x86_64" ],
+ 'COPY_PHASE_STRIP': 'YES',
+ },
+ },
+ },
+}