diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2023-11-20 14:31:56 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-03-01 12:44:03 -0600 |
commit | 0ce9b6fd1d72139921ad3a20cb1933eb35873eb8 (patch) | |
tree | 9658983dd31a7e37ec3d4e3fbb1bbf5b0bf4995a /methods.py | |
parent | dad6c774b019ef8c5dccb4a1955c6a77b41a323e (diff) | |
download | redot-engine-0ce9b6fd1d72139921ad3a20cb1933eb35873eb8.tar.gz |
Add two new COMSTR environment variables
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/methods.py b/methods.py index 88c8e7043e..7e889195c0 100644 --- a/methods.py +++ b/methods.py @@ -607,6 +607,12 @@ def no_verbose(sys, env): java_library_message = "{}Creating Java Archive {}$TARGET{} ...{}".format( colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] ) + compiled_resource_message = "{}Creating Compiled Resource {}$TARGET{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) + generated_file_message = "{}Generating {}$TARGET{} ...{}".format( + colors["blue"], colors["bold_blue"], colors["blue"], colors["reset"] + ) env.Append(CXXCOMSTR=[compile_source_message]) env.Append(CCCOMSTR=[compile_source_message]) @@ -618,6 +624,8 @@ def no_verbose(sys, env): env.Append(LINKCOMSTR=[link_program_message]) env.Append(JARCOMSTR=[java_library_message]) env.Append(JAVACCOMSTR=[java_compile_source_message]) + env.Append(RCCOMSTR=[compiled_resource_message]) + env.Append(GENCOMSTR=[generated_file_message]) def detect_visual_c_compiler_version(tools_env): @@ -817,15 +825,14 @@ def CommandNoCache(env, target, sources, command, **args): return result -def Run(env, function, short_message, subprocess=True): +def Run(env, function, subprocess=True): from SCons.Script import Action from platform_methods import run_in_subprocess - output_print = short_message if not env["verbose"] else "" if not subprocess: - return Action(function, output_print) + return Action(function, "$GENCOMSTR") else: - return Action(run_in_subprocess(function), output_print) + return Action(run_in_subprocess(function), "$GENCOMSTR") def detect_darwin_sdk_path(platform, env): |