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

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

Issue 2288273002: Fix imports in gcc_toolchain.gni to not rely on //tools. (Closed)
Patch Set: Add missing import to grit_rule.gni Created 4 years, 3 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
« no previous file with comments | « chrome/chrome_repack_locales.gni ('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 # 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 # source = "myfile.grd" 71 # source = "myfile.grd"
72 # outputs = [ 72 # outputs = [
73 # "foo_strings.h", 73 # "foo_strings.h",
74 # "foo_strings.pak", 74 # "foo_strings.pak",
75 # ] 75 # ]
76 # 76 #
77 # grit_flags = [ "-E", "foo=bar" ] # Optional extra flags. 77 # grit_flags = [ "-E", "foo=bar" ] # Optional extra flags.
78 # # You can also put deps here if the grit source depends on generated 78 # # You can also put deps here if the grit source depends on generated
79 # # files. 79 # # files.
80 # } 80 # }
81 import("//build/config/android/config.gni")
81 import("//build/config/chrome_build.gni") 82 import("//build/config/chrome_build.gni")
82 import("//build/config/crypto.gni") 83 import("//build/config/crypto.gni")
83 import("//build/config/features.gni") 84 import("//build/config/features.gni")
84 import("//build/config/ui.gni") 85 import("//build/config/ui.gni")
85 import("//third_party/closure_compiler/closure_args.gni") 86 import("//third_party/closure_compiler/closure_args.gni")
86 87
87 declare_args() {
88 # Enables used resource whitelist generation. Set for official builds only
89 # as a large amount of build output is generated.
90 enable_resource_whitelist_generation = is_android && is_official_build
91 }
92
93 assert(!enable_resource_whitelist_generation || is_android, 88 assert(!enable_resource_whitelist_generation || is_android,
94 "resource whitelist generation only works on android") 89 "resource whitelist generation only works on android")
95 90
96 grit_defines = [] 91 grit_defines = []
97 92
98 # Mac and iOS want Title Case strings. 93 # Mac and iOS want Title Case strings.
99 use_titlecase_in_grd_files = is_mac || is_ios 94 use_titlecase_in_grd_files = is_mac || is_ios
100 if (use_titlecase_in_grd_files) { 95 if (use_titlecase_in_grd_files) {
101 grit_defines += [ 96 grit_defines += [
102 "-D", 97 "-D",
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 if (defined(invoker.configs)) { 506 if (defined(invoker.configs)) {
512 configs += invoker.configs 507 configs += invoker.configs
513 } 508 }
514 509
515 if (defined(invoker.visibility)) { 510 if (defined(invoker.visibility)) {
516 visibility = invoker.visibility 511 visibility = invoker.visibility
517 } 512 }
518 output_name = grit_output_name 513 output_name = grit_output_name
519 } 514 }
520 } 515 }
OLDNEW
« no previous file with comments | « chrome/chrome_repack_locales.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698