diff options
author | Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com> | 2024-11-12 20:27:33 +0200 |
---|---|---|
committer | Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com> | 2024-11-12 21:26:12 +0200 |
commit | 216488ad9b717268d3c9cda1e410637b49b1e4ba (patch) | |
tree | 1a5519316d108308e43e396871b9654575465603 /methods.py | |
parent | cb411fa960f0b7fdbd97dcdb4c90f9346360ee0e (diff) | |
download | redot-engine-216488ad9b717268d3c9cda1e410637b49b1e4ba.tar.gz |
Delete old unused code for VS project generation
Also ensured that sorting of files for hashing actually happens
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/methods.py b/methods.py index 64c3839718..e923dea774 100644 --- a/methods.py +++ b/methods.py @@ -593,23 +593,6 @@ def glob_recursive(pattern, node="."): return results -def add_to_vs_project(env, sources): - for x in sources: - fname = env.File(x).path if isinstance(x, str) else env.File(x)[0].path - pieces = fname.split(".") - if len(pieces) > 0: - basename = pieces[0] - basename = basename.replace("\\\\", "/") - if os.path.isfile(basename + ".h"): - env.vs_incs += [basename + ".h"] - elif os.path.isfile(basename + ".hpp"): - env.vs_incs += [basename + ".hpp"] - if os.path.isfile(basename + ".c"): - env.vs_srcs += [basename + ".c"] - elif os.path.isfile(basename + ".cpp"): - env.vs_srcs += [basename + ".cpp"] - - def precious_program(env, program, sources, **args): program = env.ProgramOriginal(program, sources, **args) env.Precious(program) @@ -1112,9 +1095,7 @@ def generate_vs_project(env, original_args, project_name="godot"): import json md5 = hashlib.md5( - json.dumps(headers + headers_dirs + sources + sources_dirs + others + others_dirs, sort_keys=True).encode( - "utf-8" - ) + json.dumps(sorted(headers + headers_dirs + sources + sources_dirs + others + others_dirs)).encode("utf-8") ).hexdigest() if os.path.exists(f"{project_name}.vcxproj.filters"): |