xref: /PHP-7.3/ext/dom/config.w32 (revision 8d3f8ca1)
1// vim:ft=javascript
2
3ARG_WITH("dom", "DOM support", "yes");
4
5if (PHP_DOM == "yes") {
6	if (PHP_LIBXML == "yes" &&
7		ADD_EXTENSION_DEP('dom', 'libxml') &&
8		CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_DOM", PHP_PHP_BUILD + "\\include\\libxml2")
9	) {
10		EXTENSION("dom", "php_dom.c attr.c document.c domerrorhandler.c \
11			domstringlist.c domexception.c namelist.c processinginstruction.c \
12			cdatasection.c documentfragment.c domimplementation.c element.c \
13			node.c string_extend.c characterdata.c documenttype.c \
14			domimplementationlist.c entity.c nodelist.c text.c comment.c \
15			domconfiguration.c domimplementationsource.c entityreference.c \
16			notation.c xpath.c dom_iterators.c typeinfo.c domerror.c \
17			domlocator.c namednodemap.c userdatahandler.c");
18
19		AC_DEFINE("HAVE_DOM", 1, "DOM support");
20
21		if (!PHP_DOM_SHARED) {
22			ADD_FLAG("CFLAGS_DOM", "/D LIBXML_STATIC ");
23		} else {
24			if (!CHECK_LIB("libxml2.lib", "dom")) {
25				WARNING("dom support can't be enabled, libxml is not found")
26			}
27		}
28		PHP_INSTALL_HEADERS("ext/dom", "xml_common.h");
29	} else {
30		WARNING("dom support can't be enabled, libxml is not enabled")
31		PHP_DOM = "no"
32	}
33}
34