mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
19 lines
631 B
Plaintext
19 lines
631 B
Plaintext
ARG_ENABLE("uv", "for uv support", "no");
|
|
|
|
if (PHP_UV != "no") {
|
|
var libuv_target_dir = ".\\libuv\\Release";
|
|
if (PHP_DEBUG == "yes") {
|
|
libuv_target_dir = ".\\libuv\\Debug"
|
|
}
|
|
|
|
if (CHECK_HEADER_ADD_INCLUDE("uv.h", "CFLAGS_UV", ".\\libuv\\include") &&
|
|
CHECK_LIB("uv.lib", "uv", libuv_target_dir)
|
|
) {
|
|
EXTENSION('uv', 'php_uv.c uv.c');
|
|
} else {
|
|
WARNING("uv not enabled; libraries and/or headers not found. You have to execute vcbuild.bat first");
|
|
}
|
|
CHECK_LIB("Iphlpapi.lib","uv", PHP_UV);
|
|
CHECK_LIB("psapi.lib","uv", PHP_UV);
|
|
CHECK_LIB("Ws2_32.lib","uv", PHP_UV);
|
|
} |