summaryrefslogtreecommitdiff
path: root/platform/osx/test/osxtest.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'platform/osx/test/osxtest.gypi')
-rw-r--r--platform/osx/test/osxtest.gypi81
1 files changed, 81 insertions, 0 deletions
diff --git a/platform/osx/test/osxtest.gypi b/platform/osx/test/osxtest.gypi
new file mode 100644
index 0000000000..d5d54f3c22
--- /dev/null
+++ b/platform/osx/test/osxtest.gypi
@@ -0,0 +1,81 @@
+{
+ 'includes': [
+ '../../../gyp/common.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'osxtest',
+ 'product_name': 'osxtest',
+ 'type': 'loadable_module',
+ 'mac_xctest_bundle': 1,
+
+ 'dependencies': [
+ 'osxsdk',
+ ],
+
+ 'variables': {
+ 'cflags_cc': [
+ ],
+ 'ldflags': [
+ '-stdlib=libc++',
+ '-lstdc++',
+ ],
+ },
+
+ 'xcode_settings': {
+ 'CLANG_ENABLE_MODULES': 'YES',
+ 'CLANG_ENABLE_OBJC_ARC': 'YES',
+ 'ENABLE_STRICT_OBJC_MSGSEND': 'YES',
+ 'GCC_DYNAMIC_NO_PIC': 'NO',
+ 'GCC_NO_COMMON_BLOCKS': 'YES',
+ 'INFOPLIST_FILE': '../platform/osx/test/Info.plist',
+ 'LD_RUNPATH_SEARCH_PATHS': [
+ '${inherited}',
+ '@executable_path/../Frameworks',
+ '@loader_path/../Frameworks',
+ ],
+ 'PRODUCT_BUNDLE_IDENTIFIER': 'com.mapbox.osxtest',
+ 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
+ 'OTHER_LDFLAGS': [ '<@(ldflags)' ],
+ 'SDKROOT': 'macosx',
+ 'SKIP_INSTALL': 'YES',
+ 'SUPPORTED_PLATFORMS':'macosx',
+ },
+
+ 'sources': [
+ './MGLGeometryTests.mm',
+ './MGLStyleTests.mm',
+ ],
+
+ 'include_dirs': [
+ '../../../include/mbgl/osx',
+ '../../../include/mbgl/darwin',
+ '../../../include',
+ '../../../src',
+ ],
+
+ 'configurations': {
+ 'Debug': {
+ 'xcode_settings': {
+ 'COPY_PHASE_STRIP': 'NO',
+ 'DEBUG_INFORMATION_FORMAT': 'dwarf',
+ 'ENABLE_TESTABILITY': 'YES',
+ 'GCC_OPTIMIZATION_LEVEL': '0',
+ 'GCC_PREPROCESSOR_DEFINITIONS': [
+ 'DEBUG=1',
+ '${inherited}',
+ ],
+ 'ONLY_ACTIVE_ARCH': 'YES',
+ },
+ },
+ 'Release': {
+ 'xcode_settings': {
+ 'COPY_PHASE_STRIP': 'YES',
+ 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
+ 'ENABLE_NS_ASSERTIONS': 'NO',
+ },
+ },
+ },
+ },
+ ]
+}