SCsub 1011 B

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