Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: add SDL3IMAGE_STRICT option to switch between required 3rd party libraries or optional ones #414

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

madebr
Copy link
Contributor

@madebr madebr commented Jan 22, 2024

A short summary is also printed at the end:

-- SDL3_image backends:
-- - enabled:  avif bmp gif jpg jxl lbm pcx png pnm qoi svg tga tif webp xcf xpm xv
-- - disabled: stb imageio wic

jpg means a jpeg backend is available: it can be libjpeg, stb, wic or imageio.

Fixes #413

To be sure no one creates SDL3_image-0.dll by accident
OFF means not having a 3rd party dependency installed, means no configure failure.
ON means a configure failure.
@madebr madebr merged commit 8fb71f5 into libsdl-org:main Jan 24, 2024
5 checks passed
@madebr madebr deleted the cmake-optional-depenencies branch January 24, 2024 15:44
@sezero
Copy link
Contributor

sezero commented Jan 29, 2024

With this patch in, I enabled webp and tif support in cmake file as of 0003e26

Also: Can we not do the same in SDL2_image and SDL2_mixer? It's annoying to have one option being disabled by default in cmake while it is enabled by default in autotools.

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.

[cmake] Allow configuring SDL_image with options whose 3rd party dependencies are not available
2 participants