News for hackers. Stuff that matters.
Re:Building Outer Wonders for Linux by wheybags on Saturday May 22, 2021 @08:42AM (#27245950)
We did this when I worked on factorio (on all three desktop platforms, not just linux), it works really well. Side bonus is you can make the inevitably required small tweaks inside the library easily because it's all integrated in the same build system as the rest of your game.
Re:Building Outer Wonders for Linux by MayeulC on Saturday May 22, 2021 @09:10AM (#27246164)
> you can make the inevitably required small tweaks inside the library

How do you handle Steam or the user updating SDL2 to a newer version, then (see the sibling comments about dynapi)? Does your game depend on those tricks to run?

Re:Building Outer Wonders for Linux by wheybags on Saturday May 22, 2021 @09:59AM (#27246595)
We statically linked it, and didn't use the system/steam provided version at all. I guess if a user tried to use SDL_DYNAMIC_API, it would break in strange and unexpected ways. TBH I didn't know that option existed until just now. We never had any problems with our approach, afaik.