From 7239d3d7f93273183ed516071423108501579a92 Mon Sep 17 00:00:00 2001 From: jyelon Date: Thu, 7 Nov 2024 17:53:05 -0500 Subject: [PATCH] More improvements to build-everything --- build-everything.py | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/build-everything.py b/build-everything.py index 9e9f9f21..09e55d30 100755 --- a/build-everything.py +++ b/build-everything.py @@ -38,8 +38,8 @@ def writefile(fn, str): f.write(str) def shell(cmd): - print("Running:", cmd) - subprocess.run(cmd, shell=True, check=True) + print("Running:", cmd) + subprocess.run(cmd, shell=True, check=True) # # These are some directory paths that we will need. @@ -90,8 +90,9 @@ writefile("Source/Integration/lpx-paths.hpp", f""" os.chdir(UNREALENGINE) print("Applying patch to Unreal Engine...") -shell("git checkout HEAD Engine/Source/Runtime/ApplicationCore/Private/Linux/LinuxPlatformApplicationMisc.cpp") -shell("git checkout HEAD Engine/Source/Runtime/Core/Private/Logging/LogMacros.cpp") +for line in readfile(f"{INTEGRATION}/EnginePatches/EnginePatch").splitlines(): + if line.startswith("--- a/"): + shell(f"git checkout HEAD {line[6:]}") shell(f"git apply {INTEGRATION}/EnginePatches/EnginePatch") os.chdir(INTEGRATION) @@ -183,6 +184,26 @@ def goodconf(config): WORKSPACE["launch"]["configurations"] = [x for x in WORKSPACE["launch"]["configurations"] if goodconf(x)] +# +# Add some recommended extensions. +# + +EXTENSIONS=set(WORKSPACE["extensions"]["recommendations"]) +EXTENSIONS.add("ms-python.python") +EXTENSIONS.add("vadimcn.vscode-lldb") +WORKSPACE["extensions"]["recommendations"] = list(EXTENSIONS) + +# +# Tell vscode not to try watching all the UnrealEngine source code for modifications. +# Attempting this overruns a Linux hardwired limit on file watches. +# + +WORKSPACE["settings"]["files.watcherExclude"] = { + f'{UNREALENGINE}/Engine/**' : True, + f'{UNREALENGINE}/Samples/**' : True, + f'{UNREALENGINE}/Templates/**' : True +} + # # Write Integration.code-workspace. #