2016-07-13 21:51:17 +00:00
|
|
|
# Copyright 2016 The Fuchsia Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
config("expat_config") {
|
|
|
|
include_dirs = [
|
|
|
|
"expat/lib",
|
|
|
|
"expat/vms",
|
|
|
|
]
|
|
|
|
defines = [ "HAVE_EXPAT_CONFIG_H" ]
|
2021-05-09 16:51:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
config("expat_warnings") {
|
|
|
|
cflags = [
|
|
|
|
"-Wno-conversion",
|
|
|
|
"-Wno-implicit-fallthrough",
|
2021-07-01 01:20:03 +00:00
|
|
|
"-Wno-unused-but-set-variable",
|
2021-05-09 16:51:01 +00:00
|
|
|
]
|
2016-07-13 21:51:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
source_set("expat") {
|
2021-05-09 16:51:01 +00:00
|
|
|
configs += [ ":expat_warnings" ]
|
2016-07-13 21:51:17 +00:00
|
|
|
public_configs = [ ":expat_config" ]
|
2020-09-10 22:14:45 +00:00
|
|
|
public = [ "expat/lib/expat.h" ]
|
2016-07-13 21:51:17 +00:00
|
|
|
sources = [
|
|
|
|
"expat/lib/amigaconfig.h",
|
|
|
|
"expat/lib/ascii.h",
|
|
|
|
"expat/lib/asciitab.h",
|
|
|
|
"expat/lib/expat_external.h",
|
|
|
|
"expat/lib/iasciitab.h",
|
|
|
|
"expat/lib/internal.h",
|
|
|
|
"expat/lib/latin1tab.h",
|
|
|
|
"expat/lib/macconfig.h",
|
|
|
|
"expat/lib/nametab.h",
|
|
|
|
"expat/lib/utf8tab.h",
|
|
|
|
"expat/lib/watcomconfig.h",
|
|
|
|
"expat/lib/winconfig.h",
|
|
|
|
"expat/lib/xmlparse.c",
|
|
|
|
"expat/lib/xmlrole.c",
|
|
|
|
"expat/lib/xmlrole.h",
|
|
|
|
"expat/lib/xmltok.c",
|
|
|
|
"expat/lib/xmltok.h",
|
|
|
|
"expat/lib/xmltok_impl.c",
|
|
|
|
"expat/lib/xmltok_impl.h",
|
|
|
|
"expat/lib/xmltok_ns.c",
|
|
|
|
]
|
|
|
|
}
|