Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | # Copyright (c) 2011 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 | 'conditions': [ |
| 6 | ['"<(GENERATOR)"=="ninja"', { |
| 7 | 'make_global_settings': [ |
| 8 | ['CC', '/usr/bin/clang'], |
| 9 | ['CXX', '/usr/bin/clang++'], |
| 10 | ], |
| 11 | }], |
| 12 | ], |
| 13 | 'targets': [ |
| 14 | { |
| 15 | 'target_name': 'test_app', |
| 16 | 'product_name': 'Test App Gyp', |
| 17 | 'type': 'executable', |
| 18 | 'mac_bundle': 1, |
| 19 | 'sources': [ |
| 20 | 'TestApp/main.m', |
| 21 | ], |
| 22 | 'mac_bundle_resources': [ |
| 23 | 'TestApp/English.lproj/InfoPlist.strings', |
| 24 | 'TestApp/English.lproj/LanguageMap.plist', |
| 25 | 'TestApp/English.lproj/MainMenu.xib', |
| 26 | 'TestApp/English.lproj/Main_iPhone.storyboard', |
| 27 | ], |
| 28 | 'link_settings': { |
| 29 | 'libraries': [ |
| 30 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 31 | '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
| 32 | ], |
| 33 | }, |
| 34 | 'xcode_settings': { |
| 35 | 'OTHER_CFLAGS': [ |
| 36 | '-fobjc-abi-version=2', |
| 37 | ], |
| 38 | 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', |
| 39 | 'SDKROOT': 'iphonesimulator', # -isysroot |
| 40 | 'IPHONEOS_DEPLOYMENT_TARGET': '5.0', |
| 41 | 'CONFIGURATION_BUILD_DIR':'build/Default', |
| 42 | }, |
| 43 | }, |
| 44 | { |
| 45 | 'target_name': 'test_app_xml', |
| 46 | 'product_name': 'Test App Gyp XML', |
| 47 | 'type': 'executable', |
| 48 | 'mac_bundle': 1, |
| 49 | 'sources': [ |
| 50 | 'TestApp/main.m', |
| 51 | ], |
| 52 | 'mac_bundle_resources': [ |
| 53 | 'TestApp/English.lproj/InfoPlist.strings', |
| 54 | 'TestApp/English.lproj/MainMenu.xib', |
| 55 | 'TestApp/English.lproj/Main_iPhone.storyboard', |
| 56 | ], |
| 57 | 'link_settings': { |
| 58 | 'libraries': [ |
| 59 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 60 | '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
| 61 | ], |
| 62 | }, |
| 63 | 'xcode_settings': { |
| 64 | 'OTHER_CFLAGS': [ |
| 65 | '-fobjc-abi-version=2', |
| 66 | ], |
| 67 | 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', |
| 68 | 'INFOPLIST_OUTPUT_FORMAT':'xml', |
| 69 | 'SDKROOT': 'iphonesimulator', # -isysroot |
| 70 | 'IPHONEOS_DEPLOYMENT_TARGET': '5.0', |
| 71 | 'CONFIGURATION_BUILD_DIR':'build/Default', |
| 72 | }, |
| 73 | }, |
| 74 | ], |
| 75 | } |