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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 import("//tools/grit/repack.gni") | 6 import("//tools/grit/repack.gni") |
7 | 7 |
8 assert(is_chromeos) | 8 assert(is_chromeos) |
9 | 9 |
10 grit("strings") { | 10 grit("strings") { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 # Creates locale-specific pak files with strings needed for ash_unittests, etc. | 71 # Creates locale-specific pak files with strings needed for ash_unittests, etc. |
72 template("repack_one_locale_ash") { | 72 template("repack_one_locale_ash") { |
73 locale = invoker.locale | 73 locale = invoker.locale |
74 output = invoker.output | 74 output = invoker.output |
75 | 75 |
76 repack(target_name) { | 76 repack(target_name) { |
77 # Each input pak file should also have a deps line for completeness. | 77 # Each input pak file should also have a deps line for completeness. |
78 sources = [ | 78 sources = [ |
79 "$root_gen_dir/ash/strings/ash_strings_${locale}.pak", | 79 "$root_gen_dir/ash/strings/ash_strings_${locale}.pak", |
| 80 "$root_gen_dir/components/strings/components_strings_${locale}.pak", |
80 "$root_gen_dir/device/bluetooth/strings/bluetooth_strings_${locale}.pak", | 81 "$root_gen_dir/device/bluetooth/strings/bluetooth_strings_${locale}.pak", |
81 "$root_gen_dir/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak", | 82 "$root_gen_dir/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak", |
82 "$root_gen_dir/ui/strings/app_locale_settings_${locale}.pak", | 83 "$root_gen_dir/ui/strings/app_locale_settings_${locale}.pak", |
83 "$root_gen_dir/ui/strings/ui_strings_${locale}.pak", | 84 "$root_gen_dir/ui/strings/ui_strings_${locale}.pak", |
84 ] | 85 ] |
85 | 86 |
86 deps = [ | 87 deps = [ |
87 "//ash/strings", | 88 "//ash/strings", |
| 89 "//components/strings:components_strings", |
88 "//device/bluetooth/strings", | 90 "//device/bluetooth/strings", |
89 "//ui/chromeos/strings", | 91 "//ui/chromeos/strings", |
90 "//ui/strings:app_locale_settings", | 92 "//ui/strings:app_locale_settings", |
91 "//ui/strings:ui_strings", | 93 "//ui/strings:ui_strings", |
92 ] | 94 ] |
93 } | 95 } |
94 } | 96 } |
95 | 97 |
96 # Creates a pak file containing en-US strings for ash_unittests, etc. | 98 # Creates a pak file containing en-US strings for ash_unittests, etc. |
97 repack_one_locale_ash("ash_test_strings") { | 99 repack_one_locale_ash("ash_test_strings") { |
98 output = "$root_build_dir/ash_test_strings.pak" | 100 output = "$root_build_dir/ash_test_strings.pak" |
99 locale = "en-US" | 101 locale = "en-US" |
100 } | 102 } |
OLD | NEW |