Skip to content

WIN32: add option to use system SDL3 libraries#130

Open
carlo-bramini wants to merge 1 commit into
OpenFodder:masterfrom
carlo-bramini:fix-mingw-build-3
Open

WIN32: add option to use system SDL3 libraries#130
carlo-bramini wants to merge 1 commit into
OpenFodder:masterfrom
carlo-bramini:fix-mingw-build-3

Conversation

@carlo-bramini

Copy link
Copy Markdown
Contributor

At the time of writing, compiling openfodder for WIN32 needs 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_SDL for this task.
By default, this option is OFF to reproduce the same behaviour of current sources.
If OPENFODDER_USE_SYSTEM_SDL is ON, 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.

@segrax

segrax commented Jun 26, 2026

Copy link
Copy Markdown
Member

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.
cant remember the specifics but it was either only an older version available, or the mixer possibly?

im happy to completely switch it over to vcpkg if thats the case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants