2016-10-17 08:50:25 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2015-05-03 23:18:56 +02:00
|
|
|
Import('env')
|
|
|
|
|
2016-05-22 01:07:32 +02:00
|
|
|
env.drivers_sources=[]
|
|
|
|
|
2016-10-15 12:39:28 +02:00
|
|
|
if ("builtin_zlib" in env and env["builtin_zlib"] == "yes"):
|
|
|
|
SConscript("zlib/SCsub");
|
2015-05-03 23:18:56 +02:00
|
|
|
|
2016-10-15 12:39:28 +02:00
|
|
|
# OS drivers
|
2015-05-03 23:18:56 +02:00
|
|
|
SConscript('unix/SCsub');
|
2016-10-15 12:39:28 +02:00
|
|
|
SConscript('windows/SCsub');
|
|
|
|
|
|
|
|
# Sounds drivers
|
2015-05-03 23:18:56 +02:00
|
|
|
SConscript('alsa/SCsub');
|
|
|
|
SConscript('pulseaudio/SCsub');
|
2016-10-15 12:39:28 +02:00
|
|
|
if (env["platform"] == "windows"):
|
|
|
|
SConscript("rtaudio/SCsub");
|
|
|
|
|
|
|
|
# Graphics drivers
|
2015-05-03 23:18:56 +02:00
|
|
|
SConscript('gles2/SCsub');
|
|
|
|
SConscript('gl_context/SCsub');
|
|
|
|
|
2016-10-15 12:39:28 +02:00
|
|
|
# Core dependencies
|
2016-10-09 23:36:17 +02:00
|
|
|
SConscript("png/SCsub");
|
2015-07-24 02:18:46 +02:00
|
|
|
SConscript("nrex/SCsub");
|
2016-10-15 12:39:28 +02:00
|
|
|
|
|
|
|
# Tools override
|
|
|
|
# FIXME: Should likely be integrated in the tools/ codebase
|
2015-05-03 23:18:56 +02:00
|
|
|
if (env["tools"]=="yes"):
|
|
|
|
SConscript("convex_decomp/SCsub");
|
|
|
|
|
|
|
|
if env['vsproj']=="yes":
|
2016-05-22 01:07:32 +02:00
|
|
|
env.AddToVSProject(env.drivers_sources)
|
2015-05-03 23:18:56 +02:00
|
|
|
|
2016-10-30 17:04:07 +01:00
|
|
|
if env.split_drivers:
|
|
|
|
env.split_lib("drivers")
|
|
|
|
else:
|
|
|
|
env.add_source_files(env.drivers_sources,"*.cpp")
|
|
|
|
lib = env.Library("drivers",env.drivers_sources)
|
|
|
|
env.Prepend(LIBS=[lib])
|