WIN32: add option to use system SDL3 libraries#130
Conversation
|
hey @carlo-bramini, is SDL3 complete/ready now? the only reason this was done, was I ran into trouble with some of the SDL3 stuff not being fully available/complete at the time it was implemented, otherwise it would of been VCPKG... as the compiling is a big pain. im happy to completely switch it over to vcpkg if thats the case |
|
I usually build for MinGW, but I did a test and I successfully built openfodder also on MSVC.
As first step, I cloned the repositories:
Next, I installed vcpkg and needed packages. Finally, I created a working directory and I executed this command: It seems that I hope that you will find this report useful. |
At the time of writing, compiling openfodder for
WIN32needs to download and build SDL3 libraries from sources.However, it would be useful to add an option for selecting if system libraries could be used on Windows.
So, I added
OPENFODDER_USE_SYSTEM_SDLfor this task.By default, this option is
OFFto reproduce the same behaviour of current sources.If
OPENFODDER_USE_SYSTEM_SDLisON, then SDL3 libraries are used if they are found.This simplifies the build process a lot, if you are using MinGW or MSVC together with vcpkg, without trouble in my opinion.