diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-05-30 19:11:33 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-05-30 19:11:36 +0200 |
commit | 3334209a732737274a8598191267573fcb989a99 (patch) | |
tree | 43604e5f97bc11a9ba2c2e8720a49c0a1d6d0c5b /modules/recast/config.py | |
parent | 28fa82c2defacca8ccad5c26022d2eeaee925f4f (diff) |
SCons: Pass env to modules can_build method
This allows to disable modules based on the environment,
in particular `env[tools]` which tells us if we are
building the editor or not.
Diffstat (limited to 'modules/recast/config.py')
-rw-r--r-- | modules/recast/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/recast/config.py b/modules/recast/config.py index fc074cf661..098f1eafa9 100644 --- a/modules/recast/config.py +++ b/modules/recast/config.py @@ -1,5 +1,5 @@ -def can_build(platform): - return platform != "android" +def can_build(env, platform): + return env['tools'] def configure(env): pass |