f81ac4270c
https: //chromium.googlesource.com/external/github.com/libexpat/libexpat.git/+log/e976867fb57a0cd87e3b..a28238bdeebc087 Change-Id: I973d2e342046079e7219110f103021fd06142c2c Due to "Resolve macro HAVE_EXPAT_CONFIG_H" 8d1bd6ff2c09 it is now required to provide an expat_config.h. A minimal and maximally portable one is added. Change-Id: I973d2e342046079e7219110f103021fd06142c2c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/412776 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Florin Malita <fmalita@google.com>
38 lines
768 B
Plaintext
38 lines
768 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",
|
|
"include/expat_config",
|
|
]
|
|
|
|
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",
|
|
]
|
|
}
|
|
}
|