| 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 # Wraps repack_locales(), setting the source_patterns and deps required for | 10 # Wraps repack_locales(), setting the source_patterns and deps required for |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 if (!defined(deps)) { | 29 if (!defined(deps)) { |
| 30 deps = [] | 30 deps = [] |
| 31 } | 31 } |
| 32 deps += [ | 32 deps += [ |
| 33 "//chrome/app:generated_resources", | 33 "//chrome/app:generated_resources", |
| 34 "//chrome/app/resources:locale_settings", | 34 "//chrome/app/resources:locale_settings", |
| 35 "//chrome/app/resources:platform_locale_settings", | 35 "//chrome/app/resources:platform_locale_settings", |
| 36 "//components/strings:components_locale_settings", | 36 "//components/strings:components_locale_settings", |
| 37 "//components/strings:components_strings", | 37 "//components/strings:components_strings", |
| 38 ] | 38 ] |
| 39 if (defined(invoker.deps)) { | |
| 40 deps += invoker.deps | |
| 41 } | |
| 42 | 39 |
| 43 if (use_ash) { | 40 if (use_ash) { |
| 44 source_patterns += [ "${root_gen_dir}/ash/common/strings/ash_strings_" ] | 41 source_patterns += [ "${root_gen_dir}/ash/common/strings/ash_strings_" ] |
| 45 deps += [ "//ash/common/strings" ] | 42 deps += [ "//ash/common/strings" ] |
| 46 } | 43 } |
| 47 if (is_chromeos) { | 44 if (is_chromeos) { |
| 48 source_patterns += [ | 45 source_patterns += [ |
| 49 "${root_gen_dir}/remoting/resources/", | 46 "${root_gen_dir}/remoting/resources/", |
| 50 "${root_gen_dir}/ui/chromeos/strings/ui_chromeos_strings_", | 47 "${root_gen_dir}/ui/chromeos/strings/ui_chromeos_strings_", |
| 51 ] | 48 ] |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 ] | 92 ] |
| 96 deps += [ | 93 deps += [ |
| 97 "//chrome/app:chromium_strings", | 94 "//chrome/app:chromium_strings", |
| 98 "//components/strings:components_chromium_strings", | 95 "//components/strings:components_chromium_strings", |
| 99 ] | 96 ] |
| 100 } | 97 } |
| 101 | 98 |
| 102 if (defined(invoker.additional_source_patterns)) { | 99 if (defined(invoker.additional_source_patterns)) { |
| 103 source_patterns += invoker.additional_source_patterns | 100 source_patterns += invoker.additional_source_patterns |
| 104 } | 101 } |
| 102 |
| 103 if (!defined(output_dir)) { |
| 104 if (is_mac || is_ios) { |
| 105 output_dir = "${root_gen_dir}/repack/locales" |
| 106 } else { |
| 107 output_dir = "${root_out_dir}/locales" |
| 108 } |
| 109 } |
| 105 } | 110 } |
| 106 } | 111 } |
| OLD | NEW |