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