Browse Source

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.
Rémi Verschelde 8 years ago
parent
commit
cb59236ce9
2 changed files with 10 additions and 2 deletions
  1. 5 1
      modules/etc/config.py
  2. 5 1
      modules/tinyexr/config.py

+ 5 - 1
modules/etc/config.py

@@ -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")

+ 5 - 1
modules/tinyexr/config.py

@@ -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")