You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UnrealBuildTool: Skip generating invalid platforms for client targets
#rnx [CL 31662892 by joe kirchoff in ue5-main branch]
This commit is contained in:
@@ -55,6 +55,8 @@ namespace UnrealBuildTool
|
||||
|
||||
Dictionary<FileReference, (UEBuildTarget BuildTarget, bool bBuildByDefault)> FileToTarget = new();
|
||||
|
||||
HashSet<UnrealTargetPlatform> ServerPlatforms = Utils.GetPlatformsInClass(UnrealPlatformClass.Server).ToHashSet();
|
||||
|
||||
foreach (UnrealTargetPlatform Platform in InPlatforms)
|
||||
{
|
||||
foreach (UnrealTargetConfiguration Configuration in InConfigurations)
|
||||
@@ -82,6 +84,12 @@ namespace UnrealBuildTool
|
||||
continue;
|
||||
}
|
||||
|
||||
// Skip Server for all invalid platforms
|
||||
if (ProjectTarget.TargetRules.Type == TargetType.Server && !ServerPlatforms.Contains(Platform))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
bool bBuildByDefault = ShouldBuildByDefaultForSolutionTargets && ProjectTarget.SupportedPlatforms.Contains(Platform);
|
||||
|
||||
UnrealArchitectures ProjectArchitectures = UEBuildPlatform
|
||||
|
||||
Reference in New Issue
Block a user