| 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") { |
| 11 source = "../../ash_strings.grd" | 11 source = "../ash_strings.grd" |
| 12 use_qualified_include = true | 12 use_qualified_include = true |
| 13 outputs = [ | 13 outputs = [ |
| 14 "grit/ash_strings.h", | 14 "grit/ash_strings.h", |
| 15 "ash_strings_am.pak", | 15 "ash_strings_am.pak", |
| 16 "ash_strings_ar.pak", | 16 "ash_strings_ar.pak", |
| 17 "ash_strings_bg.pak", | 17 "ash_strings_bg.pak", |
| 18 "ash_strings_bn.pak", | 18 "ash_strings_bn.pak", |
| 19 "ash_strings_ca.pak", | 19 "ash_strings_ca.pak", |
| 20 "ash_strings_cs.pak", | 20 "ash_strings_cs.pak", |
| 21 "ash_strings_da.pak", | 21 "ash_strings_da.pak", |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 | 71 |
| 72 # Creates locale-specific pak files with strings needed for ash_unittests, etc. | 72 # Creates locale-specific pak files with strings needed for ash_unittests, etc. |
| 73 template("repack_one_locale_ash") { | 73 template("repack_one_locale_ash") { |
| 74 locale = invoker.locale | 74 locale = invoker.locale |
| 75 output = invoker.output | 75 output = invoker.output |
| 76 | 76 |
| 77 repack(target_name) { | 77 repack(target_name) { |
| 78 # Each input pak file should also have a deps line for completeness. | 78 # Each input pak file should also have a deps line for completeness. |
| 79 sources = [ | 79 sources = [ |
| 80 "$root_gen_dir/ash/common/strings/ash_strings_${locale}.pak", | 80 "$root_gen_dir/ash/strings/ash_strings_${locale}.pak", |
| 81 "$root_gen_dir/device/bluetooth/strings/bluetooth_strings_${locale}.pak", | 81 "$root_gen_dir/device/bluetooth/strings/bluetooth_strings_${locale}.pak", |
| 82 "$root_gen_dir/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak", | 82 "$root_gen_dir/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak", |
| 83 "$root_gen_dir/ui/strings/app_locale_settings_${locale}.pak", | 83 "$root_gen_dir/ui/strings/app_locale_settings_${locale}.pak", |
| 84 "$root_gen_dir/ui/strings/ui_strings_${locale}.pak", | 84 "$root_gen_dir/ui/strings/ui_strings_${locale}.pak", |
| 85 ] | 85 ] |
| 86 | 86 |
| 87 deps = [ | 87 deps = [ |
| 88 "//ash/common/strings", | 88 "//ash/strings", |
| 89 "//device/bluetooth/strings", | 89 "//device/bluetooth/strings", |
| 90 "//ui/chromeos/strings", | 90 "//ui/chromeos/strings", |
| 91 "//ui/strings:app_locale_settings", | 91 "//ui/strings:app_locale_settings", |
| 92 "//ui/strings:ui_strings", | 92 "//ui/strings:ui_strings", |
| 93 ] | 93 ] |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 | 96 |
| 97 # Creates a pak file containing en-US strings for ash_unittests, etc. | 97 # Creates a pak file containing en-US strings for ash_unittests, etc. |
| 98 repack_one_locale_ash("ash_test_strings") { | 98 repack_one_locale_ash("ash_test_strings") { |
| 99 output = "$root_build_dir/ash_test_strings.pak" | 99 output = "$root_build_dir/ash_test_strings.pak" |
| 100 locale = "en-US" | 100 locale = "en-US" |
| 101 } | 101 } |
| OLD | NEW |