diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-02-18 13:26:44 +0100 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-03-22 11:56:01 -0700 |
commit | c587eefbb1290cc01e3e14a0ae18a2d316a498fd (patch) | |
tree | 85f3ba7e5997fa1d9d1a0305ce563741cb772d5d /test/test.gypi | |
parent | db5ac4785fdc02b4e233201bb3c6f55270e3c65d (diff) | |
download | qtlocation-mapboxgl-c587eefbb1290cc01e3e14a0ae18a2d316a498fd.tar.gz |
[ios] make unit tests work on iOS and iOS Simulator
Diffstat (limited to 'test/test.gypi')
-rw-r--r-- | test/test.gypi | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/test/test.gypi b/test/test.gypi index fa9c446806..242fc1a4ab 100644 --- a/test/test.gypi +++ b/test/test.gypi @@ -23,7 +23,6 @@ 'sources': [ # Test helper files - 'src/main.cpp', 'src/stub_file_source.cpp', 'include/mbgl/test/stub_file_source.hpp', 'include/mbgl/test/mock_view.hpp', @@ -122,6 +121,31 @@ }, 'conditions': [ + ['host == "ios"', { + 'product_name': 'ios-test', + # iOS tests + 'includes': [ + '../gyp/target-ios-bundle.gypi', + ], + 'sources': [ + 'src/main.mm', + '../src/mbgl/util/premultiply.cpp', + ], + 'xcode_settings': { + 'INFOPLIST_FILE': '../test/src/app-info.plist', + }, + 'copies': [ + { 'destination': '<(PRODUCT_DIR)/$(WRAPPER_NAME)/test', + # Hack: When a filename begins with a $, gyp doesn't prepend $(SRCROOT) + 'files': [ '$()../test/fixtures' ], + }, + ] + }, { + # non-iOS tests + 'sources': [ + 'src/main.cpp', + ] + }], ['OS == "mac"', { 'xcode_settings': { 'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ], |