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

Add SDL3 wrap. #1919

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add SDL3 wrap. #1919

wants to merge 1 commit into from

Conversation

jpakkane
Copy link
Member

Note that this is currently broken. It only does Linux. There is no configuration. It builds and links. It might work. I don't know as I did not test. Do not merge until it has at least Windows and macOS support.

@jpakkane jpakkane marked this pull request as draft February 11, 2025 21:16
@jpakkane jpakkane force-pushed the sdl3 branch 5 times, most recently from 86c6d90 to 00f2af8 Compare February 11, 2025 22:15
Comment on lines +198 to +207
foreach f : check_functions
if cc.has_function(f.get(1), prefix : f.get(2), dependencies: [sdl_deps])
cdata.set(f.get(0), 1)
endif
endforeach
Copy link
Member

@eli-schwartz eli-schwartz Feb 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Early Windows failure since dl can be a Windows emulated one which we happen to provide in the wrapdb -- and thus has_function fails as it's forbidden to try to check an un-built subproject.

I suppose that isn't a general problem outside of the wrapdb CI... if https://github.com/dlfcn-win32/dlfcn-win32 isn't useful for SDL3 we can just use allow_fallback: false for it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to work. I did not touch it at all, so 🤷 .

@jpakkane jpakkane force-pushed the sdl3 branch 5 times, most recently from fd6c62b to c4071a5 Compare February 27, 2025 17:08
@jpakkane jpakkane marked this pull request as ready for review February 27, 2025 17:37
@fr0zert
Copy link

fr0zert commented Mar 6, 2025

Can you also create wrap for SDL_image SDL_shadercross libs?

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.

3 participants