Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: ios/crnet/crnet_pack.gyp

Issue 1125293004: ios: add CrNet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix last nits Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/crnet/crnet_net_log.cc ('k') | ios/ios.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/crnet_pack.gyp
diff --git a/ios/crnet/crnet_pack.gyp b/ios/crnet/crnet_pack.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..81b2e78bf51c8c1172e433ce238c793748c89655
--- /dev/null
+++ b/ios/crnet/crnet_pack.gyp
@@ -0,0 +1,65 @@
+# 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. More details below.
+ ['"<(GENERATOR)"=="ninja"', {
+ 'targets': [
+ {
+ 'target_name': 'crnet_dummy',
+ 'type': 'executable',
+ 'mac_bundle': 1,
+ 'dependencies': [
+ '../../ios/crnet/crnet.gyp:crnet',
+ ],
+ 'sources': [
+ '../../ios/build/packaging/dummy_main.mm',
+ ],
+ 'include_dirs': [
+ '../..',
+ ],
+ 'xcode_settings': {
+ 'INFOPLIST_FILE': '../../ios/build/packaging/dummy-Info.plist',
+ },
+ },
+ {
+ # Build this target to package a standalone CrNet in a single
+ # .a file.
+ 'target_name': 'crnet_pack',
+ 'type': 'none',
+ 'dependencies': [
+ # Depend on the dummy target so that all of CrNet's dependencies
+ # are built before packaging.
+ 'crnet_dummy',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'Package CrNet',
+ 'variables': {
+ 'tool_path':
+ '../../ios/build/packaging/link_dependencies.py',
+ },
+
+ # Actions need an inputs list, even if it's empty.
+ 'inputs': [],
+ # Only specify one output, since this will be libtool's output.
+ 'outputs': [ '<(PRODUCT_DIR)/libcrnet_standalone.a' ],
+ 'action': ['<(tool_path)',
+ '<(PRODUCT_DIR)',
+ 'crnet_dummy.app/crnet_dummy',
+ '<@(_outputs)',
+ ],
+ },
+ ],
+ },
+ ],
+ }],
+ ],
+}
« no previous file with comments | « ios/crnet/crnet_net_log.cc ('k') | ios/ios.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698