diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-05-30 22:07:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-30 22:07:58 +0200 |
commit | 33cb5f4492350802a0d081214e5059800b1842ef (patch) | |
tree | 43604e5f97bc11a9ba2c2e8720a49c0a1d6d0c5b /modules/thekla_unwrap/config.py | |
parent | 28fa82c2defacca8ccad5c26022d2eeaee925f4f (diff) | |
parent | 3334209a732737274a8598191267573fcb989a99 (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.py | 8 |
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 |