| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 { | |
| 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. More details below. | |
| 13 ['"<(GENERATOR)"=="ninja"', { | |
| 14 'targets': [ | |
| 15 { | |
| 16 'target_name': 'crnet_dummy', | |
| 17 'type': 'executable', | |
| 18 'mac_bundle': 1, | |
| 19 'dependencies': [ | |
| 20 '../../ios/crnet/crnet.gyp:crnet', | |
| 21 ], | |
| 22 'sources': [ | |
| 23 '../../ios/build/packaging/dummy_main.mm', | |
| 24 ], | |
| 25 'include_dirs': [ | |
| 26 '../..', | |
| 27 ], | |
| 28 'xcode_settings': { | |
| 29 'INFOPLIST_FILE': '../../ios/build/packaging/dummy-Info.plist', | |
| 30 }, | |
| 31 }, | |
| 32 { | |
| 33 # Build this target to package a standalone CrNet in a single | |
| 34 # .a file. | |
| 35 'target_name': 'crnet_pack', | |
| 36 'type': 'none', | |
| 37 'dependencies': [ | |
| 38 # Depend on the dummy target so that all of CrNet's dependencies | |
| 39 # are built before packaging. | |
| 40 'crnet_dummy', | |
| 41 ], | |
| 42 'actions': [ | |
| 43 { | |
| 44 'action_name': 'Package CrNet', | |
| 45 'variables': { | |
| 46 'tool_path': | |
| 47 '../../ios/build/packaging/link_dependencies.py', | |
| 48 }, | |
| 49 | |
| 50 # Actions need an inputs list, even if it's empty. | |
| 51 'inputs': [ | |
| 52 '<(tool_path)', | |
| 53 '<(PRODUCT_DIR)/crnet_dummy.app/crnet_dummy', | |
| 54 ], | |
| 55 # Only specify one output, since this will be libtool's output. | |
| 56 'outputs': [ '<(PRODUCT_DIR)/libcrnet_standalone.a' ], | |
| 57 'action': ['<(tool_path)', | |
| 58 '<(PRODUCT_DIR)', | |
| 59 'crnet_dummy.app/crnet_dummy', | |
| 60 '<@(_outputs)', | |
| 61 ], | |
| 62 }, | |
| 63 ], | |
| 64 }, | |
| 65 ], | |
| 66 }], | |
| 67 ], | |
| 68 } | |
| OLD | NEW |