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: extensions/generated_extensions_api.gni

Issue 545313002: Make ui gn check pass. Misc GN build improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: link chrome Created 6 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
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 # Defines a static library corresponding to the output of schema compiler tools 5 # Defines a static library corresponding to the output of schema compiler tools
6 # over a set of extensions API schemas (IDL or JSON format.) The library target 6 # over a set of extensions API schemas (IDL or JSON format.) The library target
7 # has implicit hard dependencies on all schema files listed by the invoker and 7 # has implicit hard dependencies on all schema files listed by the invoker and
8 # is itself a hard dependency. 8 # is itself a hard dependency.
9 # 9 #
10 # Invocations of this template may use the following variables: 10 # Invocations of this template may use the following variables:
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 "$target_gen_dir/{{source_name_part}}.cc", 102 "$target_gen_dir/{{source_name_part}}.cc",
103 "$target_gen_dir/{{source_name_part}}.h", 103 "$target_gen_dir/{{source_name_part}}.h",
104 ] 104 ]
105 args = [ 105 args = [
106 "{{source}}", 106 "{{source}}",
107 "--root=" + rebase_path("//", root_build_dir), 107 "--root=" + rebase_path("//", root_build_dir),
108 "--destdir=" + rebase_path(root_gen_dir, root_build_dir), 108 "--destdir=" + rebase_path(root_gen_dir, root_build_dir),
109 "--namespace=$root_namespace", 109 "--namespace=$root_namespace",
110 "--generator=cpp", 110 "--generator=cpp",
111 "--include-rules=$schema_include_rules" ] 111 "--include-rules=$schema_include_rules" ]
112 visibility = target_visibility 112
113 if (defined(invoker.visibility)) {
114 # If visibility is restricted, add our own target to it.
115 visibility = [ invoker.visibility, target_visibility ]
116 }
113 } 117 }
114 } 118 }
115 119
116 if (bundle) { 120 if (bundle) {
117 uncompiled_sources = [] 121 uncompiled_sources = []
118 if (defined(invoker.uncompiled_sources)) { 122 if (defined(invoker.uncompiled_sources)) {
119 uncompiled_sources = invoker.uncompiled_sources 123 uncompiled_sources = invoker.uncompiled_sources
120 } 124 }
121 125
122 bundle_generator_schema_name = target_name + "_bundle_generator_schema" 126 bundle_generator_schema_name = target_name + "_bundle_generator_schema"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 direct_dependent_configs = [ ":$generated_config_name" ] 201 direct_dependent_configs = [ ":$generated_config_name" ]
198 202
199 if (defined(invoker.visibility)) { 203 if (defined(invoker.visibility)) {
200 visibility = invoker.visibility 204 visibility = invoker.visibility
201 } 205 }
202 if (defined(invoker.output_name)) { 206 if (defined(invoker.output_name)) {
203 output_name = invoker.output_name 207 output_name = invoker.output_name
204 } 208 }
205 } 209 }
206 } 210 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698