using System; using Flax.Build; using Flax.Build.NativeCpp; public class GameTarget : GameProjectTarget { /// public override void Init() { base.Init(); OutputName = "Goake"; Win32ResourceFile = @"C:\dev\GoakeFlax\Source\goake.rc"; IsPreBuilt = false; Architectures = new TargetArchitecture[] { TargetArchitecture.x64 }; Platforms = new TargetPlatform[] { TargetPlatform.Windows }; LinkType = TargetLinkType.Monolithic; if (LinkType == TargetLinkType.Monolithic) { Modules.Add("Main"); OutputType = TargetOutputType.Executable; } Modules.Add("Game"); Modules.Add("FidelityFXFSR"); } public override string GetOutputFilePath(BuildOptions options, TargetOutputType? outputType = null) { // For IDE builds only, these do not work during cooking (fails to update cooked files in multiple ways) if (options.Configuration == TargetConfiguration.Development) options.OutputFolder = @"C:\dev\GoakeFlax\Output\WindowsDevelopment"; else if (options.Configuration == TargetConfiguration.Release) options.OutputFolder = @"C:\dev\GoakeFlax\Output\WindowsRelease"; return base.GetOutputFilePath(options, outputType); } }