Skip to content

Commit 2371e35

Browse files
committed
Update windows build config
1 parent f8749f4 commit 2371e35

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

config.w32

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// vim:ft=javascript
2+
3+
ARG_WITH("geos", "geos support", "yes");
4+
5+
if (PHP_GEOS != "no") {
6+
if (CHECK_LIB("geos_c.lib", "geos", PHP_GEOS) &&
7+
CHECK_HEADER_ADD_INCLUDE("geos_c.h", "CFLAGS_GEOS", PHP_GEOS)) {
8+
9+
EXTENSION("geos", "geos.c", 1);
10+
geos_c = "geos_c.lib";
11+
12+
CHECK_LIB(geos_c, "initGEOS_r", PHP_GEOS) && !PHP_GEOS && WARNING("Unable to build the GEOS: a newer libgeos is required");
13+
14+
15+
} else {
16+
WARNING("geos support can't be enabled, libraries or headers are missing")
17+
PHP_GEOS = "no";
18+
}
19+
20+
}

0 commit comments

Comments
 (0)