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

Side by Side Diff: chrome/chrome_repack_locales.gni

Issue 637163002: Changes the location of the component resources in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//tools/grit/repack.gni") 7 import("//tools/grit/repack.gni")
8 8
9 # Arguments: 9 # Arguments:
10 # 10 #
11 # locale 11 # locale
12 # Internal name of locale. e.g. "pt-BR" 12 # Internal name of locale. e.g. "pt-BR"
13 # 13 #
14 # output 14 # output
15 # Output file name. 15 # Output file name.
16 # 16 #
17 # visibility 17 # visibility
18 # Normal meaning. 18 # Normal meaning.
19 template("_repack_one_locale") { 19 template("_repack_one_locale") {
20 locale = invoker.locale 20 locale = invoker.locale
21 21
22 repack(target_name) { 22 repack(target_name) {
23 visibility = invoker.visibility 23 visibility = invoker.visibility
24 24
25 # Each input pak file should also have a deps line for completeness. 25 # Each input pak file should also have a deps line for completeness.
26 sources = [ 26 sources = [
27 "${root_gen_dir}/chrome/app/resources/platform_locale_settings_${locale}.p ak", 27 "${root_gen_dir}/chrome/app/resources/platform_locale_settings_${locale}.p ak",
28 "${root_gen_dir}/chrome/generated_resources_${locale}.pak", 28 "${root_gen_dir}/chrome/generated_resources_${locale}.pak",
29 "${root_gen_dir}/chrome/locale_settings_${locale}.pak", 29 "${root_gen_dir}/chrome/locale_settings_${locale}.pak",
30 "${root_gen_dir}/components/strings/components_strings_${locale}.pak", 30 "${root_gen_dir}/components/components_strings_${locale}.pak",
31 ] 31 ]
32 deps = [ 32 deps = [
33 "//chrome/app/resources:platform_locale_settings", 33 "//chrome/app/resources:platform_locale_settings",
34 "//chrome/app:generated_resources", 34 "//chrome/app:generated_resources",
35 "//chrome/app/resources:locale_settings", 35 "//chrome/app/resources:locale_settings",
36 "//components/strings", 36 "//components/strings",
37 ] 37 ]
38 38
39 if (use_ash) { 39 if (use_ash) {
40 sources += [ 40 sources += [
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 166
167 # The group that external targets depend on which collects all deps. 167 # The group that external targets depend on which collects all deps.
168 group(group_target_name) { 168 group(group_target_name) {
169 if (defined(invoker.visibility)) { 169 if (defined(invoker.visibility)) {
170 visibility = invoker.visibility 170 visibility = invoker.visibility
171 } 171 }
172 deps = locale_targets 172 deps = locale_targets
173 } 173 }
174 } 174 }
OLDNEW
« no previous file with comments | « chrome/BUILD.gn ('k') | components/resources/BUILD.gn » ('j') | components/strings/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698