Debian Codegraph @

platform/linuxbsd/SCsub

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/usr/bin/env python
2 from misc.utility.scons_hints import *
3
4 Import("env")
5
6 import platform_linuxbsd_builders
7
8 common_linuxbsd = [
9 "crash_handler_linuxbsd.cpp",
10 "os_linuxbsd.cpp",
11 "freedesktop_portal_desktop.cpp",
12 "freedesktop_screensaver.cpp",
13 "freedesktop_at_spi_monitor.cpp",
14 ]
15
16 if env["library_type"] == "executable":
17 common_linuxbsd += ["godot_linuxbsd.cpp"]
18 else:
19 common_linuxbsd += ["libgodot_linuxbsd.cpp"]
20
21 if env["use_sowrap"]:
22 common_linuxbsd.append("xkbcommon-so_wrap.c")
23
24 if env["x11"]:
25 common_linuxbsd += SConscript("x11/SCsub")
26
27 if env["wayland"]:
28 common_linuxbsd += SConscript("wayland/SCsub")
29
30 if env["speechd"]:
31 common_linuxbsd.append("tts_linux.cpp")
32 if env["use_sowrap"]:
33 common_linuxbsd.append("speechd-so_wrap.c")
34
35 if env["fontconfig"]:
36 if env["use_sowrap"]:
37 common_linuxbsd.append("fontconfig-so_wrap.c")
38
39 if env["dbus"]:
40 if env["use_sowrap"]:
41 common_linuxbsd.append("dbus-so_wrap.c")
42
43 if env["library_type"] == "static_library":
44 prog = env.add_library("#bin/godot", common_linuxbsd)
45 elif env["library_type"] == "shared_library":
46 prog = env.add_shared_library("#bin/godot", common_linuxbsd)
47 else:
48 prog = env.add_program("#bin/godot", common_linuxbsd)
49
50 if env["debug_symbols"] and env["separate_debug_symbols"]:
51 env.AddPostAction(prog, env.Run(platform_linuxbsd_builders.make_debug_linuxbsd))