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

Side by Side Diff: build/json_schema_api.gni

Issue 1258273004: Annotate large GN targets for precompiled headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable Created 5 years, 4 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 | « build/config/compiler/BUILD.gn ('k') | build/precompile.h » ('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 # 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 29 matching lines...) Expand all
40 # The path containing C++ implementations of API functions. This path is 40 # The path containing C++ implementations of API functions. This path is
41 # used as the root path when looking for {schema}/{schema}_api.h headers 41 # used as the root path when looking for {schema}/{schema}_api.h headers
42 # when generating API registration bundles. Such headers, if found, are 42 # when generating API registration bundles. Such headers, if found, are
43 # automatically included by the generated code. 43 # automatically included by the generated code.
44 # 44 #
45 # uncompiled_sources [optional, only used when bundle = true or 45 # uncompiled_sources [optional, only used when bundle = true or
46 # bundle_registration = true] 46 # bundle_registration = true]
47 # A list of schema files which should not be compiled, but which should still 47 # A list of schema files which should not be compiled, but which should still
48 # be processed for API bundle generation. 48 # be processed for API bundle generation.
49 # 49 #
50 # configs [optional]
51 # Extra configs to apply to the compile step.
52 #
50 # deps [optional] 53 # deps [optional]
51 # If any deps are specified they will be inherited by the static library 54 # If any deps are specified they will be inherited by the static library
52 # target. 55 # target.
53 # 56 #
54 # generate_static_library [optional, defaults to false] 57 # generate_static_library [optional, defaults to false]
55 # Produces a static library instead of a source_set. 58 # Produces a static library instead of a source_set.
56 # 59 #
57 # The generated library target also inherits the visibility and output_name 60 # The generated library target also inherits the visibility and output_name
58 # of its invoker. 61 # of its invoker.
59 62
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 ] + rebase_path(invoker.sources, root_build_dir) + 194 ] + rebase_path(invoker.sources, root_build_dir) +
192 rebase_path(uncompiled_sources, root_build_dir) 195 rebase_path(uncompiled_sources, root_build_dir)
193 } 196 }
194 } 197 }
195 198
196 # Compute the contents of the library/source set. 199 # Compute the contents of the library/source set.
197 lib_sources = invoker.sources 200 lib_sources = invoker.sources
198 lib_deps = [] 201 lib_deps = []
199 lib_public_deps = [] 202 lib_public_deps = []
200 lib_extra_configs = [] 203 lib_extra_configs = []
204 if (defined(invoker.configs)) {
205 lib_extra_configs += invoker.configs
206 }
201 207
202 if (schemas) { 208 if (schemas) {
203 lib_sources += get_target_outputs(":$schema_generator_name") 209 lib_sources += get_target_outputs(":$schema_generator_name")
204 lib_public_deps += [ ":$schema_generator_name" ] 210 lib_public_deps += [ ":$schema_generator_name" ]
205 lib_deps += [ "//tools/json_schema_compiler:generated_api_util" ] 211 lib_deps += [ "//tools/json_schema_compiler:generated_api_util" ]
206 lib_extra_configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 212 lib_extra_configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
207 } 213 }
208 214
209 if (bundle) { 215 if (bundle) {
210 lib_sources += get_target_outputs(":$bundle_generator_schema_name") 216 lib_sources += get_target_outputs(":$bundle_generator_schema_name")
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 253
248 if (defined(invoker.visibility)) { 254 if (defined(invoker.visibility)) {
249 visibility = invoker.visibility 255 visibility = invoker.visibility
250 } 256 }
251 if (defined(invoker.output_name)) { 257 if (defined(invoker.output_name)) {
252 output_name = invoker.output_name 258 output_name = invoker.output_name
253 } 259 }
254 } 260 }
255 } 261 }
256 } 262 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/precompile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698