godot-module-template/platform/linuxbsd/x11/SCsub
Thaddeus Crews 435e6c3830
CI: Enable Ruff preview options; bump version
• 1.14.7 → 1.15.0
2026-02-05 12:20:10 -06:00

36 lines
931 B
Python

#!/usr/bin/env python
from misc.utility.scons_hints import *
Import("env")
File = env.File
source_files = [
File("display_server_x11.cpp"),
File("key_mapping_x11.cpp"),
]
if env["use_sowrap"]:
source_files.append([
File("dynwrappers/xlib-so_wrap.c"),
File("dynwrappers/xcursor-so_wrap.c"),
File("dynwrappers/xinerama-so_wrap.c"),
File("dynwrappers/xinput2-so_wrap.c"),
File("dynwrappers/xrandr-so_wrap.c"),
File("dynwrappers/xrender-so_wrap.c"),
File("dynwrappers/xext-so_wrap.c"),
])
if env["vulkan"]:
source_files.append(File("rendering_context_driver_vulkan_x11.cpp"))
if env["opengl3"]:
env.Append(CPPDEFINES=["GLAD_GLX_NO_X11"])
source_files.append([
File("gl_manager_x11_egl.cpp"),
File("gl_manager_x11.cpp"),
File("detect_prime_x11.cpp"),
File("#thirdparty/glad/glx.c"),
])
Return("source_files")