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

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

Issue 356303002: First pass on adding a chrome/browser GN target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « build/config/features.gni ('k') | chrome/browser/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 10 # source
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 "-E", "ANDROID_JAVA_TAGGED_ONLY=true", 47 "-E", "ANDROID_JAVA_TAGGED_ONLY=true",
48 ] 48 ]
49 } 49 }
50 50
51 if (enable_extensions) { 51 if (enable_extensions) {
52 grit_defines += [ "-D", "enable_extensions" ] 52 grit_defines += [ "-D", "enable_extensions" ]
53 } 53 }
54 if (enable_plugins) { 54 if (enable_plugins) {
55 grit_defines += [ "-D", "enable_plugins" ] 55 grit_defines += [ "-D", "enable_plugins" ]
56 } 56 }
57 if (enable_task_manager) {
58 grit_defines += [ "-D", "enable_task_manager" ]
59 }
60 if (enable_app_list) {
61 grit_defines += [ "-D", "enable_app_list" ]
62 }
63 if (enable_service_discovery) {
64 grit_defines += [ "-D", "enable_service_discovery" ]
65 }
66 if (enable_wifi_bootstrapping) {
67 grit_defines += [ "-D", "enable_wifi_bootstrapping" ]
68 }
57 69
58 # TODO(GYP) the rest of the grit_defines from the gyp build. 70 # TODO(GYP) the rest of the grit_defines from the gyp build.
59 71
60 grit_resource_id_file = "//tools/gritsettings/resource_ids" 72 grit_resource_id_file = "//tools/gritsettings/resource_ids"
61 grit_info_script = "//tools/grit/grit_info.py" 73 grit_info_script = "//tools/grit/grit_info.py"
62 74
63 template("grit") { 75 template("grit") {
64 assert(defined(invoker.source), 76 assert(defined(invoker.source),
65 "\"source\" must be defined for the grit template $target_name") 77 "\"source\" must be defined for the grit template $target_name")
66 assert(!defined(invoker.sources) && !defined(invoker.outputs), 78 assert(!defined(invoker.sources) && !defined(invoker.outputs),
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 direct_dependent_configs = [ ":$grit_config" ] 156 direct_dependent_configs = [ ":$grit_config" ]
145 157
146 if (defined(invoker.visibility)) { 158 if (defined(invoker.visibility)) {
147 visibility = invoker.visibility 159 visibility = invoker.visibility
148 } 160 }
149 if (defined(invoker.output_name)) { 161 if (defined(invoker.output_name)) {
150 output_name = invoker.output_name 162 output_name = invoker.output_name
151 } 163 }
152 } 164 }
153 } 165 }
OLDNEW
« no previous file with comments | « build/config/features.gni ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698