SCsub 808 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/env python
  2. Import("env")
  3. env.drivers_sources = []
  4. # OS drivers
  5. SConscript("unix/SCsub")
  6. SConscript("windows/SCsub")
  7. # Sounds drivers
  8. SConscript("alsa/SCsub")
  9. SConscript("coreaudio/SCsub")
  10. SConscript("pulseaudio/SCsub")
  11. if env["platform"] == "windows":
  12. SConscript("wasapi/SCsub")
  13. if env["xaudio2"]:
  14. SConscript("xaudio2/SCsub")
  15. # Midi drivers
  16. SConscript("alsamidi/SCsub")
  17. SConscript("coremidi/SCsub")
  18. SConscript("winmidi/SCsub")
  19. # Graphics drivers
  20. if env["vulkan"]:
  21. SConscript("vulkan/SCsub")
  22. if env["opengl3"]:
  23. SConscript("gl_context/SCsub")
  24. SConscript("gles3/SCsub")
  25. SConscript("egl/SCsub")
  26. # Core dependencies
  27. SConscript("png/SCsub")
  28. env.add_source_files(env.drivers_sources, "*.cpp")
  29. lib = env.add_library("drivers", env.drivers_sources)
  30. env.Prepend(LIBS=[lib])