接入 UE 机甲搜打撤原型与性能面板
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user