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

Side by Side Diff: chrome/chrome_repack_locales.gni

Issue 754223003: gn format //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update for multiline output Created 6 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 | « chrome/browser/ui/libgtk2ui/BUILD.gn ('k') | chrome/common/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("//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 #
(...skipping 19 matching lines...) Expand all
30 "${root_gen_dir}/components/strings/components_strings_${locale}.pak", 30 "${root_gen_dir}/components/strings/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 += [ "${root_gen_dir}/ash/strings/ash_strings_${locale}.pak" ]
41 "${root_gen_dir}/ash/strings/ash_strings_${locale}.pak", 41 deps += [ "//ash/strings" ]
42 ]
43 deps += [
44 "//ash/strings",
45 ]
46 } 42 }
47 if (is_chromeos) { 43 if (is_chromeos) {
48 sources += [ 44 sources += [
49 "${root_gen_dir}/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak", 45 "${root_gen_dir}/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak",
50 "${root_gen_dir}/remoting/resources/${locale}.pak", 46 "${root_gen_dir}/remoting/resources/${locale}.pak",
51 ] 47 ]
52 deps += [ 48 deps += [
53 "//remoting/resources", 49 "//remoting/resources",
54 "//ui/chromeos/strings", 50 "//ui/chromeos/strings",
55 ] 51 ]
56 } 52 }
57 if (!is_ios) { 53 if (!is_ios) {
58 sources += [ 54 sources += [
59 "${root_gen_dir}/content/app/strings/content_strings_${locale}.pak", 55 "${root_gen_dir}/content/app/strings/content_strings_${locale}.pak",
60 "${root_gen_dir}/ui/strings/ui_strings_${locale}.pak", 56 "${root_gen_dir}/ui/strings/ui_strings_${locale}.pak",
61 "${root_gen_dir}/ui/strings/app_locale_settings_${locale}.pak", 57 "${root_gen_dir}/ui/strings/app_locale_settings_${locale}.pak",
62 ] 58 ]
63 deps += [ 59 deps += [
64 "//content/app/strings", 60 "//content/app/strings",
65 "//ui/strings:ui_strings", 61 "//ui/strings:ui_strings",
66 "//ui/strings:app_locale_settings", 62 "//ui/strings:app_locale_settings",
67 ] 63 ]
68 } 64 }
69 if (enable_autofill_dialog && !is_ios && !is_android) { 65 if (enable_autofill_dialog && !is_ios && !is_android) {
70 sources += [ 66 sources += [ "${root_gen_dir}/third_party/libaddressinput/address_input_st rings_${locale}.pak" ]
71 "${root_gen_dir}/third_party/libaddressinput/address_input_strings_${loc ale}.pak", 67 deps += [ "//third_party/libaddressinput:strings" ]
72 ]
73 deps += [
74 "//third_party/libaddressinput:strings",
75 ]
76 } 68 }
77 if (enable_extensions) { 69 if (enable_extensions) {
78 sources += [ 70 sources += [
79 "${root_gen_dir}/device/bluetooth/device_bluetooth_strings_${locale}.pak ", 71 "${root_gen_dir}/device/bluetooth/device_bluetooth_strings_${locale}.pak ",
72
80 # TODO(jamescook): When Android stops building extensions code move 73 # TODO(jamescook): When Android stops building extensions code move
81 # this to the OS != 'ios' and OS != 'android' section. 74 # this to the OS != 'ios' and OS != 'android' section.
82 "${root_gen_dir}/extensions/strings/extensions_strings_${locale}.pak", 75 "${root_gen_dir}/extensions/strings/extensions_strings_${locale}.pak",
83 ] 76 ]
84 deps += [ 77 deps += [
85 "//device/bluetooth:strings", 78 "//device/bluetooth:strings",
86 "//extensions/strings", 79 "//extensions/strings",
87 ] 80 ]
88 } 81 }
89 82
90 if (is_chrome_branded) { 83 if (is_chrome_branded) {
91 sources += [ 84 sources +=
92 "${root_gen_dir}/chrome/google_chrome_strings_${locale}.pak", 85 [ "${root_gen_dir}/chrome/google_chrome_strings_${locale}.pak" ]
93 ] 86 deps += [ "//chrome/app:google_chrome_strings" ]
94 deps += [
95 "//chrome/app:google_chrome_strings",
96 ]
97 } else { 87 } else {
98 sources += [ 88 sources += [ "${root_gen_dir}/chrome/chromium_strings_${locale}.pak" ]
99 "${root_gen_dir}/chrome/chromium_strings_${locale}.pak", 89 deps += [ "//chrome/app:chromium_strings" ]
100 ]
101 deps += [
102 "//chrome/app:chromium_strings",
103 ]
104 } 90 }
105 91
106 output = invoker.output 92 output = invoker.output
107 } 93 }
108 } 94 }
109 95
110 # Creates an action to call the repack_locales script. 96 # Creates an action to call the repack_locales script.
111 # 97 #
112 # The GYP version generates the locales in the "gen" directory and then copies 98 # The GYP version generates the locales in the "gen" directory and then copies
113 # it to the root build directory. This isn't easy to express in a GN copy 99 # it to the root build directory. This isn't easy to express in a GN copy
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 153 }
168 154
169 # The group that external targets depend on which collects all deps. 155 # The group that external targets depend on which collects all deps.
170 group(group_target_name) { 156 group(group_target_name) {
171 if (defined(invoker.visibility)) { 157 if (defined(invoker.visibility)) {
172 visibility = invoker.visibility 158 visibility = invoker.visibility
173 } 159 }
174 deps = locale_targets 160 deps = locale_targets
175 } 161 }
176 } 162 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/BUILD.gn ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698