OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2013 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 'targets': [ |
| 6 { |
| 7 'target_name': 'resource', |
| 8 'type': 'executable', |
| 9 'mac_bundle': 1, |
| 10 'mac_bundle_resources': [ |
| 11 'secret.txt', |
| 12 ], |
| 13 }, |
| 14 # A rule with process_outputs_as_mac_bundle_resources should copy files |
| 15 # into the Resources folder. |
| 16 { |
| 17 'target_name': 'source_rule', |
| 18 'type': 'executable', |
| 19 'mac_bundle': 1, |
| 20 'sources': [ |
| 21 'secret.txt', |
| 22 ], |
| 23 'rules': [ |
| 24 { |
| 25 'rule_name': 'bundlerule', |
| 26 'extension': 'txt', |
| 27 'outputs': [ |
| 28 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).txt', |
| 29 ], |
| 30 'action': ['./change.sh', '<(RULE_INPUT_PATH)', '<@(_outputs)'], |
| 31 'message': 'Running rule on <(RULE_INPUT_PATH)', |
| 32 'process_outputs_as_mac_bundle_resources': 1, |
| 33 }, |
| 34 ], |
| 35 }, |
| 36 # So should an ordinary rule acting on mac_bundle_resources. |
| 37 { |
| 38 'target_name': 'resource_rule', |
| 39 'type': 'executable', |
| 40 'mac_bundle': 1, |
| 41 'mac_bundle_resources': [ |
| 42 'secret.txt', |
| 43 ], |
| 44 'rules': [ |
| 45 { |
| 46 'rule_name': 'bundlerule', |
| 47 'extension': 'txt', |
| 48 'outputs': [ |
| 49 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).txt', |
| 50 ], |
| 51 'action': ['./change.sh', '<(RULE_INPUT_PATH)', '<@(_outputs)'], |
| 52 'message': 'Running rule on <(RULE_INPUT_PATH)', |
| 53 }, |
| 54 ], |
| 55 }, |
| 56 ], |
| 57 } |
| 58 |
OLD | NEW |