| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("//tools/grit/repack.gni") | 5 import("//tools/grit/repack.gni") |
| 6 | 6 |
| 7 # Pack all resources for an application extension for a given locale. | 7 # Pack all resources for an application extension for a given locale. |
| 8 # | 8 # |
| 9 # Arguments: | 9 # Arguments: |
| 10 # | 10 # |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 ] | 50 ] |
| 51 | 51 |
| 52 output = "$target_gen_dir/${invoker.output_locale}.lproj/locale.pak" | 52 output = "$target_gen_dir/${invoker.output_locale}.lproj/locale.pak" |
| 53 if (invoker.copy_data_to_bundle) { | 53 if (invoker.copy_data_to_bundle) { |
| 54 bundle_output = "{{bundle_resources_dir}}/" + | 54 bundle_output = "{{bundle_resources_dir}}/" + |
| 55 "${invoker.output_locale}.lproj/locale.pak" | 55 "${invoker.output_locale}.lproj/locale.pak" |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 # Pack all resoruces for an application extension for all locales. | 60 # Pack all resources for an application extension for all locales. |
| 61 # | 61 # |
| 62 # Arguments: | 62 # Arguments: |
| 63 # | 63 # |
| 64 # extension [required] | 64 # extension [required] |
| 65 # name of the application extension. | 65 # name of the application extension. |
| 66 # | 66 # |
| 67 # input_locales [required] | 67 # input_locales [required] |
| 68 # list of all locales to pack. | 68 # list of all locales to pack. |
| 69 # | 69 # |
| 70 # output_locales [required] | 70 # output_locales [required] |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 _locale_targets += [ ":$_locale_target" ] | 117 _locale_targets += [ ":$_locale_target" ] |
| 118 _current_locale = _current_locale + 1 | 118 _current_locale = _current_locale + 1 |
| 119 } | 119 } |
| 120 | 120 |
| 121 group(_target_name) { | 121 group(_target_name) { |
| 122 forward_variables_from(invoker, [ "visibility" ]) | 122 forward_variables_from(invoker, [ "visibility" ]) |
| 123 public_deps = _locale_targets | 123 public_deps = _locale_targets |
| 124 } | 124 } |
| 125 } | 125 } |
| OLD | NEW |