Skip to content

Commit 78d185b

Browse files
committed
Trying to fix Windows builds
1 parent 4d88b3f commit 78d185b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

ext/dom/config.w32

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ ARG_WITH("dom", "DOM support", "yes");
55
if (PHP_DOM == "yes") {
66
if (PHP_LIBXML == "yes" &&
77
ADD_EXTENSION_DEP('dom', 'libxml') &&
8-
ADD_EXTENSION_DEP('dom', 'lexbor') &&
98
CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_DOM", PHP_PHP_BUILD + "\\include\\libxml2")
109
) {
1110
EXTENSION("dom", "php_dom.c attr.c document.c infra.c \
@@ -17,7 +16,9 @@ if (PHP_DOM == "yes") {
1716
entityreference.c \
1817
token_list.c \
1918
notation.c xpath.c dom_iterators.c \
20-
namednodemap.c xpath_callbacks.c", null, "");
19+
namednodemap.c xpath_callbacks.c", null, "/I ext/lexbor");
20+
21+
ADD_EXTENSION_DEP('dom', 'lexbor');
2122

2223
ADD_SOURCES("ext/dom/parentnode", "tree.c css_selectors.c", "dom");
2324
ADD_SOURCES("ext/dom/lexbor/selectors-adapted", "selectors.c", "dom");
@@ -35,7 +36,8 @@ if (PHP_DOM == "yes") {
3536
"dom_ce.h " +
3637
"namespace_compat.h " +
3738
"xml_common.h " +
38-
"xpath_callbacks.h "
39+
"xpath_callbacks.h " +
40+
"lexbor/selectors-adapted/selectors.h "
3941
);
4042
} else {
4143
WARNING("dom support can't be enabled, libxml is not enabled")

ext/lexbor/config.w32

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ARG_ENABLE("lexbor", "Lexbor support", "yes");
44

55
if (PHP_LEXBOR == "yes") {
6-
EXTENSION("lexbor", "php_lexbor.c", null, "-Iext/lexbor /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
6+
EXTENSION("lexbor", "php_lexbor.c", null, "/I " + configure_module_dirname + " /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
77

88
ADD_SOURCES("ext/lexbor", "php_lexbor.c", "lexbor");
99
ADD_SOURCES("ext/lexbor/lexbor/ports/windows_nt/lexbor/core", "memory.c", "lexbor");
@@ -26,5 +26,5 @@ if (PHP_LEXBOR == "yes") {
2626

2727
AC_DEFINE("HAVE_LEXBOR", 1, "Define to 1 if the PHP extension 'lexbor' is available.");
2828

29-
PHP_INSTALL_HEADERS("ext/lexbor", "php_lexbor.h");
29+
PHP_INSTALL_HEADERS("ext/lexbor", "php_lexbor.h lexbor/");
3030
}

0 commit comments

Comments
 (0)