diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2016-10-30 17:04:07 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-10-30 17:04:07 +0100 |
commit | e34a5324c884960735b3f743956b3a052574d6ee (patch) | |
tree | c39a92133573e7140eb670b5da1630ce17344748 /drivers/SCsub | |
parent | 51ad1c16683589aa1ebc73e29416e1b0fc50d30d (diff) |
scons: Move lib splitting method to methods.py
Apparently it might still be necessary for some console ports.
Diffstat (limited to 'drivers/SCsub')
-rw-r--r-- | drivers/SCsub | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/SCsub b/drivers/SCsub index 9c561b5c13..e9a6e3b983 100644 --- a/drivers/SCsub +++ b/drivers/SCsub @@ -35,6 +35,9 @@ if (env["tools"]=="yes"): if env['vsproj']=="yes": env.AddToVSProject(env.drivers_sources) -env.add_source_files(env.drivers_sources,"*.cpp") -lib = env.Library("drivers",env.drivers_sources) -env.Prepend(LIBS=[lib]) +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]) |