From 9cf20f01ae3c84c29e26de8b65d0f8bd55125ac5 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 26 Sep 2013 17:23:04 +0200 Subject: [PATCH 2/4] removed weird chars in the file causing weird errors --- php_v8js_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_v8js_macros.h b/php_v8js_macros.h index a5ed06e..3a9af83 100644 --- a/php_v8js_macros.h +++ b/php_v8js_macros.h @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id$ */¬ +/* $Id$ */ #ifndef PHP_V8JS_MACROS_H #define PHP_V8JS_MACROS_H From 9dcb92cef4b236736022840d49113b3e07ac40c4 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 26 Sep 2013 17:23:32 +0200 Subject: [PATCH 3/4] added basic config.w32 --- config.w32 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 config.w32 diff --git a/config.w32 b/config.w32 new file mode 100644 index 0000000..0ca49aa --- /dev/null +++ b/config.w32 @@ -0,0 +1,15 @@ + +ARG_WITH("v8js", "for V8 Javascript Engine", "no"); + +if (PHP_V8JS != "no") { + if (CHECK_LIB("v8_base.lib", "v8js") && + CHECK_HEADER_ADD_INCLUDE("v8.h", "CFLAGS_V8JS")) { + + EXTENSION("v8js", "v8js.cc v8js_convert.cc v8js_methods.cc v8js_variables.cc", "yes"); + + } else { + WARNING("v8js not enabled, headers or libs not found"); + } + +} + From 1fb0a1e049b626cb63e8eefec635c64dc811d55a Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 28 Sep 2013 02:02:49 +0200 Subject: [PATCH 4/4] reworked config.w32 the latest v8 versions won't compile with this ext, so used 3.17.15 --- config.w32 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config.w32 b/config.w32 index 0ca49aa..bb134be 100644 --- a/config.w32 +++ b/config.w32 @@ -2,10 +2,14 @@ ARG_WITH("v8js", "for V8 Javascript Engine", "no"); if (PHP_V8JS != "no") { - if (CHECK_LIB("v8_base.lib", "v8js") && + if (CHECK_LIB("v8.lib", "v8js") && CHECK_HEADER_ADD_INCLUDE("v8.h", "CFLAGS_V8JS")) { - EXTENSION("v8js", "v8js.cc v8js_convert.cc v8js_methods.cc v8js_variables.cc", "yes"); + + AC_DEFINE("PHP_V8_API_VERSION", "3017015", "", false); + AC_DEFINE("PHP_V8_VERSION", "3.17.15", "", true); + + EXTENSION("v8js", "v8js.cc v8js_convert.cc v8js_methods.cc v8js_variables.cc", "yes"); } else { WARNING("v8js not enabled, headers or libs not found");