Home | History | Annotate | Download | only in app-bundle
      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   'make_global_settings': [
      6     ['CC', '/usr/bin/clang'],
      7   ],
      8   'targets': [
      9     {
     10       'target_name': 'test_no_archs',
     11       'product_name': 'Test No Archs',
     12       'type': 'executable',
     13       'product_extension': 'bundle',
     14       'mac_bundle': 1,
     15       'sources': [
     16         'TestApp/main.m',
     17         'TestApp/only-compile-in-32-bits.m',
     18       ],
     19       'mac_bundle_resources': [
     20         'TestApp/English.lproj/InfoPlist.strings',
     21         'TestApp/English.lproj/MainMenu.xib',
     22       ],
     23       'link_settings': {
     24         'libraries': [
     25           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
     26           '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
     27         ],
     28       },
     29       'xcode_settings': {
     30         'OTHER_CFLAGS': [
     31           '-fobjc-abi-version=2',
     32         ],
     33         'SDKROOT': 'iphonesimulator',  # -isysroot
     34         'TARGETED_DEVICE_FAMILY': '1,2',
     35         'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist',
     36         'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
     37         'CONFIGURATION_BUILD_DIR':'build/Default',
     38       },
     39     },
     40     {
     41       'target_name': 'test_archs_i386',
     42       'product_name': 'Test Archs i386',
     43       'type': 'executable',
     44       'product_extension': 'bundle',
     45       'mac_bundle': 1,
     46       'sources': [
     47         'TestApp/main.m',
     48         'TestApp/only-compile-in-32-bits.m',
     49       ],
     50       'mac_bundle_resources': [
     51         'TestApp/English.lproj/InfoPlist.strings',
     52         'TestApp/English.lproj/MainMenu.xib',
     53       ],
     54       'link_settings': {
     55         'libraries': [
     56           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
     57           '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
     58         ],
     59       },
     60       'xcode_settings': {
     61         'OTHER_CFLAGS': [
     62           '-fobjc-abi-version=2',
     63         ],
     64         'SDKROOT': 'iphonesimulator',  # -isysroot
     65         'TARGETED_DEVICE_FAMILY': '1,2',
     66         'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist',
     67         'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
     68         'CONFIGURATION_BUILD_DIR':'build/Default',
     69         'ARCHS': ['i386'],
     70       },
     71     },
     72     {
     73       'target_name': 'test_archs_x86_64',
     74       'product_name': 'Test Archs x86_64',
     75       'type': 'executable',
     76       'product_extension': 'bundle',
     77       'mac_bundle': 1,
     78       'sources': [
     79         'TestApp/main.m',
     80         'TestApp/only-compile-in-64-bits.m',
     81       ],
     82       'mac_bundle_resources': [
     83         'TestApp/English.lproj/InfoPlist.strings',
     84         'TestApp/English.lproj/MainMenu.xib',
     85       ],
     86       'link_settings': {
     87         'libraries': [
     88           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
     89           '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
     90         ],
     91       },
     92       'xcode_settings': {
     93         'OTHER_CFLAGS': [
     94           '-fobjc-abi-version=2',
     95         ],
     96         'SDKROOT': 'iphonesimulator',  # -isysroot
     97         'TARGETED_DEVICE_FAMILY': '1,2',
     98         'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist',
     99         'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
    100         'CONFIGURATION_BUILD_DIR':'build/Default',
    101         'ARCHS': ['x86_64'],
    102       },
    103     },
    104   ],
    105 }
    106