bnoordhuis / v8-cmake

The V8 JavaScript engine, but built with CMake instead of GN - WIP
BSD 3-Clause "New" or "Revised" License
189 stars 54 forks source link

Support monolith build target #14

Open bnoordhuis opened 4 years ago

bnoordhuis commented 4 years ago

Port the v8_monolith build target to cmake. The monolith is a single static library that combines the separate libraries into a single "super" library.

https://github.com/bnoordhuis/v8-cmake/blob/6a73df805d0be2a194e157ce9665cf5ec3e3a888/v8/BUILD.gn#L3971-L3988

JerrySievert commented 1 year ago

given that I need this myself, do you have an example of a commit that would help to implement this? my cmake-foo is low, but I'm willing to try.

bnoordhuis commented 1 year ago

No commits I can point you to but you can glean the logic from BUILD.bazel or BUILD.gn. The main challenge is that you must first build a non-snapshot build to create the snapshot before you can create the monolith library.