2016-10-17 08:50:25 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 08:28:32 +02:00
|
|
|
Import("env")
|
2015-05-03 23:18:56 +02:00
|
|
|
|
2016-10-30 18:57:40 +01:00
|
|
|
env.drivers_sources = []
|
2016-05-22 01:07:32 +02:00
|
|
|
|
2016-10-15 12:39:28 +02:00
|
|
|
# OS drivers
|
2020-03-30 08:28:32 +02:00
|
|
|
SConscript("unix/SCsub")
|
|
|
|
SConscript("windows/SCsub")
|
2016-10-15 12:39:28 +02:00
|
|
|
|
|
|
|
# Sounds drivers
|
2020-03-30 08:28:32 +02:00
|
|
|
SConscript("alsa/SCsub")
|
|
|
|
SConscript("coreaudio/SCsub")
|
|
|
|
SConscript("pulseaudio/SCsub")
|
|
|
|
if env["platform"] == "windows":
|
2017-08-27 19:01:34 +02:00
|
|
|
SConscript("wasapi/SCsub")
|
2020-03-30 08:28:32 +02:00
|
|
|
if env["xaudio2"]:
|
2016-11-01 00:24:30 +01:00
|
|
|
SConscript("xaudio2/SCsub")
|
2016-10-15 12:39:28 +02:00
|
|
|
|
2018-07-14 14:11:28 +02:00
|
|
|
# Midi drivers
|
2020-03-30 08:28:32 +02:00
|
|
|
SConscript("alsamidi/SCsub")
|
|
|
|
SConscript("coremidi/SCsub")
|
|
|
|
SConscript("winmidi/SCsub")
|
2018-07-14 14:11:28 +02:00
|
|
|
|
2016-10-15 12:39:28 +02:00
|
|
|
# Graphics drivers
|
2021-05-25 18:26:38 +02:00
|
|
|
if env["vulkan"]:
|
2020-03-30 08:28:32 +02:00
|
|
|
SConscript("vulkan/SCsub")
|
2021-10-26 17:18:39 +02:00
|
|
|
SConscript("gles3/SCsub")
|
2020-11-18 19:11:30 +01:00
|
|
|
SConscript("gl_context/SCsub")
|
|
|
|
else:
|
|
|
|
SConscript("dummy/SCsub")
|
2015-05-03 23:18:56 +02:00
|
|
|
|
2016-10-15 12:39:28 +02:00
|
|
|
# Core dependencies
|
2016-11-01 00:24:30 +01:00
|
|
|
SConscript("png/SCsub")
|
2019-07-28 18:42:15 +02:00
|
|
|
SConscript("spirv-reflect/SCsub")
|
2016-10-15 12:39:28 +02:00
|
|
|
|
2019-12-09 19:22:08 +01:00
|
|
|
env.add_source_files(env.drivers_sources, "*.cpp")
|
|
|
|
|
|
|
|
lib = env.add_library("drivers", env.drivers_sources)
|
|
|
|
env.Prepend(LIBS=[lib])
|