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" ] |
186 } | 187 } |
187 | 188 |
188 if (bundle) { | 189 if (bundle) { |
189 sources += get_target_outputs(":$bundle_generator_schema_name") | 190 sources += get_target_outputs(":$bundle_generator_schema_name") |
190 deps += [ ":$bundle_generator_schema_name" ] | 191 deps += [ ":$bundle_generator_schema_name" ] |
191 } | 192 } |
192 | 193 |
193 if (bundle_registration) { | 194 if (bundle_registration) { |
194 sources += get_target_outputs(":$bundle_generator_registration_name") | 195 sources += get_target_outputs(":$bundle_generator_registration_name") |
195 deps += [ ":$bundle_generator_registration_name" ] | 196 deps += [ ":$bundle_generator_registration_name" ] |
196 } | 197 } |
197 | 198 |
198 if (defined(invoker.deps)) { | 199 if (defined(invoker.deps)) { |
199 deps += invoker.deps | 200 deps += invoker.deps |
200 } | 201 } |
201 public_configs = [ ":$generated_config_name" ] | 202 public_configs = [ ":$generated_config_name" ] |
202 | 203 |
203 if (defined(invoker.visibility)) { | 204 if (defined(invoker.visibility)) { |
204 visibility = invoker.visibility | 205 visibility = invoker.visibility |
205 } | 206 } |
206 if (defined(invoker.output_name)) { | 207 if (defined(invoker.output_name)) { |
207 output_name = invoker.output_name | 208 output_name = invoker.output_name |
208 } | 209 } |
209 } | 210 } |
210 } | 211 } |
OLD | NEW |