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: |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 112 visibility = target_visibility |
113 if (defined(invoker.visibility)) { | |
114 # If visibility is restricted, add our own target to it. | |
115 visibility = [ invoker.visibility, target_visibility ] | |
116 } | |
117 } | 113 } |
118 } | 114 } |
119 | 115 |
120 if (bundle) { | 116 if (bundle) { |
121 uncompiled_sources = [] | 117 uncompiled_sources = [] |
122 if (defined(invoker.uncompiled_sources)) { | 118 if (defined(invoker.uncompiled_sources)) { |
123 uncompiled_sources = invoker.uncompiled_sources | 119 uncompiled_sources = invoker.uncompiled_sources |
124 } | 120 } |
125 | 121 |
126 bundle_generator_schema_name = target_name + "_bundle_generator_schema" | 122 bundle_generator_schema_name = target_name + "_bundle_generator_schema" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 direct_dependent_configs = [ ":$generated_config_name" ] | 197 direct_dependent_configs = [ ":$generated_config_name" ] |
202 | 198 |
203 if (defined(invoker.visibility)) { | 199 if (defined(invoker.visibility)) { |
204 visibility = invoker.visibility | 200 visibility = invoker.visibility |
205 } | 201 } |
206 if (defined(invoker.output_name)) { | 202 if (defined(invoker.output_name)) { |
207 output_name = invoker.output_name | 203 output_name = invoker.output_name |
208 } | 204 } |
209 } | 205 } |
210 } | 206 } |
OLD | NEW |