Files
UnrealEngineUWP/Engine/Source/ThirdParty/OpenSubdiv/OpenSubdiv.Build.cs
matt johnson e5e9768591 USD: upgrade USD version to v23.08
These changes include activating OpenSubdiv 3.5.0 for the engine,
since that version of OpenSubdiv was used to build this version of USD.

The toolchain on Linux was also updated to the new current version.

#jira UE-190904, UE-190064
#rb daniel.coelho, anousack.kitisa

[CL 27409803 by matt johnson in ue5-main branch]
2023-08-28 09:44:36 -04:00

60 lines
1.7 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.IO;
using UnrealBuildTool;
public class OpenSubdiv : ModuleRules
{
public OpenSubdiv(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
bool bDebug = (Target.Configuration == UnrealTargetConfiguration.Debug && Target.bDebugBuildsActuallyUseDebugCRT);
string DeploymentDirectory = Path.Combine(ModuleDirectory, "Deploy", "OpenSubdiv-3.5.0");
PublicSystemIncludePaths.Add(Path.Combine(DeploymentDirectory, "include"));
string LibPostfix = bDebug ? "_d" : "";
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Windows))
{
string LibDirectory = Path.Combine(
DeploymentDirectory,
"VS" + Target.WindowsPlatform.GetVisualStudioCompilerVersionName(),
Target.Architecture.WindowsLibDir,
"lib");
PublicAdditionalLibraries.Add(
Path.Combine(LibDirectory, "osdCPU" + LibPostfix + ".lib"));
PublicAdditionalLibraries.Add(
Path.Combine(LibDirectory, "osdGPU" + LibPostfix + ".lib"));
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
string LibDirectory = Path.Combine(
DeploymentDirectory,
"Mac",
"lib");
PublicAdditionalLibraries.Add(
Path.Combine(LibDirectory, "libosdCPU" + LibPostfix + ".a"));
PublicAdditionalLibraries.Add(
Path.Combine(LibDirectory, "libosdGPU" + LibPostfix + ".a"));
}
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
{
string LibDirectory = Path.Combine(
DeploymentDirectory,
"Unix",
Target.Architecture.LinuxName,
"lib");
// Note that since we no longer support OpenGL on Linux,
// OpenSubdiv's library for GPU support is not available.
PublicAdditionalLibraries.Add(
Path.Combine(LibDirectory, "libosdCPU" + LibPostfix + ".a"));
}
}
}