xref: /PHP-8.0/ext/dom/config.w32 (revision 5acd86df)
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 \
11			domexception.c parentnode.c processinginstruction.c \
12			cdatasection.c documentfragment.c domimplementation.c element.c \
13			node.c characterdata.c documenttype.c \
14			entity.c nodelist.c text.c comment.c \
15			entityreference.c \
16			notation.c xpath.c dom_iterators.c \
17			namednodemap.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