diff options
author | mtklein <mtklein@chromium.org> | 2016-07-27 11:17:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-27 11:17:18 -0700 |
commit | 7d10b9f6e61ce8cb5387291580c1c0645f72b167 (patch) | |
tree | 10cdd355da6ee075e5ec317c680879eb6177c07a /third_party/libpng | |
parent | ac0e00dceca10dc7ce30c5be66001bd6960ebf5c (diff) |
GN: fixes for Mac
- Make fiddle build on Mac (skipping GL).
- Now that we're building in SkCodec, we depend on libpng and libjpeg-turbo unconditionally, not just on Linux.
- Re-arrange third_party a bit so that our targets are Fuchsia/Chrome compatible.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2184133002
NOTREECHECKS=true
This doesn't affect Chrome/Blink, so landing through the closed tree.
Review-Url: https://codereview.chromium.org/2184133002
Diffstat (limited to 'third_party/libpng')
-rw-r--r-- | third_party/libpng/BUILD.gn | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/third_party/libpng/BUILD.gn b/third_party/libpng/BUILD.gn new file mode 100644 index 0000000000..fd80aad3b9 --- /dev/null +++ b/third_party/libpng/BUILD.gn @@ -0,0 +1,37 @@ +# Copyright 2016 Google Inc. +# +# 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("libpng_public") { + include_dirs = [ "." ] +} +third_party("libpng") { + public_configs = [ ":libpng_public" ] + + deps = [ + "//third_party/zlib", + ] + sources = [ + "png.c", + "pngerror.c", + "pngget.c", + "pngmem.c", + "pngpread.c", + "pngread.c", + "pngrio.c", + "pngrtran.c", + "pngrutil.c", + "pngset.c", + "pngtrans.c", + "pngwio.c", + "pngwrite.c", + "pngwtran.c", + "pngwutil.c", + ] +} |