2012-11-18 23:04:30 +01:00
|
|
|
|
|
|
|
// vim:ft=javascript
|
|
|
|
|
2016-10-26 15:00:02 +02:00
|
|
|
ARG_WITH("uv", "for uv support", "no");
|
2012-06-18 15:32:15 +02:00
|
|
|
|
|
|
|
if (PHP_UV != "no") {
|
2016-10-26 15:00:02 +02:00
|
|
|
if (PHP_SOCKETS == "no") {
|
|
|
|
ERROR('uv depends on the sockets extension');
|
|
|
|
}
|
2012-06-19 16:03:13 +02:00
|
|
|
|
2016-10-26 15:00:02 +02:00
|
|
|
if (CHECK_HEADER_ADD_INCLUDE("uv.h", "CFLAGS_UV", PHP_UV + "\\include")
|
|
|
|
&& CHECK_LIB("libuv.lib", "uv", PHP_UV)) {
|
|
|
|
EXTENSION('uv', 'php_uv.c uv.c', PHP_UV_SHARED);
|
|
|
|
} else {
|
|
|
|
WARNING("uv not enabled; libraries and/or headers not found");
|
|
|
|
}
|
2012-07-01 06:47:26 +02:00
|
|
|
|
2016-10-26 15:00:02 +02:00
|
|
|
CHECK_LIB("Iphlpapi.lib","uv", PHP_UV);
|
|
|
|
CHECK_LIB("psapi.lib","uv", PHP_UV);
|
2019-04-28 18:02:48 +02:00
|
|
|
CHECK_LIB("userenv.lib","uv", PHP_UV);
|
2016-10-26 15:00:02 +02:00
|
|
|
CHECK_LIB("Ws2_32.lib","uv", PHP_UV);
|
2012-11-18 21:56:26 +01:00
|
|
|
|
2016-10-26 15:00:02 +02:00
|
|
|
ADD_EXTENSION_DEP('uv', 'sockets', false);
|
2012-11-18 21:56:26 +01:00
|
|
|
}
|