I'm using SCons to build Godot with my custom module. It works, but I wanted to add some functionality there and have 'debug.py' and 'release.py' to be used as profile
argument, not a single 'config.py', and I've set some variables there:
platform = "x11"
tools = "yes"
target = "debug"
bits = 64
custom_modules = "../godot_modules"
use_lto = "yes"
mylib_shared = "yes"
udev = "no"
mylib_target = "debug"
I have no problem with most, these used by the SCons itself (like platform, or tools) work as expected, but in my SCsub I'm trying to use some of them:
Import('env')
print("mylib_target = ", ARGUMENTS.get('mylib_target', 'NULL'))
It prints "mylib_target = NULL" and ARGUMENTS['mylib_target']
gives me KeyError. I've also tried env['ENV']['mylib_target']
, same effect. How do I get to those?