ngot / libv8

Convert V8 project from GN build system to CMake build system and build for static lib.
13 stars 6 forks source link
cmake fibjs js static-library v8

libv8

Convert V8 project from GN build system to CMake build system and build for static lib.

usage

fetch V8

./tools/deps.sh

This will take a long time.Please be patient. After finished, the whole v8 project is located at v8-src folder.

Generate CMake project

We use gn-v8.js script to generate CMake project.

gn-v8.js is a fibjs script. Make sure you have installed it.

./tools/gn-v8.js

The CMake V8 project will be located at v8 folder.

Build

./build.sh [release|debug]

The V8 static lib file will be located at bin folder.