OLD | NEW |
1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 template("third_party") { | 6 template("third_party") { |
| 7 config(target_name + "_public") { |
| 8 include_dirs = invoker.public_include_dirs |
| 9 } |
7 source_set(target_name) { | 10 source_set(target_name) { |
8 forward_variables_from(invoker, "*") | 11 forward_variables_from(invoker, "*", [ "public_include_dirs" ]) |
| 12 public_configs = [ ":" + target_name + "_public" ] |
9 | 13 |
10 # Warnings are just noise if we're not maintaining the code. | 14 # Warnings are just noise if we're not maintaining the code. |
11 cflags = [ "-w" ] | 15 cflags = [ "-w" ] |
12 } | 16 } |
13 } | 17 } |
OLD | NEW |