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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 source_set(target_name) { | 177 source_set(target_name) { |
178 sources = [] | 178 sources = [] |
179 deps = [] | 179 deps = [] |
180 public_deps = [] | 180 public_deps = [] |
181 | 181 |
182 if (schemas) { | 182 if (schemas) { |
183 sources += get_target_outputs(":$schema_generator_name") | 183 sources += get_target_outputs(":$schema_generator_name") |
184 public_deps += [ ":$schema_generator_name" ] | 184 public_deps += [ ":$schema_generator_name" ] |
185 deps += [ "//tools/json_schema_compiler:generated_api_util" ] | 185 deps += [ "//tools/json_schema_compiler:generated_api_util" ] |
186 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
187 } | 186 } |
188 | 187 |
189 if (bundle) { | 188 if (bundle) { |
190 sources += get_target_outputs(":$bundle_generator_schema_name") | 189 sources += get_target_outputs(":$bundle_generator_schema_name") |
191 deps += [ ":$bundle_generator_schema_name" ] | 190 deps += [ ":$bundle_generator_schema_name" ] |
192 } | 191 } |
193 | 192 |
194 if (bundle_registration) { | 193 if (bundle_registration) { |
195 sources += get_target_outputs(":$bundle_generator_registration_name") | 194 sources += get_target_outputs(":$bundle_generator_registration_name") |
196 deps += [ ":$bundle_generator_registration_name" ] | 195 deps += [ ":$bundle_generator_registration_name" ] |
197 } | 196 } |
198 | 197 |
199 if (defined(invoker.deps)) { | 198 if (defined(invoker.deps)) { |
200 deps += invoker.deps | 199 deps += invoker.deps |
201 } | 200 } |
202 public_configs = [ ":$generated_config_name" ] | 201 public_configs = [ ":$generated_config_name" ] |
203 | 202 |
204 if (defined(invoker.visibility)) { | 203 if (defined(invoker.visibility)) { |
205 visibility = invoker.visibility | 204 visibility = invoker.visibility |
206 } | 205 } |
207 if (defined(invoker.output_name)) { | 206 if (defined(invoker.output_name)) { |
208 output_name = invoker.output_name | 207 output_name = invoker.output_name |
209 } | 208 } |
210 } | 209 } |
211 } | 210 } |
OLD | NEW |