Files
UnrealEngineUWP/Engine/Source/ThirdParty/Intel/ISPC/IntelISPC.Build.cs
Marc Audy 11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00

26 lines
825 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class IntelISPC : ModuleRules
{
public IntelISPC(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
if (Target.bCompileISPC == true &&
(Target.WindowsPlatform.StaticAnalyzer != WindowsStaticAnalyzer.PVSStudio &&
Target.WindowsPlatform.StaticAnalyzer != WindowsStaticAnalyzer.VisualCpp))
{
// For Android, ISPC is on for some archs, off for others. Decide which in the tool chain.
if (Target.Platform != UnrealTargetPlatform.Android && Target.Platform != UnrealTargetPlatform.Lumin)
{
PublicDefinitions.Add("INTEL_ISPC=1");
}
}
else
{
PublicDefinitions.Add("INTEL_ISPC=0");
}
}
}