summaryrefslogtreecommitdiff
path: root/modules/SCsub
diff options
context:
space:
mode:
authorAriel Manzur <ariel@godotengine.org>2018-01-18 21:26:04 -0300
committerAriel Manzur <ariel@godotengine.org>2018-01-18 21:27:57 -0300
commit9d98e6d2e44cc07efbac703e6a4a276d45818408 (patch)
tree3e6ed6956a925577672fcc50f7fb4e24d0cb9866 /modules/SCsub
parent0359fed313f55dfa9976e8e9606866c2ee53d077 (diff)
adding option to split modules library
Diffstat (limited to 'modules/SCsub')
-rw-r--r--modules/SCsub8
1 files changed, 6 insertions, 2 deletions
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])