File tree 3 files changed +1
-34
lines changed
3 files changed +1
-34
lines changed Original file line number Diff line number Diff line change @@ -1055,10 +1055,6 @@ if scons_cache_path is not None:
1055
1055
CacheDir (scons_cache_path )
1056
1056
print ("Scons cache enabled... (path: '" + scons_cache_path + "')" )
1057
1057
1058
- if env ["vsproj" ]:
1059
- env .vs_incs = []
1060
- env .vs_srcs = []
1061
-
1062
1058
if env ["compiledb" ]:
1063
1059
env .Tool ("compilation_db" )
1064
1060
env .Alias ("compiledb" , env .CompilationDatabase ())
Original file line number Diff line number Diff line change @@ -592,23 +592,6 @@ def glob_recursive(pattern, node="."):
592
592
return results
593
593
594
594
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
-
612
595
def precious_program (env , program , sources , ** args ):
613
596
program = env .ProgramOriginal (program , sources , ** args )
614
597
env .Precious (program )
@@ -1111,9 +1094,7 @@ def format_key_value(v):
1111
1094
import json
1112
1095
1113
1096
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" )
1117
1098
).hexdigest ()
1118
1099
1119
1100
if os .path .exists (f"{ project_name } .vcxproj.filters" ):
Original file line number Diff line number Diff line change @@ -83,16 +83,6 @@ if env["windows_subsystem"] == "gui":
83
83
env_wrap .Depends (prog_wrap , prog )
84
84
sources += common_win_wrap + res_wrap_obj
85
85
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
-
96
86
if env ["d3d12" ]:
97
87
dxc_target_aliases = {
98
88
"x86_32" : "x86" ,
You can’t perform that action at this time.
0 commit comments