blob: 9e552bf5a0c2648b94323613a80ff0f749268869 [file] [log] [blame]
abarth6fc8ff02016-07-15 15:15:15 -07001# 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
mtkleinf037d482016-07-19 08:25:00 -07006template("third_party") {
mtklein25c81d42016-07-27 13:55:26 -07007 config(target_name + "_public") {
8 include_dirs = invoker.public_include_dirs
9 }
mtkleinf037d482016-07-19 08:25:00 -070010 source_set(target_name) {
mtklein25c81d42016-07-27 13:55:26 -070011 forward_variables_from(invoker, "*", [ "public_include_dirs" ])
12 public_configs = [ ":" + target_name + "_public" ]
abarth6fc8ff02016-07-15 15:15:15 -070013
mtkleinf037d482016-07-19 08:25:00 -070014 # Warnings are just noise if we're not maintaining the code.
15 cflags = [ "-w" ]
mtkleinf037d482016-07-19 08:25:00 -070016 }
17}