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

Side by Side Diff: chrome/chrome_repack_locales.gni

Issue 1930403003: [Mac/GN] Get chrome and chrome_framework building. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-chrome-app-shim
Patch Set: Created 4 years, 7 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
« build/util/branding.gni ('K') | « chrome/app/BUILD.gn ('k') | no next file » | 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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//tools/grit/repack.gni") 8 import("//tools/grit/repack.gni")
9 9
10 # Arguments: 10 # Arguments:
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 # Compute the name of the target for the current file. Save it for the deps. 156 # Compute the name of the target for the current file. Save it for the deps.
157 current_name = "${target_name}_${input_locale}" 157 current_name = "${target_name}_${input_locale}"
158 locale_targets += [ ":$current_name" ] 158 locale_targets += [ ":$current_name" ]
159 159
160 _repack_one_locale(current_name) { 160 _repack_one_locale(current_name) {
161 visibility = [ ":$group_target_name" ] 161 visibility = [ ":$group_target_name" ]
162 locale = input_locale 162 locale = input_locale
163 163
164 # Compute the output name. Mac uses a different location. 164 # Compute the output name. Mac uses a different location.
165 if (is_mac || is_ios) { 165 if (is_mac || is_ios) {
166 output = "${root_gen_dir}/repack/${output_locale}.lproj/locale.pak" 166 output = "${root_gen_dir}/repack/locales/${output_locale}.pak"
167 } else { 167 } else {
168 output = "${root_out_dir}/locales/${output_locale}.pak" 168 output = "${root_out_dir}/locales/${output_locale}.pak"
169 } 169 }
170 } 170 }
171 171
172 current_index = current_index + 1 172 current_index = current_index + 1
173 } 173 }
174 174
175 # The group that external targets depend on which collects all deps. 175 # The group that external targets depend on which collects all deps.
176 group(group_target_name) { 176 group(group_target_name) {
177 forward_variables_from(invoker, [ "visibility" ]) 177 forward_variables_from(invoker, [ "visibility" ])
178 public_deps = locale_targets 178 public_deps = locale_targets
179 } 179 }
180 } 180 }
OLDNEW
« build/util/branding.gni ('K') | « chrome/app/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698