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

Side by Side Diff: tools/json_schema_compiler/json_schema_api.gni

Issue 2798103002: [Extensions] Fix json_schema_api inputs (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | 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 # 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 uncompiled_bundle_schema_sources = [] 146 uncompiled_bundle_schema_sources = []
147 if (defined(invoker.uncompiled_bundle_schema_sources)) { 147 if (defined(invoker.uncompiled_bundle_schema_sources)) {
148 uncompiled_bundle_schema_sources = 148 uncompiled_bundle_schema_sources =
149 invoker.uncompiled_bundle_schema_sources 149 invoker.uncompiled_bundle_schema_sources
150 } 150 }
151 151
152 bundle_generator_schema_name = target_name + "_bundle_generator_schema" 152 bundle_generator_schema_name = target_name + "_bundle_generator_schema"
153 action(bundle_generator_schema_name) { 153 action(bundle_generator_schema_name) {
154 script = compiler_script 154 script = compiler_script
155 inputs = compiler_sources + invoker.sources + uncompiled_sources 155 inputs = compiler_sources + invoker.sources + uncompiled_sources +
156 uncompiled_bundle_schema_sources
156 outputs = [ 157 outputs = [
157 "$target_gen_dir/generated_schemas.cc", 158 "$target_gen_dir/generated_schemas.cc",
158 "$target_gen_dir/generated_schemas.h", 159 "$target_gen_dir/generated_schemas.h",
159 ] 160 ]
160 args = [ 161 args = [
161 "--root=" + rebase_path("//", root_build_dir), 162 "--root=" + rebase_path("//", root_build_dir),
162 "--destdir=" + rebase_path(root_gen_dir, root_build_dir), 163 "--destdir=" + rebase_path(root_gen_dir, root_build_dir),
163 "--namespace=$root_namespace", 164 "--namespace=$root_namespace",
164 "--bundle-name=" + invoker.bundle_name, 165 "--bundle-name=" + invoker.bundle_name,
165 "--generator=cpp-bundle-schema", 166 "--generator=cpp-bundle-schema",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 public_configs = [ ":$generated_config_name" ] 246 public_configs = [ ":$generated_config_name" ]
246 247
247 if (defined(invoker.visibility)) { 248 if (defined(invoker.visibility)) {
248 visibility = invoker.visibility 249 visibility = invoker.visibility
249 } 250 }
250 if (defined(invoker.output_name)) { 251 if (defined(invoker.output_name)) {
251 output_name = invoker.output_name 252 output_name = invoker.output_name
252 } 253 }
253 } 254 }
254 } 255 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698