SCsub 846 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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["platform"] != "server":
  21. SConscript("gles3/SCsub")
  22. SConscript("gles2/SCsub")
  23. SConscript("gles_common/SCsub")
  24. SConscript("gl_context/SCsub")
  25. else:
  26. SConscript("dummy/SCsub")
  27. # Core dependencies
  28. SConscript("png/SCsub")
  29. env.add_source_files(env.drivers_sources, "*.cpp")
  30. lib = env.add_library("drivers", env.drivers_sources)
  31. env.Prepend(LIBS=[lib])