Skip to content

hsiaosiyuan0/v8-cmake

 
 

Repository files navigation

A port of the V8 JavaScript engine to the CMake build system.

motivation

V8 natively uses GN to build itself, which is part of the Chromium ecosystem but pretty much not used outside of it.

CMake is a widely used build system for C and C++ projects. This port will hopefully make it easier to integrate V8 with third-party projects.

Caveat emptor: v8-cmake is very much a work in progress. Bug reports and pull requests welcome!

build

To build the library and the d8 shell:

$ mkdir build && cd build

$ cmake /path/to/v8-cmake

$ make -j8

If CMake complains about python being incompatible or too old:

$ cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 /path/to/v8-cmake

debug

About

The V8 JavaScript engine, but built with CMake instead of GN - WIP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 69.1%
  • JavaScript 29.0%
  • Python 1.3%
  • TypeScript 0.2%
  • HTML 0.2%
  • C 0.1%
  • Other 0.1%