SCsub 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/usr/bin/env python
  2. from misc.utility.scons_hints import *
  3. Import("env")
  4. import platform_linuxbsd_builders
  5. common_linuxbsd = [
  6. "crash_handler_linuxbsd.cpp",
  7. "os_linuxbsd.cpp",
  8. "joypad_linux.cpp",
  9. "freedesktop_portal_desktop.cpp",
  10. "freedesktop_screensaver.cpp",
  11. ]
  12. if env["use_sowrap"]:
  13. common_linuxbsd.append("xkbcommon-so_wrap.c")
  14. if env["x11"]:
  15. common_linuxbsd += SConscript("x11/SCsub")
  16. if env["wayland"]:
  17. common_linuxbsd += SConscript("wayland/SCsub")
  18. if env["speechd"]:
  19. common_linuxbsd.append("tts_linux.cpp")
  20. if env["use_sowrap"]:
  21. common_linuxbsd.append("speechd-so_wrap.c")
  22. if env["fontconfig"]:
  23. if env["use_sowrap"]:
  24. common_linuxbsd.append("fontconfig-so_wrap.c")
  25. if env["udev"]:
  26. if env["use_sowrap"]:
  27. common_linuxbsd.append("libudev-so_wrap.c")
  28. if env["dbus"]:
  29. if env["use_sowrap"]:
  30. common_linuxbsd.append("dbus-so_wrap.c")
  31. prog = env.add_program("#bin/godot", ["godot_linuxbsd.cpp"] + common_linuxbsd)
  32. if env["debug_symbols"] and env["separate_debug_symbols"]:
  33. env.AddPostAction(prog, env.Run(platform_linuxbsd_builders.make_debug_linuxbsd))