• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  'make_global_settings': [
7    ['CC', '/usr/bin/clang'],
8    ['CXX', '/usr/bin/clang++'],
9  ],
10  'targets': [
11    {
12      'target_name': 'ExtensionContainer',
13      'product_name': 'ExtensionContainer',
14      'type': 'executable',
15      'mac_bundle': 1,
16      'mac_bundle_resources': [
17        'ExtensionContainer/Base.lproj/Main.storyboard',
18      ],
19      'sources': [
20        'ExtensionContainer/AppDelegate.h',
21        'ExtensionContainer/AppDelegate.m',
22        'ExtensionContainer/ViewController.h',
23        'ExtensionContainer/ViewController.m',
24        'ExtensionContainer/main.m',
25      ],
26      'copies': [
27        {
28          'destination': '<(PRODUCT_DIR)/ExtensionContainer.app/PlugIns',
29          'files': [
30            '<(PRODUCT_DIR)/ActionExtension.appex',
31      ]}],
32      'dependencies': [
33        'ActionExtension'
34      ],
35
36      'link_settings': {
37        'libraries': [
38          '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
39          '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
40        ],
41      },
42      'xcode_settings': {
43        'OTHER_CFLAGS': [
44          '-fobjc-abi-version=2',
45        ],
46        'INFOPLIST_FILE': 'ExtensionContainer/Info.plist',
47        'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
48        'ARCHS': [ 'armv7' ],
49        'SDKROOT': 'iphoneos',
50        'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
51        'CODE_SIGNING_REQUIRED': 'NO',
52        'DEPLOYMENT_POSTPROCESSING': 'YES',
53        'STRIP_INSTALLED_PRODUCT': 'YES',
54        'CONFIGURATION_BUILD_DIR':'build/Default',
55      },
56    },
57    {
58      'target_name': 'ActionExtension',
59      'product_name': 'ActionExtension',
60      'type': 'executable',
61      'mac_bundle': 1,
62      'ios_app_extension': 1,
63      'sources': [
64        'ActionExtension/ActionViewController.h',
65        'ActionExtension/ActionViewController.m',
66      ],
67      'link_settings': {
68        'libraries': [
69          '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
70          '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
71          '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
72        ],
73      },
74      'xcode_settings': {
75        'OTHER_CFLAGS': [
76          '-fobjc-abi-version=2',
77        ],
78        'INFOPLIST_FILE': 'ActionExtension/Info.plist',
79        'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
80        'ARCHS': [ 'armv7' ],
81        'SDKROOT': 'iphoneos',
82        'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
83        'CODE_SIGNING_REQUIRED': 'NO',
84        'DEPLOYMENT_POSTPROCESSING': 'YES',
85        'STRIP_INSTALLED_PRODUCT': 'YES',
86        'CONFIGURATION_BUILD_DIR':'build/Default',
87      },
88    },
89  ],
90}
91
92