Open bnoordhuis opened 4 years 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.
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.
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