for now, php-uv can build on windows box. but it requires some work.

* make libuv first.
* after configure, add Iphlpapi.lib and psapi.lib on your Makefile directly.
* don't mix debug / release build (LIBCMTD conflicts)
This commit is contained in:
Shuhei Tanuma 2012-06-19 02:44:03 +09:00
parent 39679dbdd4
commit e765597f65
2 changed files with 3 additions and 2 deletions

View File

@ -1,9 +1,11 @@
ARG_ENABLE("uv", "for uv support", "no");
if (PHP_UV != "no") {
if (CHECK_HEADER_ADD_INCLUDE("uv.h", "CFLAGS_UV", ".\\libuv\\include") && CHECK_LIB("uv.lib", "uv", PHP_UV, ".\\")) {
if (CHECK_HEADER_ADD_INCLUDE("uv.h", "CFLAGS_UV", ".\\libuv\\include") &&
CHECK_LIB("uv.lib", "uv", PHP_UV, ".\\")) {
EXTENSION('uv', 'php_uv.c uv.c');
} else {
WARNING("uv not enabled; libraries and/or headers not found");
}
CHECK_LIB("Iphlpapi.lib","iphlpapi",PHP_UV);
}

View File

@ -12,7 +12,6 @@
#include "php.h"
#include "uv.h"
#include "ext/spl/spl_exceptions.h"
#include "zend_interfaces.h"
/* Define the entry point symbol