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") { |
| 7 | source_set(target_name) { |
| 8 | forward_variables_from(invoker, "*") |
abarth | 6fc8ff0 | 2016-07-15 15:15:15 -0700 | [diff] [blame] | 9 | |
mtklein | f037d48 | 2016-07-19 08:25:00 -0700 | [diff] [blame] | 10 | # Warnings are just noise if we're not maintaining the code. |
| 11 | cflags = [ "-w" ] |
| 12 | |
| 13 | # Chrome's GN environment sets up a bunch of default configs we don't need/want here. |
| 14 | configs -= [ |
| 15 | "//build/config/clang:extra_warnings", |
| 16 | "//build/config/clang:find_bad_constructs", |
| 17 | "//build/config/compiler:chromium_code", |
| 18 | "//build/config:feature_flags", |
| 19 | ] |
| 20 | } |
| 21 | } |