1# Copyright (c) 2012 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': 'empty_bundle', 8 'type': 'loadable_module', 9 'mac_bundle': 1, 10 }, 11 { 12 'target_name': 'resource_bundle', 13 'type': 'loadable_module', 14 'mac_bundle': 1, 15 'actions': [ 16 { 17 'action_name': 'Add Resource', 18 'inputs': [], 19 'outputs': [ 20 '<(INTERMEDIATE_DIR)/app_manifest/foo.manifest', 21 ], 22 'action': [ 23 'touch', '<(INTERMEDIATE_DIR)/app_manifest/foo.manifest', 24 ], 25 'process_outputs_as_mac_bundle_resources': 1, 26 }, 27 ], 28 }, 29 { 30 'target_name': 'dependent_on_resource_bundle', 31 'type': 'executable', 32 'sources': [ 'empty.c' ], 33 'dependencies': [ 34 'resource_bundle', 35 ], 36 }, 37 38 { 39 'target_name': 'alib', 40 'type': 'static_library', 41 'sources': [ 'fun.c' ] 42 }, 43 { # No sources, but depends on a static_library so must be linked. 44 'target_name': 'resource_framework', 45 'type': 'shared_library', 46 'mac_bundle': 1, 47 'dependencies': [ 48 'alib', 49 ], 50 'actions': [ 51 { 52 'action_name': 'Add Resource', 53 'inputs': [], 54 'outputs': [ 55 '<(INTERMEDIATE_DIR)/app_manifest/foo.manifest', 56 ], 57 'action': [ 58 'touch', '<(INTERMEDIATE_DIR)/app_manifest/foo.manifest', 59 ], 60 'process_outputs_as_mac_bundle_resources': 1, 61 }, 62 ], 63 }, 64 { 65 'target_name': 'dependent_on_resource_framework', 66 'type': 'executable', 67 'sources': [ 'empty.c' ], 68 'dependencies': [ 69 'resource_framework', 70 ], 71 }, 72 73 { # No actions, but still have resources. 74 'target_name': 'mac_resource_bundle_no_actions', 75 'product_extension': 'bundle', 76 'type': 'executable', 77 'mac_bundle': 1, 78 'mac_bundle_resources': [ 79 'empty.txt', 80 ], 81 }, 82 { 83 'target_name': 'bundle_dependent_on_resource_bundle_no_actions', 84 'type': 'executable', 85 'mac_bundle': 1, 86 'sources': [ 'empty.c' ], 87 'dependencies': [ 88 'mac_resource_bundle_no_actions', 89 ], 90 'mac_bundle_resources': [ 91 '<(PRODUCT_DIR)/mac_resource_bundle_no_actions.bundle', 92 ], 93 }, 94 ], 95} 96 97