2013-09-26 15:23:32 +00:00
|
|
|
|
|
|
|
ARG_WITH("v8js", "for V8 Javascript Engine", "no");
|
|
|
|
|
|
|
|
if (PHP_V8JS != "no") {
|
2016-01-06 11:58:40 +00:00
|
|
|
if (CHECK_LIB("v8_libplatform.lib", "v8js") &&
|
|
|
|
CHECK_LIB("v8_libbase.lib", "v8js") &&
|
|
|
|
CHECK_LIB("winmm.lib", "v8js") &&
|
|
|
|
|
|
|
|
CHECK_LIB("v8.lib", "v8js") &&
|
2013-09-26 15:23:32 +00:00
|
|
|
CHECK_HEADER_ADD_INCLUDE("v8.h", "CFLAGS_V8JS")) {
|
|
|
|
|
2013-09-28 19:42:03 +00:00
|
|
|
ADD_FLAG("CFLAGS_V8JS", "/EHcs");
|
|
|
|
ADD_FLAG("CFLAGS_V8JS", "/D _ALLOW_KEYWORD_MACROS");
|
2014-11-12 23:24:39 +00:00
|
|
|
ADD_FLAG("CFLAGS_V8JS", "/D ZEND_WIN32_FORCE_INLINE");
|
|
|
|
ADD_FLAG("CFLAGS_V8JS", "/D __STDC_LIMIT_MACROS");
|
2013-09-28 00:02:49 +00:00
|
|
|
|
2016-01-06 11:58:40 +00:00
|
|
|
AC_DEFINE("PHP_V8_API_VERSION", "4007075", "", false);
|
|
|
|
AC_DEFINE("PHP_V8_VERSION", "4.7.75", "", true);
|
2013-09-28 00:02:49 +00:00
|
|
|
|
2015-10-11 17:47:22 +00:00
|
|
|
EXTENSION("v8js", "v8js_array_access.cc v8js.cc v8js_class.cc v8js_commonjs.cc v8js_convert.cc v8js_exceptions.cc v8js_methods.cc v8js_object_export.cc v8js_timer.cc v8js_v8.cc v8js_v8object_class.cc v8js_variables.cc", "yes");
|
2013-09-26 15:23:32 +00:00
|
|
|
|
|
|
|
} else {
|
|
|
|
WARNING("v8js not enabled, headers or libs not found");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|