summaryrefslogtreecommitdiff
path: root/modules/thekla_unwrap/config.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-05-30 22:07:58 +0200
committerGitHub <noreply@github.com>2018-05-30 22:07:58 +0200
commit33cb5f4492350802a0d081214e5059800b1842ef (patch)
tree43604e5f97bc11a9ba2c2e8720a49c0a1d6d0c5b /modules/thekla_unwrap/config.py
parent28fa82c2defacca8ccad5c26022d2eeaee925f4f (diff)
parent3334209a732737274a8598191267573fcb989a99 (diff)
Merge pull request #19275 from akien-mga/modules-can_build
SCons: Pass env to modules can_build method
Diffstat (limited to 'modules/thekla_unwrap/config.py')
-rw-r--r--modules/thekla_unwrap/config.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/thekla_unwrap/config.py b/modules/thekla_unwrap/config.py
index b1ce7d4b91..bd092bdc16 100644
--- a/modules/thekla_unwrap/config.py
+++ b/modules/thekla_unwrap/config.py
@@ -1,7 +1,5 @@
-def can_build(platform):
- return platform != "android" and platform != "ios"
+def can_build(env, platform):
+ return (env['tools'] and platform not in ["android", "ios"])
def configure(env):
- if not env['tools']:
- env['builtin_thekla_atlas'] = False
- env.disabled_modules.append("thekla_unwrap")
+ pass