Chromium Code Reviews| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 'process_outputs_as_mac_bundle_resources': 1, | 128 'process_outputs_as_mac_bundle_resources': 1, |
| 129 }, | 129 }, |
| 130 { | 130 { |
| 131 'action_name': | 131 'action_name': |
| 132 'Copy Localizable.strings files to manifest bundle', | 132 'Copy Localizable.strings files to manifest bundle', |
| 133 'variables': { | 133 'variables': { |
| 134 'input_path': '<(grit_out_dir)/app/policy/mac/strings', | 134 'input_path': '<(grit_out_dir)/app/policy/mac/strings', |
| 135 # Directory to collect the Localizable.strings files before | 135 # Directory to collect the Localizable.strings files before |
| 136 # they are copied to the bundle. | 136 # they are copied to the bundle. |
| 137 'output_path': '<(INTERMEDIATE_DIR)/app_manifest', | 137 'output_path': '<(INTERMEDIATE_DIR)/app_manifest', |
| 138 # The reason we are not enumerating all the locales is that | |
| 139 # the translations would eat up 20MB disk space in the | |
| 140 # application bundle: | |
|
Nico
2011/07/12 22:25:23
3.5MB, not 20 MB. (there was a 20MB size regressio
gfeher
2011/07/12 22:27:35
I'll fix this as a TBR.
| |
| 141 'available_locales': 'en', | |
| 138 }, | 142 }, |
| 139 'inputs': [ | 143 'inputs': [ |
| 140 # TODO: remove this helper when we have loops in GYP | 144 # TODO: remove this helper when we have loops in GYP |
| 141 '>!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Loca lizable.strings\' <(locales))', | 145 '>!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Loca lizable.strings\' <(available_locales))', |
| 142 ], | 146 ], |
| 143 'outputs': [ | 147 'outputs': [ |
| 144 # TODO: remove this helper when we have loops in GYP | 148 # TODO: remove this helper when we have loops in GYP |
| 145 '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Loc alizable.strings\' <(locales))', | 149 '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Loc alizable.strings\' <(available_locales))', |
| 146 ], | 150 ], |
| 147 'action': [ | 151 'action': [ |
| 148 'cp', '-R', | 152 'cp', '-R', |
| 149 '<(input_path)/', | 153 '<(input_path)/', |
| 150 '<(output_path)', | 154 '<(output_path)', |
| 151 ], | 155 ], |
| 152 'message': | 156 'message': |
| 153 'Copy the Localizable.strings files to the manifest bundle', | 157 'Copy the Localizable.strings files to the manifest bundle', |
| 154 'process_outputs_as_mac_bundle_resources': 1, | 158 'process_outputs_as_mac_bundle_resources': 1, |
| 155 }, | 159 }, |
| 156 ], | 160 ], |
| 157 }, | 161 }, |
| 158 ] | 162 ] |
| 159 }] | 163 }] |
| 160 ], # 'conditions' | 164 ], # 'conditions' |
| 161 } | 165 } |
| 162 | 166 |
| 163 # Local Variables: | 167 # Local Variables: |
| 164 # tab-width:2 | 168 # tab-width:2 |
| 165 # indent-tabs-mode:nil | 169 # indent-tabs-mode:nil |
| 166 # End: | 170 # End: |
| 167 # vim: set expandtab tabstop=2 shiftwidth=2: | 171 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |