2024-04-21 06:51:51 -07:00
|
|
|
using System;
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System.IO;
|
|
|
|
using System.Runtime;
|
2024-04-22 22:10:02 -07:00
|
|
|
using UnrealBuildTool;
|
2024-04-12 09:42:41 -07:00
|
|
|
using BuildSettingsVersion = UnrealBuildTool.BuildSettingsVersion;
|
|
|
|
using TargetInfo = UnrealBuildTool.TargetInfo;
|
|
|
|
using TargetRules = UnrealBuildTool.TargetRules;
|
|
|
|
using TargetType = UnrealBuildTool.TargetType;
|
|
|
|
|
|
|
|
public class GasaEditorTarget : TargetRules
|
|
|
|
{
|
|
|
|
public GasaEditorTarget(TargetInfo Target) : base(Target)
|
|
|
|
{
|
|
|
|
Type = TargetType.Editor;
|
|
|
|
|
|
|
|
DefaultBuildSettings = BuildSettingsVersion.Latest;
|
|
|
|
|
2024-04-21 06:51:51 -07:00
|
|
|
bUseUnityBuild = true;
|
2024-04-16 14:18:06 -07:00
|
|
|
// bUseXGEController = false;
|
2024-04-22 22:10:02 -07:00
|
|
|
LinkType = TargetLinkType.Modular;
|
2024-04-12 19:05:09 -07:00
|
|
|
|
2024-04-12 09:42:41 -07:00
|
|
|
ExtraModuleNames.Add("Gasa");
|
|
|
|
ExtraModuleNames.Add("GasaEditor");
|
2024-04-21 06:51:51 -07:00
|
|
|
|
|
|
|
DirectoryInfo di_uproject = new DirectoryInfo(Path.GetDirectoryName(ProjectFile.ToString())).Parent;
|
|
|
|
string path_uproject = di_uproject.FullName;
|
|
|
|
string path_scripts = Path.Combine(path_uproject, "scripts");
|
|
|
|
string ps_gen_pass_gasa = Path.Combine(path_scripts, "gen_pass_gasa.ps1");
|
2024-04-12 09:42:41 -07:00
|
|
|
}
|
|
|
|
}
|