Repository navigation
Replies: 2 comments 2 replies
|
Hey @robik, the targets you should use are |
|
@robik can you explain in more detail what the end goal is? Who would be consuming this? Hermes has never had an "install" process. The install targets in the original build were unmaintained and unused, so we deleted them in static_h, to make sure that people wouldn't assume they were supported. Seems like the plan worked 😅 We would be open to adding install targets (if you submit a PR), provided that the use case makes sense. As with anything else, once we say something is supported, we need to start testing it, maintain it, etc, so there are non-trivial associated costs. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey 👋
I'm trying to use Hermes in a CMake project as a dependency (static_hermes to be exact). At first I've looked at how some demos are build, but it requires user to prebuild the hermes manually, which is not ideal.
I'm using
vcpkgand trying to create a port that builds Static Hermes, but I've hit a wall. Looking at the Hermes CMake build files, thecmake --installonly exports tools binaries, and no library files.Looking at
masterbranch, it seems there was aninstalldirective forlibhermes, but it no longer is onstatic_hbranch.(I'm assuming
hermesapiis the target I am looking for here).I've worked around it (kind of) with this patch:
Then, it is expected that the library exports a CMake Package so that it can be used with
find_package, so I've tried with this:But it fails on dependencies of
hermesapithat are not exported. There's a lot of magic going on under the hood incmake/HermesModule.cmakewith some functions that are way beyond me right now:Adding missing targets to
install(EXPORT hermesapiTargetsopens a rabbit hole with further missing targets.Do you have any suggestions on how to move forward? :)
All reactions