From 7d10b9f6e61ce8cb5387291580c1c0645f72b167 Mon Sep 17 00:00:00 2001 From: mtklein Date: Wed, 27 Jul 2016 11:17:18 -0700 Subject: 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 --- third_party/libpng/BUILD.gn | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 third_party/libpng/BUILD.gn (limited to 'third_party/libpng') 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", + ] +} -- cgit v1.2.3