From 9d98e6d2e44cc07efbac703e6a4a276d45818408 Mon Sep 17 00:00:00 2001 From: Ariel Manzur Date: Thu, 18 Jan 2018 21:26:04 -0300 Subject: adding option to split modules library --- modules/SCsub | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/SCsub') diff --git a/modules/SCsub b/modules/SCsub index e3c535e981..75c5421b51 100644 --- a/modules/SCsub +++ b/modules/SCsub @@ -17,6 +17,10 @@ for x in env.module_list: env_modules.Append(CPPFLAGS=["-DMODULE_" + x.upper() + "_ENABLED"]) SConscript(x + "/SCsub") -lib = env_modules.add_library("modules", env.modules_sources) +if env.split_modules: + env.split_lib("modules") +else: -env.Prepend(LIBS=[lib]) + lib = env_modules.add_library("modules", env.modules_sources) + + env.Prepend(LIBS=[lib]) -- cgit v1.2.3