OLD | NEW |
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: |
11 # | 11 # |
12 # sources [required] A list of schema files to be compiled. | 12 # sources [required] A list of schema files to be compiled. |
13 # | 13 # |
14 # root_namespace [required] | 14 # root_namespace [required] |
15 # The namespace in which generated API code is to be | 15 # A Python string substituion pattern used to generate the C++ |
16 # wrapped. C++ namespace syntax is accepted for nested namespace | 16 # namespace for each API. Use %(namespace)s to replace with the API |
17 # (e.g. "foo::bar::api"). | 17 # namespace, like "toplevel::%(namespace)s_api". |
18 # | 18 # |
19 # bundle [optional, default = false] | 19 # bundle [optional, default = false] |
20 # Boolean indicating if the schema files should be bundled or not. | 20 # Boolean indicating if the schema files should be bundled or not. |
21 # | 21 # |
22 # impl_dir [required if bundle = true, otherwise unused] | 22 # impl_dir [required if bundle = true, otherwise unused] |
23 # The path containing C++ implementations of API functions. This path is | 23 # The path containing C++ implementations of API functions. This path is |
24 # used as the root path when looking for {schema}/{schema}_api.h headers | 24 # used as the root path when looking for {schema}/{schema}_api.h headers |
25 # during the API bundle generation phase. Such headers, if found, are | 25 # during the API bundle generation phase. Such headers, if found, are |
26 # automatically included by the generated code. | 26 # automatically included by the generated code. |
27 # | 27 # |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 direct_dependent_configs = [ ":$generated_config_name" ] | 141 direct_dependent_configs = [ ":$generated_config_name" ] |
142 | 142 |
143 if (defined(invoker.visibility)) { | 143 if (defined(invoker.visibility)) { |
144 visibility = invoker.visibility | 144 visibility = invoker.visibility |
145 } | 145 } |
146 if (defined(invoker.output_name)) { | 146 if (defined(invoker.output_name)) { |
147 output_name = invoker.output_name | 147 output_name = invoker.output_name |
148 } | 148 } |
149 } | 149 } |
150 } | 150 } |
OLD | NEW |