diff options
author | mtklein <mtklein@chromium.org> | 2016-07-19 08:25:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-19 08:25:00 -0700 |
commit | f037d48e29000554abcd117445c4249071bb9fb3 (patch) | |
tree | 8492f6981c971f486cf29958620604aa6bcb2275 /third_party/zlib | |
parent | 916e02a6d004af5b83a636d1507bfdf2da8543ce (diff) |
GN: refactor third_party/gni
This fixes the build on Linux (dep on third_party:zlib -> third_party/zlib).
I've moved declare_args() {} back to each .gn file... seems like args want
to be as local as possible in GN land.
Additionally, refactor all the common third_party config and warning flag
changes into a template, third_party. This lets it all live together in a
.gni: at head unwanted_configs can be in a .gni (it's just a variable) but
config("no_warnings") (and thus third_party_configs) cannot, as configs
cannot be part of .gni files.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2163653002
Review-Url: https://codereview.chromium.org/2163653002
Diffstat (limited to 'third_party/zlib')
-rw-r--r-- | third_party/zlib/BUILD.gn | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn index 0fff083a43..6338dba278 100644 --- a/third_party/zlib/BUILD.gn +++ b/third_party/zlib/BUILD.gn @@ -3,16 +3,16 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +declare_args() { +} + import("../third_party.gni") config("zlib_public") { include_dirs = [ "../externals/zlib" ] } -source_set("zlib") { +third_party("zlib") { public_configs = [ ":zlib_public" ] - configs -= unwanted_configs - - cflags = [ "-w" ] sources = [ "../externals/zlib/adler32.c", |