1 # Copyright 2016 Google Inc.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 template("third_party") {
7 config(target_name + "_public") {
8 if (defined(invoker.public_defines)) {
9 defines = invoker.public_defines
11 include_dirs = invoker.public_include_dirs
13 source_set(target_name) {
14 forward_variables_from(invoker, "*", [ "public_include_dirs" ])
15 public_configs = [ ":" + target_name + "_public" ]
17 # Warnings are just noise if we're not maintaining the code.
26 set_defaults("third_party") {
27 configs = default_configs - [ "//gn:warnings" ]