0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 19:51:51 +00:00

Merge pull request #273 from Jan-E/config-w32-for-v8-version-5

Config w32 for v8 version 5
This commit is contained in:
Stefan Siegl 2016-11-17 17:16:23 +01:00 committed by GitHub
commit bb83b14169

View File

@ -7,11 +7,7 @@ function v8js_zeroPad(num, places) {
}
if (PHP_V8JS != "no") {
if (CHECK_LIB("v8_libplatform.lib", "v8js") &&
CHECK_LIB("v8_libbase.lib", "v8js") &&
CHECK_LIB("winmm.lib", "v8js") &&
CHECK_LIB("v8.lib", "v8js") &&
if (CHECK_LIB("winmm.lib", "v8js") &&
CHECK_HEADER_ADD_INCLUDE("v8.h", "CFLAGS_V8JS")) {
ADD_FLAG("CFLAGS_V8JS", "/EHcs");
@ -46,6 +42,28 @@ if (PHP_V8JS != "no") {
var v8api = v8major + v8js_zeroPad(v8minor, 3) + v8js_zeroPad(v8build, 3);
var v8ver = v8major + "." + v8minor + "." + v8build + "." + v8patch;
if (v8api >= 5002000) {
CHECK_LIB("v8.dll.lib", "v8js");
// created by 'cd obj\v8_libplatform && lib /out:v8_libplatform.lib *.obj'
CHECK_LIB("v8_libplatform.lib", "v8js");
// created by 'cd obj\v8_libbase && lib /out:v8_libbase.lib *.obj'
CHECK_LIB("v8_libbase.lib", "v8js");
} else {
CHECK_LIB("v8.lib", "v8js");
CHECK_LIB("v8_libplatform.lib", "v8js");
CHECK_LIB("v8_libbase.lib", "v8js");
}
if (v8api >= 5003000) {
// For SymLoadModule64 e.a.
// #include <dbghelp.h> in src\base\win32-headers.h
// Adds dependency on dbghelp.dll
CHECK_LIB("dbghelp.lib", "v8js");
}
if (v8api >= 5004000) {
// For PathRemoveFileSpecW in v8_libbase.lib(stack_trace_win)
CHECK_LIB("Shlwapi.lib", "v8js");
}
AC_DEFINE("PHP_V8_API_VERSION", v8api, "", false);
AC_DEFINE("PHP_V8_VERSION", v8ver, "", true);