SCsub 697 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. Import("env")
  3. from platform_methods import run_in_subprocess
  4. import platform_x11_builders
  5. common_x11 = [
  6. "context_gl_x11.cpp",
  7. "crash_handler_x11.cpp",
  8. "os_x11.cpp",
  9. "key_mapping_x11.cpp",
  10. "joypad_linux.cpp",
  11. "power_x11.cpp",
  12. "detect_prime.cpp",
  13. ]
  14. if "udev" in env and env["udev"]:
  15. common_x11.append("libudev-so_wrap.c")
  16. if "speechd" in env and env["speechd"]:
  17. common_x11.append(["speechd-so_wrap.c", "tts_linux.cpp"])
  18. prog = env.add_program("#bin/godot", ["godot_x11.cpp"] + common_x11)
  19. if env["debug_symbols"] and env["separate_debug_symbols"]:
  20. env.AddPostAction(prog, run_in_subprocess(platform_x11_builders.make_debug_x11))