Disable etc2comp and tinyexr modules on non-tools build

They are not necessary in such configuration, and require C++11
and (on Android) the STL.

Fixes #9273.
This commit is contained in:
Rémi Verschelde 2017-06-30 18:14:59 +02:00
parent 198bd9db02
commit cb59236ce9
2 changed files with 10 additions and 2 deletions

View file

@ -4,4 +4,8 @@ def can_build(platform):
def configure(env):
pass
# Tools only, disabled for non-tools
# TODO: Find a cleaner way to achieve that
if (env["tools"] == "no"):
env["module_etc_enabled"] = "no"
env.disabled_modules.append("etc")

View file

@ -4,4 +4,8 @@ def can_build(platform):
def configure(env):
pass
# Tools only, disabled for non-tools
# TODO: Find a cleaner way to achieve that
if (env["tools"] == "no"):
env["module_tinyexr_enabled"] = "no"
env.disabled_modules.append("tinyexr")