Files
UnrealEngineUWP/Engine/Source/Developer/VulkanShaderFormat/VulkanShaderFormat.Build.cs
Rolando Caloca 5b82f15def Copying //UE4/Dev-RenderPlat-Staging@11388153 to //UE4/Main
#rb none
#rnx

[CL 11388545 by Rolando Caloca in Main branch]
2020-02-12 13:27:19 -05:00

53 lines
1.6 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class VulkanShaderFormat : ModuleRules
{
public VulkanShaderFormat(ReadOnlyTargetRules Target) : base(Target)
{
PrivateIncludePathModuleNames.Add("TargetPlatform");
// Do not link the module (as that would require the vulkan dll), only the include paths
PublicIncludePaths.Add("Runtime/VulkanRHI/Public");
PrivateDependencyModuleNames.AddRange(
new string[] {
"Core",
"RenderCore",
"ShaderCompilerCommon",
"ShaderPreprocessor",
"RHI", // @todo platplug: This would not be needed if we could move FDataDriveShaderPlatformInfo (and ERHIFeatureLevel) into RenderCore or maybe its own module?
}
);
AddEngineThirdPartyPrivateStaticDependencies(Target, "HLSLCC");
AddEngineThirdPartyPrivateStaticDependencies(Target, "GlsLang");
if (Target.Platform == UnrealTargetPlatform.Mac || Target.Platform == UnrealTargetPlatform.Win64)
{
AddEngineThirdPartyPrivateStaticDependencies(Target,
"ShaderConductor",
"SPIRVReflect"
);
}
if (Target.Platform != UnrealTargetPlatform.Win64 &&
Target.Platform != UnrealTargetPlatform.Win32 &&
Target.Platform != UnrealTargetPlatform.Android &&
!Target.IsInPlatformGroup(UnrealPlatformGroup.Linux) &&
Target.Platform != UnrealTargetPlatform.Mac)
{
PrecompileForTargets = PrecompileTargetsType.None;
}
AddEngineThirdPartyPrivateStaticDependencies(Target, "Vulkan");
if (Target.Platform == UnrealTargetPlatform.Win64)
{
PublicDelayLoadDLLs.Add("dxcompiler_sc.dll");
PublicDelayLoadDLLs.Add("ShaderConductor.dll");
}
}
}