-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade V8 to the 7.8 release branch
The build system of V8 has significantly changed. It now uses LLVM on all platforms and a dedicated Debian (sid) based sysroot on Linux. In order to simplify the extension build process, it is now part of the V8 build system and uses GN. It comes with several enhancements like being able to use C++14 in the extension. It also add support for Windows.
- Loading branch information
Showing
11 changed files
with
418 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
buildconfig = "//build/config/BUILDCONFIG.gn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import("//v8/gni/v8.gni") | ||
|
||
config("py_mini_racer_config") { | ||
include_dirs = [ "//v8" ] | ||
configs = [ "//v8:external_config" ] | ||
cflags = [] | ||
} | ||
|
||
v8_source_set("v8") { | ||
deps = [ | ||
"//v8:v8", | ||
"//v8:v8_libbase", | ||
"//v8:v8_libplatform", | ||
"//v8:v8_libsampler", | ||
] | ||
configs = [ ":py_mini_racer_config" ] | ||
} | ||
|
||
v8_source_set("py_mini_racer") { | ||
sources = [ | ||
"mini_racer_extension.cc", | ||
] | ||
deps = [ | ||
":v8", | ||
] | ||
configs = [ ":py_mini_racer_config" ] | ||
} | ||
|
||
v8_static_library("py_mini_racer_static_lib") { | ||
output_name = "mini_racer" | ||
deps = [ | ||
":py_mini_racer", | ||
"//build/config:shared_library_deps", | ||
] | ||
configs = [ ":py_mini_racer_config" ] | ||
} | ||
|
||
shared_library("py_mini_racer_shared_lib") { | ||
output_name = "mini_racer" | ||
deps = [ | ||
":py_mini_racer", | ||
"//build/config:shared_library_deps", | ||
] | ||
configs += [ ":py_mini_racer_config" ] | ||
} |
Oops, something went wrong.