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") { | 7 config(target_name + "_public") { |
8 include_dirs = invoker.public_include_dirs | 8 include_dirs = invoker.public_include_dirs |
9 } | 9 } |
10 source_set(target_name) { | 10 source_set(target_name) { |
11 forward_variables_from(invoker, "*", [ "public_include_dirs" ]) | 11 forward_variables_from(invoker, "*", [ "public_include_dirs" ]) |
12 public_configs = [ ":" + target_name + "_public" ] | 12 public_configs = [ ":" + target_name + "_public" ] |
13 | 13 |
14 # Warnings are just noise if we're not maintaining the code. | 14 # Warnings are just noise if we're not maintaining the code. |
15 cflags = [ "-w" ] | 15 cflags = [ "-w" ] |
16 } | 16 } |
17 } | 17 } |
| 18 |
| 19 set_defaults("third_party") { |
| 20 configs = default_configs |
| 21 } |
OLD | NEW |