More corrections to make-makefiles
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
# be hardwired in. But this will do for now.
|
# be hardwired in. But this will do for now.
|
||||||
#
|
#
|
||||||
|
|
||||||
import sys, os, json
|
import sys, os, json, glob
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -61,6 +61,7 @@ def writefile(fn, str):
|
|||||||
|
|
||||||
INTEGRATION = os.path.dirname(os.path.abspath(sys.argv[0]))
|
INTEGRATION = os.path.dirname(os.path.abspath(sys.argv[0]))
|
||||||
UNREALENGINE = os.environ["HOME"] + "/UnrealEngine"
|
UNREALENGINE = os.environ["HOME"] + "/UnrealEngine"
|
||||||
|
if not os.path.isdir(UNREALENGINE): error("No unreal installed in $HOME/UnrealEngine")
|
||||||
UNREALBUILDTOOL = f"{UNREALENGINE}/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll"
|
UNREALBUILDTOOL = f"{UNREALENGINE}/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll"
|
||||||
USER = os.environ["USER"]
|
USER = os.environ["USER"]
|
||||||
|
|
||||||
@@ -217,5 +218,5 @@ with open("Integration.code-workspace", "w") as rewritten:
|
|||||||
writefile("Makefile", f"""
|
writefile("Makefile", f"""
|
||||||
all:
|
all:
|
||||||
(cd luprex ; make)
|
(cd luprex ; make)
|
||||||
dotnet {UNREALBUILDTOOL} Integration Linux DebugGame -project="{INTEGRATION}/Integration.uproject"
|
dotnet {UNREALBUILDTOOL} IntegrationEditor Linux DebugGame -project="{INTEGRATION}/Integration.uproject" -waitmutex
|
||||||
""")
|
""")
|
||||||
|
|||||||
Reference in New Issue
Block a user