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

Side by Side Diff: build/secondary/tools/grit/grit_rule.gni

Issue 1519013002: Remove the enable_basic_printing and enable_print_preview gn args. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « build/config/features.gni ('k') | skia/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 # Instantiate grit. This will produce a script target to run grit, and a 5 # Instantiate grit. This will produce a script target to run grit, and a
6 # static library that compiles the .cc files. 6 # static library that compiles the .cc files.
7 # 7 #
8 # Parameters 8 # Parameters
9 # 9 #
10 # source (required) 10 # source (required)
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 grit_defines += [ 178 grit_defines += [
179 "-t", 179 "-t",
180 "ios", 180 "ios",
181 181
182 # iOS uses a whitelist to filter resources. 182 # iOS uses a whitelist to filter resources.
183 "-w", 183 "-w",
184 rebase_path("//build/ios/grit_whitelist.txt", root_build_dir), 184 rebase_path("//build/ios/grit_whitelist.txt", root_build_dir),
185 ] 185 ]
186 } 186 }
187 187
188 if (enable_basic_printing || enable_print_preview) {
189 grit_defines += [
190 "-D",
191 "enable_printing",
192 ]
193 if (enable_print_preview) {
194 grit_defines += [
195 "-D",
196 "enable_print_preview",
197 ]
198 }
199 }
200
201 grit_resource_id_file = "//tools/gritsettings/resource_ids" 188 grit_resource_id_file = "//tools/gritsettings/resource_ids"
202 grit_info_script = "//tools/grit/grit_info.py" 189 grit_info_script = "//tools/grit/grit_info.py"
203 190
204 template("grit") { 191 template("grit") {
205 assert(defined(invoker.source), 192 assert(defined(invoker.source),
206 "\"source\" must be defined for the grit template $target_name") 193 "\"source\" must be defined for the grit template $target_name")
207 194
208 grit_inputs = [ invoker.source ] 195 grit_inputs = [ invoker.source ]
209 196
210 if (defined(invoker.resource_ids)) { 197 if (defined(invoker.resource_ids)) {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 if (defined(invoker.configs)) { 351 if (defined(invoker.configs)) {
365 configs += invoker.configs 352 configs += invoker.configs
366 } 353 }
367 354
368 if (defined(invoker.visibility)) { 355 if (defined(invoker.visibility)) {
369 visibility = invoker.visibility 356 visibility = invoker.visibility
370 } 357 }
371 output_name = grit_output_name 358 output_name = grit_output_name
372 } 359 }
373 } 360 }
OLDNEW
« no previous file with comments | « build/config/features.gni ('k') | skia/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698