Files
rougeGame/Source/GameFrameworkExternal/GameFrameworkExternal.Build.cs
T

18 lines
888 B
C#

using System.IO;
using UnrealBuildTool;
public class GameFrameworkExternal : ModuleRules
{
public GameFrameworkExternal(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
string Root = Path.GetFullPath(Path.Combine(ModuleDirectory, "../.."));
string Library = Path.Combine(Root, "Builds/gameFramework/vs2022-x64/Release/gameFramework.lib");
if (Target.Platform != UnrealTargetPlatform.Win64 || Target.bDebugBuildsActuallyUseDebugCRT)
throw new BuildException("gameFramework host requires Win64 /MD Release ABI.");
if (!File.Exists(Library)) throw new BuildException("Build the independent core first: Tools/Framework/Build.ps1");
PublicIncludePaths.Add(Path.Combine(Root, "gameFramework/include"));
PublicAdditionalLibraries.Add(Library);
ExternalDependencies.Add(Library);
}
}