From b1e8889d969f5f88539c47c2afac6c9ea2a2dc11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 11 Oct 2016 20:44:26 +0200 Subject: dds/etc1/pbm/pvr: Make those modules and split thirdparty files They are not particularly packaged in Linux distros so we do not facilitate unbundling via SCons. There could be done if/when there is interest. Also s/pnm/pbm/, long-lived typo :) --- modules/dds/SCsub | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 modules/dds/SCsub (limited to 'modules/dds/SCsub') diff --git a/modules/dds/SCsub b/modules/dds/SCsub new file mode 100644 index 0000000000..bcea3a84c0 --- /dev/null +++ b/modules/dds/SCsub @@ -0,0 +1,7 @@ +Import('env') +Import('env_modules') + +env_modules.add_source_files(env.modules_sources, "*.cpp") + +Export('env_modules') +Export('env') -- cgit v1.2.3 From da09c6131bcdace7e8e62c3dabc62890e9564c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 13 Oct 2016 18:54:00 +0200 Subject: 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__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. --- modules/dds/SCsub | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/dds/SCsub') diff --git a/modules/dds/SCsub b/modules/dds/SCsub index bcea3a84c0..c54a58e079 100644 --- a/modules/dds/SCsub +++ b/modules/dds/SCsub @@ -1,7 +1,6 @@ Import('env') Import('env_modules') -env_modules.add_source_files(env.modules_sources, "*.cpp") +env_dds = env_modules.Clone() -Export('env_modules') -Export('env') +env_dds.add_source_files(env.modules_sources, "*.cpp") -- cgit v1.2.3