You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
[CODEREVIEW] nick.pace, marco.anastasi, luke.bermingham, matthew.cotton, aidan.possemiers #rb #rnx #jira #ROBOMERGE-OWNER: marc.audy #ROBOMERGE-AUTHOR: marc.audy #ROBOMERGE-SOURCE: CL 16454120 in //UE4/Release-4.27/... via CL 16454127 via CL 16454219 #ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v818-16446889) [CL 16454235 by marc audy in ue5-release-engine-test branch]
79 lines
2.3 KiB
C#
79 lines
2.3 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
using System;
|
|
|
|
public class AVEncoder : ModuleRules
|
|
{
|
|
public AVEncoder(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
// Without these two compilation fails on VS2017 with D8049: command line is too long to fit in debug record.
|
|
bLegacyPublicIncludePaths = false;
|
|
DefaultBuildSettings = BuildSettingsVersion.V2;
|
|
|
|
// PCHUsage = PCHUsageMode.NoPCHs;
|
|
|
|
// PrecompileForTargets = PrecompileTargetsType.None;
|
|
|
|
PublicIncludePaths.AddRange(new string[] {
|
|
// ... add public include paths required here ...
|
|
});
|
|
|
|
PrivateIncludePaths.AddRange(new string[] {
|
|
// ... add other private include paths required here ...
|
|
});
|
|
|
|
PrivateDependencyModuleNames.AddRange(new string[] {
|
|
"Engine",
|
|
"nvEncode",
|
|
"Amf"
|
|
});
|
|
|
|
PublicDependencyModuleNames.AddRange(new string[] {
|
|
"RenderCore",
|
|
"Core",
|
|
"RHI"
|
|
// ... add other public dependencies that you statically link with here ...
|
|
});
|
|
|
|
DynamicallyLoadedModuleNames.AddRange(new string[] {
|
|
// ... add any modules that your module loads dynamically here ...
|
|
});
|
|
|
|
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Windows) || Target.IsInPlatformGroup(UnrealPlatformGroup.Linux))
|
|
{
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "NVAftermath");
|
|
PrivateIncludePathModuleNames.Add("VulkanRHI");
|
|
}
|
|
|
|
string EngineSourceDirectory = Path.GetFullPath(Target.RelativeEnginePath);
|
|
PrivateIncludePaths.Add(Path.Combine(EngineSourceDirectory, "Source/Runtime/VulkanRHI/Private"));
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "Vulkan");
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
PublicDependencyModuleNames.Add("D3D12RHI");
|
|
|
|
// d3d to be able to use NVENC
|
|
PublicSystemLibraries.AddRange(new string[] {
|
|
"dxgi.lib",
|
|
"d3d11.lib",
|
|
"d3d12.lib",
|
|
"mfplat.lib",
|
|
"mfuuid.lib"
|
|
});
|
|
|
|
PrivateIncludePaths.Add(Path.Combine(EngineSourceDirectory, "Source/Runtime/VulkanRHI/Private/Windows"));
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Linux)
|
|
{
|
|
PrivateDependencyModuleNames.Add("CUDA");
|
|
PrivateIncludePaths.Add(Path.Combine(EngineSourceDirectory, "Source/Runtime/VulkanRHI/Private/Linux"));
|
|
}
|
|
|
|
// TEMPORARY: set this to zero for all platforms until CUDA TPS review clears
|
|
PublicDefinitions.Add("WITH_CUDA=0");
|
|
}
|
|
}
|