From 10d665d000cfdce693b7ca088fb2c61ed54bcdfb Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Tue, 1 Nov 2016 11:46:10 -0400 Subject: Allow most third_party targets to use system libraries if asked. This extends the pattern in freetype2 to expat, icu, libjpeg-turbo, libpng, libwebp, and zlib, and gives all these an arg to control which to use. Homebrew doesn't have dng_sdk, piex, or sftnly, or I'd have done the same for them too. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4260 DOCS_PREVIEW= https://skia.org/?cl=4260 Change-Id: I82e780502bf2217336e791787f172a6fc8f55460 Reviewed-on: https://skia-review.googlesource.com/4260 Commit-Queue: Mike Klein Reviewed-by: Hal Canary --- third_party/third_party.gni | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'third_party/third_party.gni') diff --git a/third_party/third_party.gni b/third_party/third_party.gni index 5764c97108..7aaf63586f 100644 --- a/third_party/third_party.gni +++ b/third_party/third_party.gni @@ -26,3 +26,12 @@ template("third_party") { set_defaults("third_party") { configs = default_configs - [ "//gn:warnings" ] } + +template("system") { + config(target_name + "_public") { + forward_variables_from(invoker, "*", []) + } + group(target_name) { + public_configs = [ ":" + target_name + "_public" ] + } +} -- cgit v1.2.3