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

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

Issue 2559713003: Remove non-chromeos support from src/ash BUILD.gn files (Closed)
Patch Set: rebase, nit Created 4 years 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/common/BUILD.gn ('k') | ash/mus/BUILD.gn » ('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 assert(is_chromeos)
9
8 grit("strings") { 10 grit("strings") {
9 source = "../../ash_strings.grd" 11 source = "../../ash_strings.grd"
10 outputs = [ 12 outputs = [
11 "grit/ash_strings.h", 13 "grit/ash_strings.h",
12 "ash_strings_am.pak", 14 "ash_strings_am.pak",
13 "ash_strings_ar.pak", 15 "ash_strings_ar.pak",
14 "ash_strings_bg.pak", 16 "ash_strings_bg.pak",
15 "ash_strings_bn.pak", 17 "ash_strings_bn.pak",
16 "ash_strings_ca.pak", 18 "ash_strings_ca.pak",
17 "ash_strings_cs.pak", 19 "ash_strings_cs.pak",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 70
69 # 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.
70 template("repack_one_locale_ash") { 72 template("repack_one_locale_ash") {
71 locale = invoker.locale 73 locale = invoker.locale
72 output = invoker.output 74 output = invoker.output
73 75
74 repack(target_name) { 76 repack(target_name) {
75 # 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.
76 sources = [ 78 sources = [
77 "$root_gen_dir/ash/common/strings/ash_strings_${locale}.pak", 79 "$root_gen_dir/ash/common/strings/ash_strings_${locale}.pak",
80 "$root_gen_dir/device/bluetooth/strings/bluetooth_strings_${locale}.pak",
81 "$root_gen_dir/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak",
78 "$root_gen_dir/ui/strings/app_locale_settings_${locale}.pak", 82 "$root_gen_dir/ui/strings/app_locale_settings_${locale}.pak",
79 "$root_gen_dir/ui/strings/ui_strings_${locale}.pak", 83 "$root_gen_dir/ui/strings/ui_strings_${locale}.pak",
80 ] 84 ]
81 85
82 deps = [ 86 deps = [
83 "//ash/common/strings", 87 "//ash/common/strings",
88 "//device/bluetooth/strings",
89 "//ui/chromeos/strings",
84 "//ui/strings:app_locale_settings", 90 "//ui/strings:app_locale_settings",
85 "//ui/strings:ui_strings", 91 "//ui/strings:ui_strings",
86 ] 92 ]
87
88 if (is_chromeos) {
89 sources += [
90 "$root_gen_dir/device/bluetooth/strings/bluetooth_strings_${locale}.pak" ,
91 "$root_gen_dir/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak",
92 ]
93 deps += [
94 "//device/bluetooth/strings",
95 "//ui/chromeos/strings",
96 ]
97 }
98 } 93 }
99 } 94 }
100 95
101 # Creates a pak file containing en-US strings for ash_unittests, etc. 96 # Creates a pak file containing en-US strings for ash_unittests, etc.
102 repack_one_locale_ash("ash_test_strings") { 97 repack_one_locale_ash("ash_test_strings") {
103 output = "$root_build_dir/ash_test_strings.pak" 98 output = "$root_build_dir/ash_test_strings.pak"
104 locale = "en-US" 99 locale = "en-US"
105 } 100 }
OLDNEW
« no previous file with comments | « ash/common/BUILD.gn ('k') | ash/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698