SCsub 1.1 KB

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