diff options
-rw-r--r-- | SConstruct | 1 | ||||
-rw-r--r-- | modules/SCsub | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index dcf8134c93..987fd561b3 100644 --- a/SConstruct +++ b/SConstruct @@ -90,6 +90,7 @@ env_base.android_appattributes_chunk = "" env_base.disabled_modules = [] env_base.use_ptrcall = False env_base.split_drivers = False +env_base.split_modules = False env_base.module_version_string = "" # To decide whether to rebuild a file, use the MD5 sum only if the timestamp has changed. 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]) |