SCsub 955 B

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