mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-08 15:48:40 +00:00
5ea36016fe
Splits longish v8js.cc file into pieces. It used to contain the definitions of all V8Js exception classes, the V8Js class itself as well as the V8Object/V8Function classes... besides the module setup code itself. This change factors out all exception class definitions into a seperate pair of files (v8js_exceptions.*). The V8Js class definition itself is moved to v8js_class.* pair, with the v8 init & call code moved to v8js_v8.* pair and the watchdog timer to v8js_timer.* pair. The V8Object/V8Function code was moved to v8js_v8object_class.* pair, not differentiating between the two like before.
24 lines
810 B
Plaintext
24 lines
810 B
Plaintext
|
|
ARG_WITH("v8js", "for V8 Javascript Engine", "no");
|
|
|
|
if (PHP_V8JS != "no") {
|
|
if (CHECK_LIB("v8.lib", "v8js") &&
|
|
CHECK_HEADER_ADD_INCLUDE("v8.h", "CFLAGS_V8JS")) {
|
|
|
|
ADD_FLAG("CFLAGS_V8JS", "/EHcs");
|
|
ADD_FLAG("CFLAGS_V8JS", "/D _ALLOW_KEYWORD_MACROS");
|
|
ADD_FLAG("CFLAGS_V8JS", "/D ZEND_WIN32_FORCE_INLINE");
|
|
ADD_FLAG("CFLAGS_V8JS", "/D __STDC_LIMIT_MACROS");
|
|
|
|
AC_DEFINE("PHP_V8_API_VERSION", "3017015", "", false);
|
|
AC_DEFINE("PHP_V8_VERSION", "3.17.15", "", true);
|
|
|
|
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");
|
|
|
|
} else {
|
|
WARNING("v8js not enabled, headers or libs not found");
|
|
}
|
|
|
|
}
|
|
|