| OLD | NEW | 
|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") | 
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") | 
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") | 
| 8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") | 
| 9 | 9 | 
| 10 # Arguments: | 10 # Arguments: | 
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 156     # Compute the name of the target for the current file. Save it for the deps. | 156     # Compute the name of the target for the current file. Save it for the deps. | 
| 157     current_name = "${target_name}_${input_locale}" | 157     current_name = "${target_name}_${input_locale}" | 
| 158     locale_targets += [ ":$current_name" ] | 158     locale_targets += [ ":$current_name" ] | 
| 159 | 159 | 
| 160     _repack_one_locale(current_name) { | 160     _repack_one_locale(current_name) { | 
| 161       visibility = [ ":$group_target_name" ] | 161       visibility = [ ":$group_target_name" ] | 
| 162       locale = input_locale | 162       locale = input_locale | 
| 163 | 163 | 
| 164       # Compute the output name. Mac uses a different location. | 164       # Compute the output name. Mac uses a different location. | 
| 165       if (is_mac || is_ios) { | 165       if (is_mac || is_ios) { | 
| 166         output = "${root_gen_dir}/repack/${output_locale}.lproj/locale.pak" | 166         output = "${root_gen_dir}/repack/locales/${output_locale}.pak" | 
| 167       } else { | 167       } else { | 
| 168         output = "${root_out_dir}/locales/${output_locale}.pak" | 168         output = "${root_out_dir}/locales/${output_locale}.pak" | 
| 169       } | 169       } | 
| 170     } | 170     } | 
| 171 | 171 | 
| 172     current_index = current_index + 1 | 172     current_index = current_index + 1 | 
| 173   } | 173   } | 
| 174 | 174 | 
| 175   # The group that external targets depend on which collects all deps. | 175   # The group that external targets depend on which collects all deps. | 
| 176   group(group_target_name) { | 176   group(group_target_name) { | 
| 177     forward_variables_from(invoker, [ "visibility" ]) | 177     forward_variables_from(invoker, [ "visibility" ]) | 
| 178     public_deps = locale_targets | 178     public_deps = locale_targets | 
| 179   } | 179   } | 
| 180 } | 180 } | 
| OLD | NEW | 
|---|