alexxbb / hapi-rs

Idiomatic Rust bindings to Houdini Engine C API
MIT License
64 stars 7 forks source link

Linking at runtime/releasing app as OSS #20

Closed grilme99 closed 8 months ago

grilme99 commented 8 months ago

I'm investigating how to release and bundle an engine integration as a release on GitHub. I need clarification on how to link against HAPI statically in GitHub CI or dynamically at runtime. What would be the best/correct approach if I want users to be able to download an executable and immediately start using the integration?

alexxbb commented 8 months ago

For this, you need a Houdini install in GitHub CI (most likely in a docker), then you just export the HFS env variable and the crate should build fine. The users of your executable will then need to have a Houdini installed as well and set the environment with the Houdini libraries, i.e. roughly:

grilme99 commented 8 months ago

Thank you!