From 42bee75e86e81fcd9b51b2e960d13b89b18ad4bf Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Fri, 20 Mar 2020 22:49:38 +0200 Subject: SCons: Dump construction environment to a file A new `methods.dump(env)` is added to dump the construction environment used by SCons to build Godot to a `.scons_env.json`. The file can be used for debugging purposes and any external tool. --- SConstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index fe94715bba..fa13eec502 100644 --- a/SConstruct +++ b/SConstruct @@ -688,6 +688,9 @@ elif selected_platform != "": else: sys.exit(255) -# The following only makes sense when the env is defined, and assumes it is +# The following only makes sense when the 'env' is defined, and assumes it is. if "env" in locals(): methods.show_progress(env) + # TODO: replace this with `env.Dump(format="json")` + # once we start requiring SCons 4.0 as min version. + methods.dump(env) -- cgit v1.2.3