Skip to content

Commit c938572

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

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ext/dom/config.w32

+3-2
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");

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)