pmed / v8pp

Bind C++ functions and classes into V8 JavaScript engine
http://pmed.github.io/v8pp/
Other
901 stars 121 forks source link

Build v8pp on Linux #154

Closed gocpplua closed 3 years ago

gocpplua commented 3 years ago

Building

For example build v8pp on Linux.

Linux(use ninja):

  1. First compile V8 and generate libv8.a
  2. Modify build.ninja:
    • 2.1 cxxflags:add v8 Header, and add -DV8_COMPRESS_POINTERS if you build v8 with it.
    • 2.2 ldflags:add/modify/delete static library
  3. Build:use ninja to build v8pp
    > ninja
pmed commented 3 years ago

Hi,

thanks for the contribution!

Despite v8pp project was created as a header-only library, one may want to build and run a test suite for it. That is a reason, why the project has build file like Visual Studio solution, Makefile, or build.ninja.

I'm afraid the proposed Building section seems to be incomplete, e.g. for make, or Windows/macos platforms. I also think V8 building is out scope of this project.

Anyways, there is a CMake support work in progress, that I hope to publish soon. Having the Building section after that would be great, however it may require some updates.

gocpplua commented 3 years ago

Hi,

thanks for the contribution!

Despite v8pp project was created as a header-only library, one may want to build and run a test suite for it. That is a reason, why the project has build file like Visual Studio solution, Makefile, or build.ninja.

I'm afraid the proposed Building section seems to be incomplete, e.g. for make, or Windows/macos platforms. I also think V8 building is out scope of this project.

Anyways, there is a CMake support work in progress, that I hope to publish soon. Having the Building section after that would be great, however it may require some updates.

Thank you for your reply, I agree with you