SCsub 976 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. Import('env')
  3. env.drivers_sources = []
  4. if 'builtin_zlib' in env and env['builtin_zlib']:
  5. SConscript("zlib/SCsub")
  6. # OS drivers
  7. SConscript('unix/SCsub')
  8. SConscript('windows/SCsub')
  9. # Sounds drivers
  10. SConscript('alsa/SCsub')
  11. SConscript('coreaudio/SCsub')
  12. SConscript('pulseaudio/SCsub')
  13. if (env["platform"] == "windows"):
  14. SConscript("rtaudio/SCsub")
  15. SConscript("wasapi/SCsub")
  16. if env['xaudio2']:
  17. SConscript("xaudio2/SCsub")
  18. # Graphics drivers
  19. SConscript('gles3/SCsub')
  20. SConscript('gl_context/SCsub')
  21. # Core dependencies
  22. SConscript("png/SCsub")
  23. # Tools override
  24. # FIXME: Should likely be integrated in the tools/ codebase
  25. if env['tools']:
  26. SConscript("convex_decomp/SCsub")
  27. if env['vsproj']:
  28. env.AddToVSProject(env.drivers_sources)
  29. if env.split_drivers:
  30. env.split_lib("drivers")
  31. else:
  32. env.add_source_files(env.drivers_sources, "*.cpp")
  33. lib = env.Library("drivers", env.drivers_sources)
  34. env.Prepend(LIBS=[lib])