mesonbuild / mesonbuild/wrapdb
SDL3 wrap issues
- Dominant language
- Meson
- Stars
- 118
- Forks
- 298
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 24
Description
I tried to port a project using SDL2 to SDL3 using the SDL3 wrap, on macOS.
I found a few issues:
This list is missing Carbon and UniformTypeIdentifier frameworks
https://github.com/mesonbuild/wrapdb/blob/4cfd0de3d630f27ef68e21e987335d1d9d36e3f3/subprojects/packagefiles/sdl3/meson.build#L304
See the upstream CMakeLists.txt:
https://github.com/libsdl-org/SDL/blob/93ac1e6894fac101008643a6cf0cc13b4524d18e/CMakeLists.txt#L2415
I needed to add
cdata.set('SDL_VIDEO_OPENGL_CGL', 1)
cdata.set('SDL_VIDEO_OPENGL', 1)
https://github.com/mesonbuild/wrapdb/blob/4cfd0de3d630f27ef68e21e987335d1d9d36e3f3/subprojects/packagefiles/sdl3/meson.build#L301 to here, to enable OpenGL.
and had to add
cdata.set('SDL_VIDEO_DRIVER_COCOA', 1)
https://github.com/mesonbuild/wrapdb/blob/4cfd0de3d630f27ef68e21e987335d1d9d36e3f3/subprojects/packagefiles/sdl3/src/video/meson.build#L6 here to enable the Cocoa video driver.
I'm making an issue not a PR since I don't really have much knowledge about this.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with subprojects/packagefiles/sdl3/meson.build and src/video/meson.build at the linked lines, then compare the referenced upstream CMakeLists.txt. Check the SDL3 wrap's macOS framework and feature settings, and verify the result with a macOS SDL3 build using OpenGL and the Cocoa video driver enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, macos
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100