diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2016-10-13 18:54:00 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-10-15 11:50:41 +0200 |
commit | da09c6131bcdace7e8e62c3dabc62890e9564c97 (patch) | |
tree | e279b0e14a93ff546ab5eb427eeb1c65c9befe6a /modules/gridmap/SCsub | |
parent | 422196759f93df249db38619f136cabd5dcf42cd (diff) |
modules: Clone env in each module
This allows to pass include paths and flags only to a given thirdparty
library, thus preventing conflicts between their files (e.g. between
opus and openssl which both provide modes.h.
This also has the nice effect of making the compilation command smaller
for each module as it no longer related to all other modules, only the
final linking brings them together.
This however requires adding manually the ogg include path in opus
and vorbis when building against the builtin ogg, since it is no longer
in the global env.
Also simplified template 'thirdparty_<module>_sources' to
'thirdparty_sources'.
"Core" modules like cscript, gdscript, gridmap, ik and virtual_script
still use the main env_modules, but it could be changed if need be.
Diffstat (limited to 'modules/gridmap/SCsub')
-rw-r--r-- | modules/gridmap/SCsub | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gridmap/SCsub b/modules/gridmap/SCsub index 211a043468..9ff13fc43f 100644 --- a/modules/gridmap/SCsub +++ b/modules/gridmap/SCsub @@ -1,3 +1,5 @@ Import('env') -env.add_source_files(env.modules_sources,"*.cpp") +env.add_source_files(env.modules_sources, "*.cpp") + +Export('env') |