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 declare_args() { | 6 template("third_party") { |
| 7 source_set(target_name) { |
| 8 forward_variables_from(invoker, "*") |
| 9 |
| 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/w
ant 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 } |
7 } | 21 } |
8 | |
9 # Chrome's GN environment sets up a bunch of default configs we don't need/want
here. | |
10 unwanted_configs = [ | |
11 "//build/config/clang:extra_warnings", | |
12 "//build/config/clang:find_bad_constructs", | |
13 "//build/config/compiler:chromium_code", | |
14 "//build/config:feature_flags", | |
15 ] | |
OLD | NEW |