xref: /php-uv/config.w32 (revision 9d25abb4)
1
2// vim:ft=javascript
3
4ARG_WITH("uv", "for uv support", "no");
5
6if (PHP_UV != "no") {
7	if (PHP_SOCKETS == "no") {
8		ERROR('uv depends on the sockets extension');
9	}
10
11	if (CHECK_HEADER_ADD_INCLUDE("uv.h", "CFLAGS_UV", PHP_UV + "\\include")
12		&& CHECK_LIB("libuv.lib", "uv", PHP_UV)) {
13		EXTENSION('uv', 'php_uv.c uv.c', PHP_UV_SHARED);
14	} else {
15		WARNING("uv not enabled; libraries and/or headers not found");
16	}
17
18	CHECK_LIB("Iphlpapi.lib","uv", PHP_UV);
19	CHECK_LIB("psapi.lib","uv", PHP_UV);
20	CHECK_LIB("userenv.lib","uv", PHP_UV);
21	CHECK_LIB("Ws2_32.lib","uv", PHP_UV);
22
23	ADD_EXTENSION_DEP('uv', 'sockets', false);
24}
25