aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/third_party.gni
blob: ede698c4afafd3e7d597b17edcfa44cb7fa82e69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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.
    configs -= [
      "//build/config/clang:extra_warnings",
      "//build/config/clang:find_bad_constructs",
      "//build/config/compiler:chromium_code",
      "//build/config:feature_flags",
    ]
  }
}