Skip to content

Commit 49023c0

Browse files
committed
Merge pull request #99138 from dustdfg/remove_old_vs_proj_code
Delete old unused code for VS project generation
2 parents 8fd98b6 + 216488a commit 49023c0

File tree

3 files changed

+1
-34
lines changed

3 files changed

+1
-34
lines changed

SConstruct

-4
Original file line numberDiff line numberDiff line change
@@ -1055,10 +1055,6 @@ if scons_cache_path is not None:
10551055
CacheDir(scons_cache_path)
10561056
print("Scons cache enabled... (path: '" + scons_cache_path + "')")
10571057

1058-
if env["vsproj"]:
1059-
env.vs_incs = []
1060-
env.vs_srcs = []
1061-
10621058
if env["compiledb"]:
10631059
env.Tool("compilation_db")
10641060
env.Alias("compiledb", env.CompilationDatabase())

methods.py

+1-20
Original file line numberDiff line numberDiff line change
@@ -592,23 +592,6 @@ def glob_recursive(pattern, node="."):
592592
return results
593593

594594

595-
def add_to_vs_project(env, sources):
596-
for x in sources:
597-
fname = env.File(x).path if isinstance(x, str) else env.File(x)[0].path
598-
pieces = fname.split(".")
599-
if len(pieces) > 0:
600-
basename = pieces[0]
601-
basename = basename.replace("\\\\", "/")
602-
if os.path.isfile(basename + ".h"):
603-
env.vs_incs += [basename + ".h"]
604-
elif os.path.isfile(basename + ".hpp"):
605-
env.vs_incs += [basename + ".hpp"]
606-
if os.path.isfile(basename + ".c"):
607-
env.vs_srcs += [basename + ".c"]
608-
elif os.path.isfile(basename + ".cpp"):
609-
env.vs_srcs += [basename + ".cpp"]
610-
611-
612595
def precious_program(env, program, sources, **args):
613596
program = env.ProgramOriginal(program, sources, **args)
614597
env.Precious(program)
@@ -1111,9 +1094,7 @@ def format_key_value(v):
11111094
import json
11121095

11131096
md5 = hashlib.md5(
1114-
json.dumps(headers + headers_dirs + sources + sources_dirs + others + others_dirs, sort_keys=True).encode(
1115-
"utf-8"
1116-
)
1097+
json.dumps(sorted(headers + headers_dirs + sources + sources_dirs + others + others_dirs)).encode("utf-8")
11171098
).hexdigest()
11181099

11191100
if os.path.exists(f"{project_name}.vcxproj.filters"):

platform/windows/SCsub

-10
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,6 @@ if env["windows_subsystem"] == "gui":
8383
env_wrap.Depends(prog_wrap, prog)
8484
sources += common_win_wrap + res_wrap_obj
8585

86-
# Microsoft Visual Studio Project Generation
87-
if env["vsproj"]:
88-
env.vs_srcs += ["platform/windows/" + res_file]
89-
env.vs_srcs += ["platform/windows/godot.natvis"]
90-
for x in common_win:
91-
env.vs_srcs += ["platform/windows/" + str(x)]
92-
if env["windows_subsystem"] == "gui":
93-
for x in common_win_wrap:
94-
env.vs_srcs += ["platform/windows/" + str(x)]
95-
9686
if env["d3d12"]:
9787
dxc_target_aliases = {
9888
"x86_32": "x86",

0 commit comments

Comments
 (0)