Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / crnet / crnet_consumer / crnet_consumer.gyp
blob5e83bd7f4e4538c87d3c55d0bb95f9b3faa85edb
1 # Copyright 2014 The Chromium Authors. 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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [],
10   'conditions': [
11     # Our shared library hack only works with ninja; xcode cannot generate
12     # iOS build targets for dynamic libraries.
13     ['"<(GENERATOR)"=="ninja"', {
14       'targets': [
15         {
16           'target_name': 'crnet_consumer',
17           'type': 'executable',
18           'mac_bundle': 1,
19           'dependencies': [
20             '../../../ios/crnet/crnet_pack.gyp:crnet_pack',
21           ],
22           'sources': [
23             'crnet_consumer_app_delegate.h',
24             'crnet_consumer_app_delegate.mm',
25             'crnet_consumer_view_controller.h',
26             'crnet_consumer_view_controller.m',
27             'main.mm',
28           ],
29           'mac_bundle_resources': [
30             '../../../third_party/icu/source/data/in/icudtl.dat',
31             'Default.png',
32             'crnet-consumer-Info.plist',
33           ],
34           'include_dirs': [
35             '../../..',
36             '..',
37           ],
38           'link_settings': {
39             'libraries': [
40               '<(PRODUCT_DIR)/libcrnet_standalone.a',
41               '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework',
42               '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
43               '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
44               '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
45               '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
46               '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
47               '$(SDKROOT)/System/Library/Frameworks/Security.framework',
48               '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
49             ],
50             'xcode_settings': {
51               'OTHER_LDFLAGS': [
52                 '-lresolv',
53                 '-lsqlite3',
54                 '-lxml2',
55               ],
56             },
57           },
58           'xcode_settings': {
59             'CLANG_ENABLE_OBJC_ARC': 'YES',
60             'DEAD_CODE_STRIPPING': 'YES',
61             'INFOPLIST_FILE': 'crnet-consumer-Info.plist',
62           },
63         },
64       ],
65     }],
66   ],