-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Descriptive Wiki entries for CMake options #11230
Comments
Feel free to contribute a PR! |
Going through the options, there is SDL_DUMMYAUDIO, enabled by default when the audio subsystem is requested. Lines 1178 to 1193 in 679dd4b
It is also forcefully enabled in case there is no audio implementation present Lines 2972 to 2975 in 679dd4b
The same goes for the camera and video subsystems with SDL_DUMMYCAMERA and SDL_DUMMYVIDEO respectively. Forcefully disabling the compilation of dummy files causes no issues and compiles normally regardless. So what exactly is the purpose of these subsystem dummies? |
They are dummy implementations that provide the API with no underlying hardware. They're useful for testing or for making sure the API is functional even if implementations are not available. |
Thanks for the explanation @slouken ! Combined with the fact that the SDL CMake chooses the options pretty well by default and the fact that a lot of the systems are closely intertwined, creating a wiki for them or especially separating subsystems went way above my head, so I simply dropped the issue. |
The CMake options are currently being described in the README-cmake.md, which seems to be missing some options that may be of interest to people who use CMake's FetchContent or would otherwise build SDL themselves in general.
Examples include stuff like SDL_VULKAN or SDL_OPENGL, support for which is automatically enabled under e.g. Windows. Disabling these manually should not be an issue if the application does not plan on using these graphics APIs (as far as I am aware) and would cut down on compilation time + file size.
Another example would be SDL_PRESEED, of which I'm curious about how it works exactly, as configuration time can be rather long.
It would also be nice if all the CMake configuration options could be put onto the SDL3/FrontPage Wiki, so that these are available at a glance. Currently there's just the SDL3/Installation section, but it focuses more on the different platforms, rather than CMake options themselves, so it might warrant an extra page such as SDL3/CMake.
The text was updated successfully, but these errors were encountered: