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