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 # Compile a protocol buffer. | 5 # Compile a protocol buffer. |
6 # | 6 # |
7 # Protobuf parameters: | 7 # Protobuf parameters: |
8 # | 8 # |
9 # proto_out_dir (optional) | 9 # proto_out_dir (optional) |
10 # Specifies the path suffix that output files are generated under. This | 10 # Specifies the path suffix that output files are generated under. This |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 sources = get_target_outputs(":$action_name") | 134 sources = get_target_outputs(":$action_name") |
135 | 135 |
136 if (defined(invoker.defines)) { | 136 if (defined(invoker.defines)) { |
137 defines = invoker.defines | 137 defines = invoker.defines |
138 } | 138 } |
139 if (defined(invoker.extra_configs)) { | 139 if (defined(invoker.extra_configs)) { |
140 configs += invoker.extra_configs | 140 configs += invoker.extra_configs |
141 } | 141 } |
142 | 142 |
143 direct_dependent_configs = [ "//third_party/protobuf:using_proto" ] | 143 public_configs = [ "//third_party/protobuf:using_proto" ] |
144 | 144 |
| 145 public_deps = [ |
| 146 # The generated headers reference headers within protobuf_lite, so |
| 147 # dependencies must be able to find those headers too. |
| 148 "//third_party/protobuf:protobuf_lite", |
| 149 ] |
145 deps = [ | 150 deps = [ |
146 ":$action_name", | 151 ":$action_name", |
147 "//third_party/protobuf:protobuf_lite", | |
148 ] | 152 ] |
149 | |
150 # The generated headers reference headers within protobuf_lite, so | |
151 # dependencies must be able to find those headers too. | |
152 forward_dependent_configs_from = [ "//third_party/protobuf:protobuf_lite" ] | |
153 } | 153 } |
154 } | 154 } |
OLD | NEW |