mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
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.
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
def can_build(platform):
|
||||
return True
|
||||
def can_build(env, platform):
|
||||
return env['tools']
|
||||
|
||||
def configure(env):
|
||||
# Tools only, disabled for non-tools
|
||||
# TODO: Find a cleaner way to achieve that
|
||||
if not env['tools']:
|
||||
env['module_tinyexr_enabled'] = False
|
||||
env.disabled_modules.append("tinyexr")
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user