You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-130979 #preflight 61608f3851b6340001ff7702, 61608f14635a7a0001a712ef #rnx #ROBOMERGE-OWNER: michael.balzer #ROBOMERGE-AUTHOR: michael.balzer #ROBOMERGE-COMMAND: _robomerge[starship] UE5-Main #ROBOMERGE-SOURCE: CL 17763550 in //UE5/Release-5.0/... via CL 17763551 #ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v879-17706426) #ROBOMERGE[STARSHIP]: UE5-Main [CL 17763569 by michael balzer in ue5-release-engine-test branch]
66 lines
2.0 KiB
C#
66 lines
2.0 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.Diagnostics;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
public class OpenVDB : ModuleRules
|
|
{
|
|
public OpenVDB(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
// We are just setting up paths for pre-compiled binaries.
|
|
Type = ModuleType.External;
|
|
|
|
const string versionString = "openvdb-8.1.0";
|
|
|
|
string OpenVdbDir = Path.Combine(Target.UEThirdPartySourceDirectory, "OpenVDB", "Deploy", versionString);
|
|
string OpenVdbBinDir = Path.Combine(OpenVdbDir, "bin");
|
|
string OpenVdbIncludeDir = Path.Combine(OpenVdbDir, "include");
|
|
string OpenVdbLibDir = Path.Combine(OpenVdbDir, "lib");
|
|
|
|
PublicDefinitions.Add("NOMINMAX");
|
|
|
|
PublicIncludePaths.Add(OpenVdbIncludeDir);
|
|
|
|
// Only building for Windows
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
const string openVdbWin64LibName = "openvdb.lib";
|
|
string OpenVdbWin64LibDir = Path.Combine(OpenVdbLibDir, "Win64", "VS2019");
|
|
string OpenVdbWin64Lib = Path.Combine(OpenVdbWin64LibDir, openVdbWin64LibName);
|
|
|
|
PublicAdditionalLibraries.Add(OpenVdbWin64Lib);
|
|
|
|
const string openVdbWin64DllName = "openvdb.dll";
|
|
string OpenVdbWin64BinDir = Path.Combine(OpenVdbBinDir, "Win64", "VS2019");
|
|
string OpenVdbWin64Dll = Path.Combine(OpenVdbWin64BinDir, openVdbWin64DllName);
|
|
|
|
RuntimeDependencies.Add("$(TargetOutputDir)/" + openVdbWin64DllName, OpenVdbWin64Dll);
|
|
}
|
|
else
|
|
{
|
|
const string error = "OpenVDB can only be used under Windows 64-bit!";
|
|
System.Console.WriteLine(error);
|
|
throw new BuildException(error);
|
|
}
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
"Boost"
|
|
}
|
|
);
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
"IntelTBB"
|
|
}
|
|
);
|
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "Blosc");
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "zlib");
|
|
}
|
|
}
|