SCsub 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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("gl_context/SCsub")
  24. else:
  25. SConscript("dummy/SCsub")
  26. # Core dependencies
  27. SConscript("png/SCsub")
  28. if env["vsproj"]:
  29. import os
  30. path = os.getcwd()
  31. # Change directory so the path resolves correctly in the function call.
  32. os.chdir("..")
  33. env.AddToVSProject(env.drivers_sources)
  34. os.chdir(path)
  35. env.add_source_files(env.drivers_sources, "*.cpp")
  36. lib = env.add_library("drivers", env.drivers_sources)
  37. env.Prepend(LIBS=[lib])