schveiguy / raylib-d

Resurrected copy of onroundit's raylib-d
zlib License
55 stars 14 forks source link

Static bindings version #35

Closed al1-ce closed 1 year ago

al1-ce commented 1 year ago

Is it possible to have static bindings version to be able to not include dll/so with executable?

jordan4ibanez commented 1 year ago

I think this would be a nice addition, could stop people from accidentally destroying a game engine with a ton of mods when all they know how to do is run your game.

schveiguy commented 1 year ago

Yes, it is very possible to use static bindings. It's just not something that's as easy to do, so I don't recommend it (especially on Windows). I'm happy to include instructions if you come up with them.

Note that the bindings have nothing to do with static/shared, it's just the library you link against (and all the library dependencies). It's pretty bad on Windows, because I found you needed to build the raylib C library yourself to match the MSVC version.