mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Wayland: Fix build config with so_wrap
disabled
We should only include the vendored headers for Wayland and libdecor-0 when we use `so_wrap`, i.e. when we *don't* build against system libraries. The libdecor-0 pkg-config file includes the `libdecor-0/` prefix already, so its header should be included without it, and likewise in our so wrappers. Fixes #102671.
This commit is contained in:
parent
296de7da83
commit
19a30bb723
4 changed files with 9 additions and 6 deletions
|
@ -455,11 +455,14 @@ def configure(env: "SConsEnvironment"):
|
|||
print_error("Wayland EGL library not found. Aborting.")
|
||||
sys.exit(255)
|
||||
env.ParseConfig("pkg-config wayland-egl --cflags --libs")
|
||||
else:
|
||||
env.Prepend(CPPPATH=["#thirdparty/linuxbsd_headers/wayland/"])
|
||||
if env["libdecor"]:
|
||||
env.Prepend(CPPPATH=["#thirdparty/linuxbsd_headers/libdecor-0/"])
|
||||
|
||||
if env["libdecor"]:
|
||||
env.Append(CPPDEFINES=["LIBDECOR_ENABLED"])
|
||||
|
||||
env.Prepend(CPPPATH=["#platform/linuxbsd", "#thirdparty/linuxbsd_headers/wayland/"])
|
||||
env.Append(CPPDEFINES=["WAYLAND_ENABLED"])
|
||||
env.Append(LIBS=["rt"]) # Needed by glibc, used by _allocate_shm_file
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue