forked from krakjoe/parallel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.w32
25 lines (22 loc) · 1.06 KB
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARG_WITH('parallel', 'parallel support', 'no');
if (PHP_PARALLEL != 'no') {
if (PHP_ZTS == "no") {
WARNING("Parallel extension requires ZTS build of PHP on windows");
} else if (PHP_VERSION < 8) {
WARNING("Parallel requires PHP8.0+");
} else {
AC_DEFINE('HAVE_PARALLEL', 1, 'parallel support enabled');
if(CHECK_HEADER_ADD_INCLUDE("pthread.h", "CFLAGS_PARALLEL", PHP_PARALLEL + ";" + configure_module_dirname) &&
CHECK_HEADER_ADD_INCLUDE("sched.h", "CFLAGS_PARALLEL", PHP_PARALLEL + ";" + configure_module_dirname) &&
CHECK_LIB("pthreadVC2.lib", "parallel", PHP_PARALLEL)) {
EXTENSION("parallel", "php_parallel.c", PHP_PARALLEL_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /I" + configure_module_dirname);
ADD_SOURCES(
configure_module_dirname + "/src",
"exceptions.c copy.c check.c dependencies.c cache.c monitor.c parallel.c runtime.c scheduler.c future.c channel.c link.c handlers.c events.c poll.c loop.c event.c input.c sync.c",
"parallel"
);
} else {
WARNING("parallel not enabled; pthread libraries and headers not found");
}
}
}