virtualx-engine/platform/linuxbsd/x11/SCsub
Riteo Siuga dc2919d57b Load GLX dynamically with GLAD
This is accomplished through the addition of a GLAD GLX loader in the
`thirdparty` directory.

This is another step towards a nice Wayland/X11 interoperation.
2022-11-15 13:55:30 +01:00

21 lines
412 B
Python

#!/usr/bin/env python
Import("env")
source_files = [
"display_server_x11.cpp",
"key_mapping_x11.cpp",
]
if env["vulkan"]:
source_files.append("vulkan_context_x11.cpp")
if env["opengl3"]:
source_files.append(["gl_manager_x11.cpp", "detect_prime_x11.cpp", "#thirdparty/glad/glx.c"])
objects = []
for source_file in source_files:
objects.append(env.Object(source_file))
Return("objects")