You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-175638 #preflight 63e3e34dc11233cdcad2694c #rb Yuriy.ODonnell #rb Jason.Nadro #lockdown Juan.Canada [CL 24082354 by dan elksnitis in ue5-main branch]
42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class ShaderCompilerCommon : ModuleRules
|
|
{
|
|
public ShaderCompilerCommon(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Core",
|
|
"RenderCore",
|
|
}
|
|
);
|
|
if (Target.bCompileAgainstEngine)
|
|
{
|
|
PublicDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"FileUtilities",
|
|
}
|
|
);
|
|
}
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Mac || Target.Platform == UnrealTargetPlatform.Win64 || Target.Platform == UnrealTargetPlatform.Linux)
|
|
{
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "ShaderConductor");
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "SPIRVReflect");
|
|
}
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
PublicSystemLibraries.Add("ImageHlp.lib");
|
|
}
|
|
|
|
// We only need a header containing definitions
|
|
PublicSystemIncludePaths.Add(Path.Combine(Target.UEThirdPartySourceDirectory, "hlslcc/hlslcc/src/hlslcc_lib"));
|
|
PublicSystemIncludePaths.Add(Path.Combine(Target.UEThirdPartySourceDirectory, "SPIRV-Reflect/SPIRV-Reflect"));
|
|
PublicSystemIncludePaths.Add(Path.Combine(Target.UEThirdPartySourceDirectory, "ShaderConductor/ShaderConductor/External/SPIRV-Headers/include"));
|
|
}
|
|
}
|