10d665d000
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 <mtklein@chromium.org> Reviewed-by: Hal Canary <halcanary@google.com>
30 lines
608 B
Plaintext
30 lines
608 B
Plaintext
# 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() {
|
|
skia_use_system_expat = false
|
|
}
|
|
|
|
import("../third_party.gni")
|
|
|
|
if (skia_use_system_expat) {
|
|
system("expat") {
|
|
libs = [ "expat" ]
|
|
}
|
|
} else {
|
|
third_party("expat") {
|
|
public_defines = [ "XML_STATIC" ]
|
|
public_include_dirs = [ "../externals/expat/lib" ]
|
|
|
|
defines = [ "HAVE_MEMMOVE" ]
|
|
|
|
sources = [
|
|
"../externals/expat/lib/xmlparse.c",
|
|
"../externals/expat/lib/xmlrole.c",
|
|
"../externals/expat/lib/xmltok.c",
|
|
]
|
|
}
|
|
}
|