Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | # Copyright (c) 2013 Google Inc. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 6 | 'target_defaults': { |
| 7 | 'xcode_settings': { |
| 8 | 'SDKROOT': 'iphoneos', |
| 9 | 'FRAMEWORK_SEARCH_PATHS': [ |
| 10 | '$(inherited)', |
| 11 | '$(DEVELOPER_FRAMEWORKS_DIR)', |
| 12 | ], |
| 13 | 'OTHER_LDFLAGS': [ |
| 14 | '$(inherited)', |
| 15 | '-ObjC', |
| 16 | ], |
| 17 | 'GCC_PREFIX_HEADER': '', |
| 18 | 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 19 | 'INFOPLIST_FILE': 'Info.plist', |
| 20 | }, |
| 21 | }, |
| 22 | 'targets': [ |
| 23 | { |
| 24 | 'target_name': 'testApp', |
| 25 | 'type': 'executable', |
| 26 | 'mac_bundle': 1, |
| 27 | 'sources': [ |
| 28 | 'MyAppDelegate.h', |
| 29 | 'MyAppDelegate.m', |
| 30 | 'main.m', |
| 31 | ], |
| 32 | 'link_settings': { |
| 33 | 'libraries': [ |
| 34 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 35 | '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
| 36 | ], |
| 37 | }, |
| 38 | }, |
| 39 | { |
| 40 | 'target_name': 'tests', |
| 41 | 'type': 'loadable_module', |
| 42 | 'mac_bundle': 1, |
| 43 | 'mac_xcuitest_bundle': 1, |
| 44 | 'sources': [ |
| 45 | 'TestCase.m', |
| 46 | ], |
| 47 | 'dependencies': [ |
| 48 | 'testApp', |
| 49 | ], |
| 50 | 'mac_bundle_resources': [ |
| 51 | 'resource.txt', |
| 52 | ], |
| 53 | 'variables': { |
| 54 | # This must *not* be set for xctest ui tests. |
| 55 | 'xctest_host': '', |
| 56 | }, |
| 57 | 'link_settings': { |
| 58 | 'libraries': [ |
| 59 | '$(SDKROOT)/System/Library/Frameworks/XCTest.framework', |
| 60 | ] |
| 61 | }, |
| 62 | 'xcode_settings': { |
| 63 | 'WRAPPER_EXTENSION': 'xctest', |
| 64 | 'TEST_TARGET_NAME': 'testApp', |
| 65 | }, |
| 66 | }, |
| 67 | ], |
| 68 | } |
| 69 | |