| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 "--impl-dir=" + rebase_path(impl_dir, "//"), | 169 "--impl-dir=" + rebase_path(impl_dir, "//"), |
| 170 "--include-rules=$schema_include_rules" ] | 170 "--include-rules=$schema_include_rules" ] |
| 171 + rebase_path(sources, root_build_dir) | 171 + rebase_path(sources, root_build_dir) |
| 172 + rebase_path(uncompiled_sources, root_build_dir) | 172 + rebase_path(uncompiled_sources, root_build_dir) |
| 173 } | 173 } |
| 174 } | 174 } |
| 175 | 175 |
| 176 source_set(target_name) { | 176 source_set(target_name) { |
| 177 sources = [] | 177 sources = [] |
| 178 deps = [] | 178 deps = [] |
| 179 | 179 public_deps = [] |
| 180 |
| 180 if (schemas) { | 181 if (schemas) { |
| 181 sources += get_target_outputs(":$schema_generator_name") | 182 sources += get_target_outputs(":$schema_generator_name") |
| 182 deps += [ | 183 public_deps += [ ":$schema_generator_name" ] |
| 183 ":$schema_generator_name", | 184 deps += [ "//tools/json_schema_compiler:generated_api_util" ] |
| 184 "//tools/json_schema_compiler:generated_api_util", | |
| 185 ] | |
| 186 } | 185 } |
| 187 | 186 |
| 188 if (bundle) { | 187 if (bundle) { |
| 189 sources += get_target_outputs(":$bundle_generator_schema_name") | 188 sources += get_target_outputs(":$bundle_generator_schema_name") |
| 190 deps += [ ":$bundle_generator_schema_name" ] | 189 deps += [ ":$bundle_generator_schema_name" ] |
| 191 } | 190 } |
| 192 | 191 |
| 193 if (bundle_registration) { | 192 if (bundle_registration) { |
| 194 sources += get_target_outputs(":$bundle_generator_registration_name") | 193 sources += get_target_outputs(":$bundle_generator_registration_name") |
| 195 deps += [ ":$bundle_generator_registration_name" ] | 194 deps += [ ":$bundle_generator_registration_name" ] |
| 196 } | 195 } |
| 197 | 196 |
| 198 if (defined(invoker.deps)) { | 197 if (defined(invoker.deps)) { |
| 199 deps += invoker.deps | 198 deps += invoker.deps |
| 200 } | 199 } |
| 201 direct_dependent_configs = [ ":$generated_config_name" ] | 200 direct_dependent_configs = [ ":$generated_config_name" ] |
| 202 | 201 |
| 203 if (defined(invoker.visibility)) { | 202 if (defined(invoker.visibility)) { |
| 204 visibility = invoker.visibility | 203 visibility = invoker.visibility |
| 205 } | 204 } |
| 206 if (defined(invoker.output_name)) { | 205 if (defined(invoker.output_name)) { |
| 207 output_name = invoker.output_name | 206 output_name = invoker.output_name |
| 208 } | 207 } |
| 209 } | 208 } |
| 210 } | 209 } |
| OLD | NEW |