Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: ash/common/strings/BUILD.gn

Issue 2163253003: Moves ash/strings to ash/common/strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extraneous Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/ash_strings.gyp ('k') | ash/common/strings/ash_strings_am.xtb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 grit("strings") { 8 grit("strings") {
9 source = "../ash_strings.grd" 9 source = "../../ash_strings.grd"
10 outputs = [ 10 outputs = [
11 "grit/ash_strings.h", 11 "grit/ash_strings.h",
12 "ash_strings_am.pak", 12 "ash_strings_am.pak",
13 "ash_strings_ar.pak", 13 "ash_strings_ar.pak",
14 "ash_strings_bg.pak", 14 "ash_strings_bg.pak",
15 "ash_strings_bn.pak", 15 "ash_strings_bn.pak",
16 "ash_strings_ca.pak", 16 "ash_strings_ca.pak",
17 "ash_strings_cs.pak", 17 "ash_strings_cs.pak",
18 "ash_strings_da.pak", 18 "ash_strings_da.pak",
19 "ash_strings_de.pak", 19 "ash_strings_de.pak",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 # Creates locale-specific pak files with strings needed for ash_unittests, etc. 69 # Creates locale-specific pak files with strings needed for ash_unittests, etc.
70 template("repack_one_locale_ash") { 70 template("repack_one_locale_ash") {
71 locale = invoker.locale 71 locale = invoker.locale
72 output = invoker.output 72 output = invoker.output
73 73
74 repack(target_name) { 74 repack(target_name) {
75 # Each input pak file should also have a deps line for completeness. 75 # Each input pak file should also have a deps line for completeness.
76 sources = [ 76 sources = [
77 "$root_gen_dir/ash/strings/ash_strings_${locale}.pak", 77 "$root_gen_dir/ash/common/strings/ash_strings_${locale}.pak",
78 "$root_gen_dir/ui/strings/app_locale_settings_${locale}.pak", 78 "$root_gen_dir/ui/strings/app_locale_settings_${locale}.pak",
79 "$root_gen_dir/ui/strings/ui_strings_${locale}.pak", 79 "$root_gen_dir/ui/strings/ui_strings_${locale}.pak",
80 ] 80 ]
81 81
82 deps = [ 82 deps = [
83 "//ash/strings", 83 "//ash/common/strings",
84 "//ui/strings:app_locale_settings", 84 "//ui/strings:app_locale_settings",
85 "//ui/strings:ui_strings", 85 "//ui/strings:ui_strings",
86 ] 86 ]
87 87
88 if (is_chromeos) { 88 if (is_chromeos) {
89 sources += [ 89 sources += [
90 "$root_gen_dir/device/bluetooth/strings/bluetooth_strings_${locale}.pak" , 90 "$root_gen_dir/device/bluetooth/strings/bluetooth_strings_${locale}.pak" ,
91 "$root_gen_dir/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak", 91 "$root_gen_dir/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak",
92 ] 92 ]
93 deps += [ 93 deps += [
94 "//device/bluetooth/strings", 94 "//device/bluetooth/strings",
95 "//ui/chromeos/strings", 95 "//ui/chromeos/strings",
96 ] 96 ]
97 } 97 }
98 } 98 }
99 } 99 }
100 100
101 # Creates a pak file containing en-US strings for ash_unittests, etc. 101 # Creates a pak file containing en-US strings for ash_unittests, etc.
102 repack_one_locale_ash("ash_test_strings") { 102 repack_one_locale_ash("ash_test_strings") {
103 output = "$root_build_dir/ash_test_strings.pak" 103 output = "$root_build_dir/ash_test_strings.pak"
104 locale = "en-US" 104 locale = "en-US"
105 } 105 }
OLDNEW
« no previous file with comments | « ash/ash_strings.gyp ('k') | ash/common/strings/ash_strings_am.xtb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698