skia2/third_party/expat/BUILD.gn
Ben Wagner b1acff60fb Roll testing expat to tip of tree.
We currently mirror Android's mirror, which is out of date and only
rolled to tagged revisions. Roll to Chromium's mirror which is actually
up to date.

Change-Id: I754dc58149526e0c820bd7bcff1693d2d851a084
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/282039
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2020-04-20 16:14:11 +00:00

34 lines
726 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 = is_official_build
}
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/expat/lib" ]
defines = [
"HAVE_MEMMOVE",
"XML_DEV_URANDOM",
]
sources = [
"../externals/expat/expat/lib/expat.h",
"../externals/expat/expat/lib/xmlparse.c",
"../externals/expat/expat/lib/xmlrole.c",
"../externals/expat/expat/lib/xmltok.c",
]
}
}