godot/platform/linuxbsd/x11/SCsub

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1,011 B
Text
Raw Normal View History

#!/usr/bin/env python
from misc.utility.scons_hints import *
Import("env")
2025-10-08 17:11:20 -05:00
File = env.File
source_files = [
2025-10-08 17:11:20 -05:00
File("display_server_x11.cpp"),
File("key_mapping_x11.cpp"),
]
if env["use_sowrap"]:
source_files.append(
[
2025-10-08 17:11:20 -05:00
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"]:
2025-10-08 17:11:20 -05:00
source_files.append(File("rendering_context_driver_vulkan_x11.cpp"))
if env["opengl3"]:
env.Append(CPPDEFINES=["GLAD_GLX_NO_X11"])
source_files.append(
2025-10-08 17:11:20 -05:00
[
File("gl_manager_x11_egl.cpp"),
File("gl_manager_x11.cpp"),
File("detect_prime_x11.cpp"),
File("#thirdparty/glad/glx.c"),
]
)
2025-10-08 17:11:20 -05:00
Return("source_files")