Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / tools / gyp / test / ios / extension / extension.gyp
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       },
52     },
53     {
54       'target_name': 'ActionExtension',
55       'product_name': 'ActionExtension',
56       'type': 'executable',
57       'mac_bundle': 1,
58       'ios_app_extension': 1,
59       'sources': [
60         'ActionExtension/ActionViewController.h',
61         'ActionExtension/ActionViewController.m',
62       ],
63       'link_settings': {
64         'libraries': [
65           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
66           '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
67           '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
68         ],
69       },
70       'xcode_settings': {
71         'OTHER_CFLAGS': [
72           '-fobjc-abi-version=2',
73         ],
74         'INFOPLIST_FILE': 'ActionExtension/Info.plist',
75         'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
76         'ARCHS': [ 'armv7' ],
77         'SDKROOT': 'iphoneos',
78         'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
79       },
80     },
81   ],
82 }
83