diff options
Diffstat (limited to 'methods.py')
-rw-r--r-- | methods.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/methods.py b/methods.py index 18b4ceb74f..571a3f739e 100644 --- a/methods.py +++ b/methods.py @@ -259,14 +259,11 @@ const char *const VERSION_HASH = "{git_hash}"; def parse_cg_file(fname, uniforms, sizes, conditionals): - fs = open(fname, "r") line = fs.readline() while line: - if re.match(r"^\s*uniform", line): - res = re.match(r"uniform ([\d\w]*) ([\d\w]*)") type = res.groups(1) name = res.groups(2) @@ -507,7 +504,6 @@ def sort_module_list(env): def use_windows_spawn_fix(self, platform=None): - if os.name != "nt": return # not needed, only for windows @@ -522,7 +518,6 @@ def use_windows_spawn_fix(self, platform=None): self.Replace(ARFLAGS="q") def mySubProcess(cmdline, env): - startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW popen_args = { @@ -545,7 +540,6 @@ def use_windows_spawn_fix(self, platform=None): return rv def mySpawn(sh, escape, cmd, args, env): - newargs = " ".join(args[1:]) cmdline = cmd + " " + newargs @@ -565,36 +559,7 @@ def use_windows_spawn_fix(self, platform=None): self["SPAWN"] = mySpawn -def save_active_platforms(apnames, ap): - - for x in ap: - svg_names = [] - if os.path.isfile(x + "/logo.svg"): - svg_names.append("logo") - if os.path.isfile(x + "/run_icon.svg"): - svg_names.append("run_icon") - - for name in svg_names: - svgf = open(x + "/" + name + ".svg", "rb") - b = svgf.read(1) - svg_str = " /* AUTOGENERATED FILE, DO NOT EDIT */ \n" - svg_str += " static const char *_" + x[9:] + "_" + name + '_svg = "' - while len(b) == 1: - svg_str += "\\" + hex(ord(b))[1:] - b = svgf.read(1) - - svg_str += '";\n' - - svgf.close() - - # NOTE: It is safe to generate this file here, since this is still executed serially - wf = x + "/" + name + "_svg.gen.h" - with open(wf, "w") as svgw: - svgw.write(svg_str) - - def no_verbose(sys, env): - colors = {} # Colors are disabled in non-TTY environments such as pipes. This means @@ -708,7 +673,6 @@ def detect_visual_c_compiler_version(tools_env): # and for VS 2017 and newer we check VCTOOLSINSTALLDIR: if "VCTOOLSINSTALLDIR" in tools_env: - # Newer versions have a different path available vc_amd64_compiler_detection_index = ( tools_env["PATH"].upper().find(tools_env["VCTOOLSINSTALLDIR"].upper() + "BIN\\HOSTX64\\X64;") |