Skip to content

Commit

Permalink
adding option to split modules library
Browse files Browse the repository at this point in the history
  • Loading branch information
punto- committed Jan 19, 2018
1 parent 0359fed commit 9d98e6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 6 additions & 2 deletions modules/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -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])

0 comments on commit 9d98e6d

Please sign in to comment.