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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 bundle_registration = defined(invoker.bundle_registration) && | 60 bundle_registration = defined(invoker.bundle_registration) && |
61 invoker.bundle_registration | 61 invoker.bundle_registration |
62 | 62 |
63 schema_include_rules = "" | 63 schema_include_rules = "" |
64 if (defined(invoker.schema_include_rules)) { | 64 if (defined(invoker.schema_include_rules)) { |
65 schema_include_rules = invoker.schema_include_rules | 65 schema_include_rules = invoker.schema_include_rules |
66 } | 66 } |
67 | 67 |
68 # Keep a copy of the target_name here since it will be trampled | 68 # Keep a copy of the target_name here since it will be trampled |
69 # in nested targets. | 69 # in nested targets. |
70 target_visibility = ":$target_name" | 70 target_visibility = [ ":$target_name" ] |
71 | 71 |
72 generated_config_name = target_name + "_generated_config" | 72 generated_config_name = target_name + "_generated_config" |
73 config(generated_config_name) { | 73 config(generated_config_name) { |
74 include_dirs = [ target_gen_dir ] | 74 include_dirs = [ target_gen_dir ] |
75 visibility = target_visibility | 75 visibility = target_visibility |
76 } | 76 } |
77 | 77 |
78 sources = invoker.sources | 78 sources = invoker.sources |
79 root_namespace = invoker.root_namespace | 79 root_namespace = invoker.root_namespace |
80 | 80 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 direct_dependent_configs = [ ":$generated_config_name" ] | 197 direct_dependent_configs = [ ":$generated_config_name" ] |
198 | 198 |
199 if (defined(invoker.visibility)) { | 199 if (defined(invoker.visibility)) { |
200 visibility = invoker.visibility | 200 visibility = invoker.visibility |
201 } | 201 } |
202 if (defined(invoker.output_name)) { | 202 if (defined(invoker.output_name)) { |
203 output_name = invoker.output_name | 203 output_name = invoker.output_name |
204 } | 204 } |
205 } | 205 } |
206 } | 206 } |
OLD | NEW |