SCsub 914 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 not env.msvc:
  14. SConscript("backtrace/SCsub")
  15. if env["xaudio2"]:
  16. SConscript("xaudio2/SCsub")
  17. # Midi drivers
  18. SConscript("alsamidi/SCsub")
  19. SConscript("coremidi/SCsub")
  20. SConscript("winmidi/SCsub")
  21. # Graphics drivers
  22. if env["vulkan"]:
  23. SConscript("vulkan/SCsub")
  24. if env["d3d12"]:
  25. SConscript("d3d12/SCsub")
  26. if env["opengl3"]:
  27. SConscript("gl_context/SCsub")
  28. SConscript("gles3/SCsub")
  29. SConscript("egl/SCsub")
  30. # Core dependencies
  31. SConscript("png/SCsub")
  32. env.add_source_files(env.drivers_sources, "*.cpp")
  33. lib = env.add_library("drivers", env.drivers_sources)
  34. env.Prepend(LIBS=[lib])