Files
UnrealEngineUWP/Engine/Source/ThirdParty/IntelISPC/IntelISPC.Build.cs
Martin Wilson 8253071c00 Fix for CIS issue with ISPC
#rb Jeff.Rous
#jira none

[CL 11175991 by Martin Wilson in Main branch]
2020-01-30 09:24:25 -05: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");
}
}
}