Not-Nik / raylib-zig

Manually tweaked, auto-generated raylib bindings for zig. https://github.com/raysan5/raylib
MIT License
691 stars 122 forks source link

Q: How can I link it as a shared library #154

Closed horenso closed 1 month ago

horenso commented 1 month ago

Hi, could you please explain how I can link raylib-zig as a shared library. I need this because I split my game into a shared library and an executable, and I want to use raylib-zig in both the executable and the shared library. Thank you very much for the awesome bindings!

Not-Nik commented 1 month ago

Pass shared as a build option to the rlz dependency:

.{
    .target = target,
    .optimize = optimize,
    .shared = true,
}