Skip to content

[3.0] Update SDL and ClangSharp#2570

Open
Exanite wants to merge 44 commits intodevelop/3.0from
feature/update-sdl
Open

[3.0] Update SDL and ClangSharp#2570
Exanite wants to merge 44 commits intodevelop/3.0from
feature/update-sdl

Conversation

@Exanite
Copy link
Copy Markdown
Member

@Exanite Exanite commented Apr 17, 2026

Summary of the PR

This PR updates ClangSharp and SDL. This was originally part of #2567, but proved to be a more involved change than anticipated due to SDL build problems.

Related issues, Discord discussions, or proposals

This will fix #2402
This PR should also be closed since this PR effectively supersedes it: #2433

Further Comments

Tasks

Native builds

(Currently disabling this command by adding a space; the builds are already committed so there's no reason to run them again)
/ build-native SDL OpenAL-Soft

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 17, 2026

File Coverage
All files 16%

Minimum allowed coverage is 0%

Generated by 🐒 cobertura-action against ad14c0e

@Exanite Exanite mentioned this pull request Apr 17, 2026
7 tasks
Exanite added 6 commits April 17, 2026 23:45
(cherry picked from commit 7938a0c)
(cherry picked from commit b0db2ba)
(cherry picked from commit 156aa5c)
armv7s seems to be legacy.

(cherry picked from commit 25b0e27)
@Exanite Exanite force-pushed the feature/update-sdl branch from 8622118 to dc21675 Compare April 18, 2026 03:48
Exanite and others added 16 commits April 18, 2026 01:40
CMAKE_LIBRARY_ARCHITECTURE fixes the issue where system libraries weren't being found.
Eg: "SDL_X11                     (Wanted: ON): ON" was OFF without this setting.
Eg: "Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so " was a not found error without this setting.

I removed the pkg-config settings since they didn't seem to do anything and I couldn't figure out if they were correct in the first place.
I'm assuming CMake figures these out automatically (it should automatically find the host version of the pkg-config executable and I'm *assuming* (please verify) it uses the CMAKE_LIBRARY_ARCHITECTURE variable to figure out which set of .pc files to use).
x64/amd64 is handled the same way for consistency.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 19, 2026

All native library builds modified in this PR shall attempt to be built by CI.

@Exanite Exanite marked this pull request as ready for review April 19, 2026 07:02
@Exanite Exanite requested a review from a team as a code owner April 19, 2026 07:02
@Exanite Exanite marked this pull request as draft April 19, 2026 07:05
@Exanite Exanite marked this pull request as ready for review April 19, 2026 07:09
@Exanite Exanite changed the title [3.0] Update SDL [3.0] Update SDL and ClangSharp Apr 19, 2026
@Exanite Exanite marked this pull request as draft April 20, 2026 19:18
@github-actions
Copy link
Copy Markdown
Contributor

Some of the native library builds modified in this PR were not referenced in the PR description. Please ensure that the PR description contains /build-native OpenAL-Soft SDL. These libraries won't be rebuilt without this being specified. If you believe this is in error, then please write a comment explaining why and ignore this suggestion. This comment will be automatically updated if rectified.

Copy link
Copy Markdown
Member Author

@Exanite Exanite left a comment

Choose a reason for hiding this comment

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

Self code review completed for the new changes I added.
Should be ready for review and merging now.

Comment thread sources/OpenAL/Soft.Native/build-android-arm.sh
Comment thread sources/OpenAL/Soft.Native/build-linux-arm.sh
Comment thread sources/OpenAL/Soft.Native/build-linux-arm.sh
Comment thread sources/OpenAL/Soft.Native/build-linux-x64.sh
@Exanite Exanite marked this pull request as ready for review April 30, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants