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