SCsub 938 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env python
  2. from misc.utility.scons_hints import *
  3. Import("env")
  4. source_files = [
  5. "display_server_x11.cpp",
  6. "key_mapping_x11.cpp",
  7. ]
  8. if env["use_sowrap"]:
  9. source_files.append(
  10. [
  11. "dynwrappers/xlib-so_wrap.c",
  12. "dynwrappers/xcursor-so_wrap.c",
  13. "dynwrappers/xinerama-so_wrap.c",
  14. "dynwrappers/xinput2-so_wrap.c",
  15. "dynwrappers/xrandr-so_wrap.c",
  16. "dynwrappers/xrender-so_wrap.c",
  17. "dynwrappers/xext-so_wrap.c",
  18. ]
  19. )
  20. if env["vulkan"]:
  21. source_files.append("rendering_context_driver_vulkan_x11.cpp")
  22. if env["opengl3"]:
  23. env.Append(CPPDEFINES=["GLAD_GLX_NO_X11"])
  24. source_files.append(
  25. ["gl_manager_x11_egl.cpp", "gl_manager_x11.cpp", "detect_prime_x11.cpp", "#thirdparty/glad/glx.c"]
  26. )
  27. objects = []
  28. for source_file in source_files:
  29. objects.append(env.Object(source_file))
  30. Return("objects")