Index: ios/crnet/crnet_consumer/crnet_consumer.gyp |
diff --git a/ios/crnet/crnet_consumer/crnet_consumer.gyp b/ios/crnet/crnet_consumer/crnet_consumer.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1e08ced481893575abe2bc0f4f2d1698bce68334 |
--- /dev/null |
+++ b/ios/crnet/crnet_consumer/crnet_consumer.gyp |
@@ -0,0 +1,64 @@ |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'variables': { |
+ 'chromium_code': 1, |
+ }, |
+ 'targets': [], |
+ 'conditions': [ |
+ # Our shared library hack only works with ninja; xcode cannot generate |
+ # iOS build targets for dynamic libraries. |
+ ['"<(GENERATOR)"=="ninja"', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'crnet_consumer', |
+ 'type': 'executable', |
+ 'mac_bundle': 1, |
+ 'dependencies': [ |
+ '../../../ios/crnet/crnet_pack.gyp:crnet_pack', |
+ ], |
+ 'sources': [ |
+ 'crnet_consumer_app_delegate.h', |
+ 'crnet_consumer_app_delegate.mm', |
+ 'crnet_consumer_view_controller.h', |
+ 'crnet_consumer_view_controller.m', |
+ 'main.m', |
+ ], |
+ 'mac_bundle_resources': [ |
+ 'crnet-consumer-Info.plist', |
+ 'Default.png', |
+ 'Default-568h@2x.png', |
+ '../../../third_party/icu/source/data/in/icudtl.dat', |
+ ], |
+ 'include_dirs': [ |
+ '../../..', |
+ '..', |
+ ], |
+ 'link_settings': { |
+ 'libraries': [ |
+ '<(PRODUCT_DIR)/libcrnet_standalone.a', |
+ '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework', |
+ '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
+ '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', |
+ '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
+ '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework', |
+ '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', |
+ '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
+ '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework', |
+ '$(SDKROOT)/usr/lib/libresolv.dylib', |
+ '$(SDKROOT)/usr/lib/libsqlite3.dylib', |
+ '$(SDKROOT)/usr/lib/libxml2.dylib', |
+ ], |
+ }, |
+ 'xcode_settings': { |
+ 'CLANG_ENABLE_OBJC_ARC': 'YES', |
+ 'DEAD_CODE_STRIPPING': 'YES', |
+ 'INFOPLIST_FILE': 'crnet-consumer-Info.plist', |
+ }, |
+ }, |
+ ], |
+ }], |
+ ], |
+} |