2016-10-17 06:50:25 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2015-05-03 21:18:56 +00:00
|
|
|
Import('env')
|
|
|
|
|
2016-10-30 17:57:40 +00:00
|
|
|
env.drivers_sources = []
|
2016-05-21 23:07:32 +00:00
|
|
|
|
2017-09-25 04:22:58 +00:00
|
|
|
if 'builtin_zlib' in env and env['builtin_zlib']:
|
2016-10-31 23:24:30 +00:00
|
|
|
SConscript("zlib/SCsub")
|
2015-05-03 21:18:56 +00:00
|
|
|
|
2016-10-15 10:39:28 +00:00
|
|
|
# OS drivers
|
2016-10-31 23:24:30 +00:00
|
|
|
SConscript('unix/SCsub')
|
|
|
|
SConscript('windows/SCsub')
|
2016-10-15 10:39:28 +00:00
|
|
|
|
|
|
|
# Sounds drivers
|
2016-10-31 23:24:30 +00:00
|
|
|
SConscript('alsa/SCsub')
|
2017-09-29 18:22:42 +00:00
|
|
|
SConscript('coreaudio/SCsub')
|
2016-10-31 23:24:30 +00:00
|
|
|
SConscript('pulseaudio/SCsub')
|
2016-10-15 10:39:28 +00:00
|
|
|
if (env["platform"] == "windows"):
|
2016-10-31 23:24:30 +00:00
|
|
|
SConscript("rtaudio/SCsub")
|
2017-08-27 17:01:34 +00:00
|
|
|
SConscript("wasapi/SCsub")
|
2017-09-25 04:04:49 +00:00
|
|
|
if env['xaudio2']:
|
2016-10-31 23:24:30 +00:00
|
|
|
SConscript("xaudio2/SCsub")
|
2016-10-15 10:39:28 +00:00
|
|
|
|
|
|
|
# Graphics drivers
|
2017-01-02 20:38:20 +00:00
|
|
|
SConscript('gles3/SCsub')
|
2016-10-31 23:24:30 +00:00
|
|
|
SConscript('gl_context/SCsub')
|
2015-05-03 21:18:56 +00:00
|
|
|
|
2016-10-15 10:39:28 +00:00
|
|
|
# Core dependencies
|
2016-10-31 23:24:30 +00:00
|
|
|
SConscript("png/SCsub")
|
2016-10-15 10:39:28 +00:00
|
|
|
|
|
|
|
# Tools override
|
|
|
|
# FIXME: Should likely be integrated in the tools/ codebase
|
2017-09-25 04:04:49 +00:00
|
|
|
if env['tools']:
|
2016-10-31 23:24:30 +00:00
|
|
|
SConscript("convex_decomp/SCsub")
|
2015-05-03 21:18:56 +00:00
|
|
|
|
2017-09-25 04:04:49 +00:00
|
|
|
if env['vsproj']:
|
2016-10-30 17:44:57 +00:00
|
|
|
env.AddToVSProject(env.drivers_sources)
|
2015-05-03 21:18:56 +00:00
|
|
|
|
2016-10-30 16:04:07 +00:00
|
|
|
if env.split_drivers:
|
2016-10-30 17:44:57 +00:00
|
|
|
env.split_lib("drivers")
|
2015-12-11 12:01:03 +00:00
|
|
|
else:
|
2016-10-30 17:57:40 +00:00
|
|
|
env.add_source_files(env.drivers_sources, "*.cpp")
|
|
|
|
lib = env.Library("drivers", env.drivers_sources)
|
2016-10-30 17:44:57 +00:00
|
|
|
env.Prepend(LIBS=[lib])
|