INNER CODE UNIT · Python

GenProject

GloriousPtr/ArcGameEngine · scripts/Setup.py:6

def GenProject(compiler):
	if compiler == "clang" or compiler == "llvm":
		subprocess.call("GenerateSolutionClang.bat", stdin=subprocess.DEVNULL)
	else:
		subprocess.call("GenerateSolution.bat", stdin=subprocess.DEVNULL)

	if compiler == "llvm":
		llvmInstallPath = "C:/Program Files/LLVM/bin/clang.exe"
		if (not os.path.exists(llvmInstallPath)):
			print("LLVM installation not found!")
			subprocess.call("Install-LLVM.bat", stdin=subprocess.DEVNULL)
		subprocess.call("Install-LLVM-Utils.bat", stdin=subprocess.DEVNULL)
		for dname, dirs, files in os.walk("./.."):
			for fname in files:
				fpath = os.path.join(dname, fname)
				extension = pathlib.Path(fpath).suffix
				if extension != ".vcxproj":
					continue

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…