1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix SDL threading on macOS/Linux.

And fixup pkg-config check for SDL on Linux.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
Pāvels Nadtočajevs
2025-06-25 06:39:23 +03:00
committed by Rémi Verschelde
parent 05640191e7
commit 71dd7b5712
4 changed files with 9 additions and 63 deletions

View File

@@ -397,7 +397,7 @@ def configure(env: "SConsEnvironment"):
if env["sdl"]:
if env["builtin_sdl"]:
env.Append(CPPDEFINES=["SDL_ENABLED"])
elif os.system("pkg-config --exists fontconfig") == 0: # 0 means found
elif os.system("pkg-config --exists sdl3") == 0: # 0 means found
env.ParseConfig("pkg-config sdl3 --cflags --libs")
env.Append(CPPDEFINES=["SDL_ENABLED"])
else: