Home | History | Annotate | Download | only in app-bundle
      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)"=="xcode"', {
      7       'target_defaults': {
      8         'configurations': {
      9           'Default': {
     10             'xcode_settings': {
     11               'SDKROOT': 'iphonesimulator',
     12               'CONFIGURATION_BUILD_DIR':'build/Default',
     13             }
     14           },
     15           'Default-iphoneos': {
     16             'xcode_settings': {
     17               'SDKROOT': 'iphoneos',
     18               'CONFIGURATION_BUILD_DIR':'build/Default-iphoneos',
     19             }
     20           },
     21         },
     22       },
     23     }, {
     24       'target_defaults': {
     25         'configurations': {
     26           'Default': {
     27             'xcode_settings': {
     28               'SDKROOT': 'iphonesimulator',
     29             }
     30           },
     31         },
     32       },
     33     }],
     34   ],
     35   'targets': [
     36     {
     37       'target_name': 'test_app',
     38       'product_name': 'Test App Gyp',
     39       'type': 'executable',
     40       'mac_bundle': 1,
     41       'sources': [
     42         'TestApp/main.m',
     43       ],
     44       'mac_bundle_resources': [
     45         'TestApp/English.lproj/InfoPlist.strings',
     46         'TestApp/English.lproj/MainMenu.xib',
     47       ],
     48       'link_settings': {
     49         'libraries': [
     50           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
     51           '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
     52         ],
     53       },
     54       'xcode_settings': {
     55         'OTHER_CFLAGS': [
     56           '-fobjc-abi-version=2',
     57         ],
     58         'SDKROOT': 'iphonesimulator',  # -isysroot
     59         'TARGETED_DEVICE_FAMILY': '1,2',
     60         'INFOPLIST_OUTPUT_FORMAT':'xml',
     61         'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
     62         'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist',
     63         'IPHONEOS_DEPLOYMENT_TARGET': '8.0',
     64         'CODE_SIGNING_REQUIRED': 'NO',
     65         'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '',
     66 
     67       },
     68     },
     69     {
     70       'target_name': 'sig_test',
     71       'product_name': 'sigtest',
     72       'type': 'executable',
     73       'mac_bundle': 1,
     74       'sources': [
     75         'TestApp/main.m',
     76       ],
     77       'mac_bundle_resources': [
     78         'TestApp/English.lproj/InfoPlist.strings',
     79         'TestApp/English.lproj/MainMenu.xib',
     80       ],
     81       'link_settings': {
     82         'libraries': [
     83           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
     84           '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
     85         ],
     86       },
     87       'postbuilds': [
     88         {
     89           'postbuild_name': 'Verify no signature',
     90           'action': [
     91             'python',
     92             'TestApp/check_no_signature.py'
     93           ],
     94         },
     95       ],
     96       'xcode_settings': {
     97         'OTHER_CFLAGS': [
     98           '-fobjc-abi-version=2',
     99         ],
    100         'SDKROOT': 'iphonesimulator',  # -isysroot
    101         'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer',
    102         'INFOPLIST_OUTPUT_FORMAT':'xml',
    103         'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist',
    104         'IPHONEOS_DEPLOYMENT_TARGET': '8.0',
    105         'CONFIGURATION_BUILD_DIR':'buildsig/Default',
    106       },
    107     },
    108   ],
    109 }
    110