You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
61 lines
1.8 KiB
C#
61 lines
1.8 KiB
C#
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.Collections.Generic;
|
|
|
|
public class TestPALTarget : TargetRules
|
|
{
|
|
public TestPALTarget(TargetInfo Target)
|
|
{
|
|
Type = TargetType.Program;
|
|
}
|
|
|
|
//
|
|
// TargetRules interface.
|
|
//
|
|
|
|
public override bool GetSupportedPlatforms(ref List<UnrealTargetPlatform> OutPlatforms)
|
|
{
|
|
// It is valid for only server platforms
|
|
return UnrealBuildTool.UnrealBuildTool.GetAllServerPlatforms(ref OutPlatforms, false);
|
|
}
|
|
|
|
public override void SetupBinaries(
|
|
TargetInfo Target,
|
|
ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
|
|
ref List<string> OutExtraModuleNames
|
|
)
|
|
{
|
|
OutBuildBinaryConfigurations.Add(
|
|
new UEBuildBinaryConfiguration( InType: UEBuildBinaryType.Executable,
|
|
InModuleNames: new List<string>() { "TestPAL" } )
|
|
);
|
|
}
|
|
|
|
public override bool ShouldCompileMonolithic(UnrealTargetPlatform InPlatform, UnrealTargetConfiguration InConfiguration)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public override void SetupGlobalEnvironment(
|
|
TargetInfo Target,
|
|
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
|
|
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
|
|
)
|
|
{
|
|
// Lean and mean
|
|
UEBuildConfiguration.bCompileLeanAndMeanUE = true;
|
|
|
|
// No editor or editor-only data is needed
|
|
UEBuildConfiguration.bBuildEditor = false;
|
|
//UEBuildConfiguration.bBuildWithEditorOnlyData = false;
|
|
|
|
// Compile out references from Core to the rest of the engine
|
|
UEBuildConfiguration.bCompileAgainstEngine = false; // compiling without engine is broken (overridden functions do not override base class)
|
|
UEBuildConfiguration.bCompileAgainstCoreUObject = false;
|
|
|
|
// Make a console application under Windows, so entry point is main() everywhere
|
|
OutLinkEnvironmentConfiguration.bIsBuildingConsoleApplication = true;
|
|
}
|
|
}
|