summaryrefslogtreecommitdiff
path: root/platform/linuxbsd/x11/SCsub
blob: d869ce9ecc39d66fb4b4e2b824abbc18e81eaa73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python

Import("env")

source_files = [
    "display_server_x11.cpp",
    "key_mapping_x11.cpp",
    "dynwrappers/xlib-so_wrap.c",
    "dynwrappers/xcursor-so_wrap.c",
    "dynwrappers/xinerama-so_wrap.c",
    "dynwrappers/xinput2-so_wrap.c",
    "dynwrappers/xkbcommon-so_wrap.c",
    "dynwrappers/xrandr-so_wrap.c",
    "dynwrappers/xrender-so_wrap.c",
    "dynwrappers/xext-so_wrap.c",
]

if env["vulkan"]:
    source_files.append("vulkan_context_x11.cpp")

if env["opengl3"]:
    env.Append(CPPDEFINES=["GLAD_GLX_NO_X11"])
    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")