aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/third_party.gni
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/third_party.gni')
-rw-r--r--third_party/third_party.gni24
1 files changed, 15 insertions, 9 deletions
diff --git a/third_party/third_party.gni b/third_party/third_party.gni
index 813ee385f3..ede698c4af 100644
--- a/third_party/third_party.gni
+++ b/third_party/third_party.gni
@@ -3,13 +3,19 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-declare_args() {
-}
+template("third_party") {
+ source_set(target_name) {
+ forward_variables_from(invoker, "*")
+
+ # Warnings are just noise if we're not maintaining the code.
+ cflags = [ "-w" ]
-# Chrome's GN environment sets up a bunch of default configs we don't need/want here.
-unwanted_configs = [
- "//build/config/clang:extra_warnings",
- "//build/config/clang:find_bad_constructs",
- "//build/config/compiler:chromium_code",
- "//build/config:feature_flags",
-]
+ # Chrome's GN environment sets up a bunch of default configs we don't need/want here.
+ configs -= [
+ "//build/config/clang:extra_warnings",
+ "//build/config/clang:find_bad_constructs",
+ "//build/config/compiler:chromium_code",
+ "//build/config:feature_flags",
+ ]
+ }
+}