blender/intern/cycles/app/opengl
Jonas Holzman 57f767f109 Build: Cycles: Migrate Cycles Standalone from SDL2 to SDL3
Currently, Cycles Standalone links against a system SDL2 for creating
its window. This is due to our previous SDL2 pre-compiled dependency
not providing the video module required for windowing due to it only
being used for audio. With the recent SDL3 migration (!157521), the
video submodule was enabled, allowing it to now be also used for Cycles
Standalone windowing.

Changes:
- Remove SDL2 external library find_package from `external_libs.cmake`
- Link against Blender's own `bf::dependencies::optional::sdl` target
- Make the internal `WITH_SDL` uncached CMake variable depend on
  `WITH_CYCLES_STANDALONE_GUI`
- Migrate SDL2 code in `window.cpp` to SDL3, based off Campbell's
  original SDL3 patch[^1]

[^1]: 02ce2baf0e (diff-3e6be82789041df3098be544352007094f890b94)

Pull Request: https://projects.blender.org/blender/blender/pulls/158498
2026-05-13 14:42:42 +02:00
..
display_driver.cpp Build: Cycles: Migrate Cycles Standalone from SDL2 to SDL3 2026-05-13 14:42:42 +02:00
display_driver.h FIx: Cycles standalone GUI build failure 2026-02-07 16:00:58 +01:00
shader.cpp Fix: Cycles log levels conflict with macros on some platforms 2025-07-10 19:44:14 +02:00
shader.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
window.cpp Build: Cycles: Migrate Cycles Standalone from SDL2 to SDL3 2026-05-13 14:42:42 +02:00
window.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00