2016-07-27 20:55:26 +00:00
|
|
|
# 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() {
|
2017-03-03 14:21:30 +00:00
|
|
|
skia_use_system_expat = is_official_build
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
import("../third_party.gni")
|
|
|
|
|
2016-11-01 15:46:10 +00:00
|
|
|
if (skia_use_system_expat) {
|
|
|
|
system("expat") {
|
|
|
|
libs = [ "expat" ]
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
third_party("expat") {
|
|
|
|
public_defines = [ "XML_STATIC" ]
|
2021-05-26 15:40:10 +00:00
|
|
|
|
|
|
|
public_include_dirs = [
|
|
|
|
"../externals/expat/expat/lib",
|
|
|
|
"include/expat_config",
|
|
|
|
]
|
2016-07-27 20:55:26 +00:00
|
|
|
|
2020-04-07 14:21:35 +00:00
|
|
|
defines = [
|
|
|
|
"HAVE_MEMMOVE",
|
|
|
|
"XML_DEV_URANDOM",
|
|
|
|
]
|
2016-07-27 20:55:26 +00:00
|
|
|
|
2016-11-01 15:46:10 +00:00
|
|
|
sources = [
|
2020-04-07 14:21:35 +00:00
|
|
|
"../externals/expat/expat/lib/expat.h",
|
|
|
|
"../externals/expat/expat/lib/xmlparse.c",
|
|
|
|
"../externals/expat/expat/lib/xmlrole.c",
|
|
|
|
"../externals/expat/expat/lib/xmltok.c",
|
2016-11-01 15:46:10 +00:00
|
|
|
]
|
|
|
|
}
|
2016-07-27 20:55:26 +00:00
|
|
|
}
|