SCsub 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/env python
  2. Import("env")
  3. from platform_methods import run_in_subprocess
  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["speechd"]:
  17. common_linuxbsd.append("tts_linux.cpp")
  18. if env["use_sowrap"]:
  19. common_linuxbsd.append("speechd-so_wrap.c")
  20. if env["fontconfig"]:
  21. if env["use_sowrap"]:
  22. common_linuxbsd.append("fontconfig-so_wrap.c")
  23. if env["udev"]:
  24. if env["use_sowrap"]:
  25. common_linuxbsd.append("libudev-so_wrap.c")
  26. if env["dbus"]:
  27. if env["use_sowrap"]:
  28. common_linuxbsd.append("dbus-so_wrap.c")
  29. prog = env.add_program("#bin/godot", ["godot_linuxbsd.cpp"] + common_linuxbsd)
  30. if env["debug_symbols"] and env["separate_debug_symbols"]:
  31. env.AddPostAction(prog, run_in_subprocess(platform_linuxbsd_builders.make_debug_linuxbsd))