| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'conditions': [ | 6 'conditions': [ |
| 7 ['OS=="win" or OS=="mac" or OS=="linux"', { | 7 ['OS=="win" or OS=="mac" or OS=="linux"', { |
| 8 'targets': [ | 8 'targets': [ |
| 9 { | 9 { |
| 10 # policy_templates has different inputs and outputs, so it can't use | 10 # policy_templates has different inputs and outputs, so it can't use |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 'inputs': ['../../VERSION'], | 37 'inputs': ['../../VERSION'], |
| 38 'outputs': ['<(version_path)'], | 38 'outputs': ['<(version_path)'], |
| 39 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], | 39 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], |
| 40 }, | 40 }, |
| 41 { | 41 { |
| 42 # Add all the templates generated at the previous step into | 42 # Add all the templates generated at the previous step into |
| 43 # a zip archive. | 43 # a zip archive. |
| 44 'action_name': 'pack_templates', | 44 'action_name': 'pack_templates', |
| 45 'variables': { | 45 'variables': { |
| 46 'zip_script': | 46 'zip_script': |
| 47 'tools/build/win/make_zip_with_relative_entries.py' | 47 'tools/build/win/make_policy_zip.py' |
| 48 }, | 48 }, |
| 49 'inputs': [ | 49 'inputs': [ |
| 50 '<(version_path)', | 50 '<(version_path)', |
| 51 '<@(template_files)', | 51 '<@(template_files)', |
| 52 '<(zip_script)' | 52 '<(zip_script)' |
| 53 ], | 53 ], |
| 54 'outputs': [ | 54 'outputs': [ |
| 55 '<(PRODUCT_DIR)/policy_templates.zip' | 55 '<(PRODUCT_DIR)/policy_templates.zip' |
| 56 ], | 56 ], |
| 57 'action': [ | 57 'action': [ |
| 58 'python', | 58 'python', |
| 59 '<(zip_script)', | 59 '<(zip_script)', |
| 60 '<@(_outputs)', | 60 '<@(_outputs)', |
| 61 '<(grit_out_dir)/app/policy', | 61 '<(grit_out_dir)/app/policy', |
| 62 '<@(template_files)', | 62 # The list of files in the resulting archive will be a |
| 63 '<(version_path)' | 63 # generated by combining the following list with an |
| 64 # internal defined list in make_policy_zip.py. |
| 65 '<@(locales)', |
| 64 ], | 66 ], |
| 65 'message': 'Packing generated templates into <(_outputs)', | 67 'message': 'Packing generated templates into <(_outputs)', |
| 66 } | 68 } |
| 67 ] | 69 ] |
| 68 }], | 70 }], |
| 69 ], # conditions | 71 ], # conditions |
| 70 }, | 72 }, |
| 71 ], # 'targets' | 73 ], # 'targets' |
| 72 }], # OS=="win" or OS=="mac" or OS=="linux" | 74 }], # OS=="win" or OS=="mac" or OS=="linux" |
| 73 ['OS=="mac"', { | 75 ['OS=="mac"', { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 'process_outputs_as_mac_bundle_resources': 1, | 116 'process_outputs_as_mac_bundle_resources': 1, |
| 115 }, | 117 }, |
| 116 { | 118 { |
| 117 'action_name': | 119 'action_name': |
| 118 'Copy Localizable.strings files to manifest bundle', | 120 'Copy Localizable.strings files to manifest bundle', |
| 119 'variables': { | 121 'variables': { |
| 120 'input_path': '<(grit_out_dir)/app/policy/mac/strings', | 122 'input_path': '<(grit_out_dir)/app/policy/mac/strings', |
| 121 # Directory to collect the Localizable.strings files before | 123 # Directory to collect the Localizable.strings files before |
| 122 # they are copied to the bundle. | 124 # they are copied to the bundle. |
| 123 'output_path': '<(INTERMEDIATE_DIR)/app_manifest', | 125 'output_path': '<(INTERMEDIATE_DIR)/app_manifest', |
| 124 # TODO(gfeher): replace this with <(locales) when we have real | |
| 125 # translations | |
| 126 'available_locales': 'en', | |
| 127 }, | 126 }, |
| 128 'inputs': [ | 127 'inputs': [ |
| 129 # TODO: remove this helper when we have loops in GYP | 128 # TODO: remove this helper when we have loops in GYP |
| 130 '>!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Loca
lizable.strings\' <(available_locales))', | 129 '>!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Loca
lizable.strings\' <(locales))', |
| 131 ], | 130 ], |
| 132 'outputs': [ | 131 'outputs': [ |
| 133 # TODO: remove this helper when we have loops in GYP | 132 # TODO: remove this helper when we have loops in GYP |
| 134 '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Loc
alizable.strings\' <(available_locales))', | 133 '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Loc
alizable.strings\' <(locales))', |
| 135 ], | 134 ], |
| 136 'action': [ | 135 'action': [ |
| 137 'cp', '-R', | 136 'cp', '-R', |
| 138 '<(input_path)/', | 137 '<(input_path)/', |
| 139 '<(output_path)', | 138 '<(output_path)', |
| 140 ], | 139 ], |
| 141 'message': | 140 'message': |
| 142 'Copy the Localizable.strings files to the manifest bundle', | 141 'Copy the Localizable.strings files to the manifest bundle', |
| 143 'process_outputs_as_mac_bundle_resources': 1, | 142 'process_outputs_as_mac_bundle_resources': 1, |
| 144 }, | 143 }, |
| 145 ], | 144 ], |
| 146 }, | 145 }, |
| 147 ] | 146 ] |
| 148 }] | 147 }] |
| 149 ], # 'conditions' | 148 ], # 'conditions' |
| 150 } | 149 } |
| 151 | 150 |
| 152 # Local Variables: | 151 # Local Variables: |
| 153 # tab-width:2 | 152 # tab-width:2 |
| 154 # indent-tabs-mode:nil | 153 # indent-tabs-mode:nil |
| 155 # End: | 154 # End: |
| 156 # vim: set expandtab tabstop=2 shiftwidth=2: | 155 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |