| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 # Copyright (c) 2014 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   'conditions': [ | 
|  | 7     ['"<(GENERATOR)"=="ninja"', { | 
|  | 8       'make_global_settings': [ | 
|  | 9         ['CC', '/usr/bin/clang'], | 
|  | 10         ['CXX', '/usr/bin/clang++'], | 
|  | 11       ], | 
|  | 12     }] | 
|  | 13   ], | 
|  | 14   'target_defaults': { | 
|  | 15       'xcode_settings': { | 
|  | 16         'OTHER_CFLAGS': [ | 
|  | 17           '-fobjc-abi-version=2', | 
|  | 18         ], | 
|  | 19         'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 
|  | 20         'conditions': [ | 
|  | 21           ['"<(GENERATOR)"=="xcode"', { | 
|  | 22             'SDKROOT': 'iphoneos',  # -isysroot | 
|  | 23           }, { | 
|  | 24             'SDKROOT': 'iphonesimulator',  # -isysroot | 
|  | 25           }], | 
|  | 26         ], | 
|  | 27         'IPHONEOS_DEPLOYMENT_TARGET': '9.0', | 
|  | 28         'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer', | 
|  | 29         'CONFIGURATION_BUILD_DIR':'build/Default', | 
|  | 30         'ARCHS': ['$(ARCHS_STANDARD_INCLUDING_64_BIT)'], | 
|  | 31       } | 
|  | 32   }, | 
|  | 33   'targets': [ | 
|  | 34     { | 
|  | 35       'target_name': 'app_under_test', | 
|  | 36       'type': 'executable', | 
|  | 37       'mac_bundle': 1, | 
|  | 38       'mac_bundle_resources': [ | 
|  | 39         'App/Base.lproj/LaunchScreen.xib', | 
|  | 40         'App/Base.lproj/Main.storyboard', | 
|  | 41       ], | 
|  | 42       'sources': [ | 
|  | 43         'App/AppDelegate.h', | 
|  | 44         'App/AppDelegate.m', | 
|  | 45         'App/ViewController.h', | 
|  | 46         'App/ViewController.m', | 
|  | 47         'App/main.m', | 
|  | 48       ], | 
|  | 49       'link_settings': { | 
|  | 50         'libraries': [ | 
|  | 51           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 
|  | 52           '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', | 
|  | 53         ], | 
|  | 54       }, | 
|  | 55       'xcode_settings': { | 
|  | 56         'INFOPLIST_FILE': 'App/Info.plist', | 
|  | 57       }, | 
|  | 58     }, | 
|  | 59     { | 
|  | 60       'target_name': 'app_tests', | 
|  | 61       'type': 'loadable_module', | 
|  | 62       'mac_xctest_bundle': 1, | 
|  | 63       'sources': [ | 
|  | 64         'AppTests/AppTests.m', | 
|  | 65       ], | 
|  | 66       'dependencies': [ | 
|  | 67         'app_under_test' | 
|  | 68       ], | 
|  | 69       'link_settings': { | 
|  | 70         'libraries': [ | 
|  | 71           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 
|  | 72         ], | 
|  | 73       }, | 
|  | 74       'xcode_settings': { | 
|  | 75         'WRAPPER_EXTENSION': 'xctest', | 
|  | 76         'INFOPLIST_FILE': 'AppTests/Info.plist', | 
|  | 77         'BUNDLE_LOADER': '$(BUILT_PRODUCTS_DIR)/app_under_test.app/app_under_tes
    t', | 
|  | 78         'TEST_HOST': '$(BUNDLE_LOADER)', | 
|  | 79       }, | 
|  | 80     }, | 
|  | 81   ], | 
|  | 82 } | 
|  | 83 | 
| OLD | NEW | 
|---|