Files
UnrealEngineUWP/Engine/Source/ThirdParty/OpenSubdiv/OpenSubdiv.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

44 lines
1.6 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class OpenSubdiv : ModuleRules
{
public OpenSubdiv(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
// Compile and link with OpenSubDiv
string OpenSubdivPath = Target.UEThirdPartySourceDirectory + "OpenSubdiv/3.2.0";
PublicIncludePaths.Add( OpenSubdivPath + "/opensubdiv" );
// @todo mesheditor subdiv: Support other platforms, 32-bit Windows, and older/newer compiler toolchains
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows) && Target.Platform != UnrealTargetPlatform.Win32)
{
string LibFolder = "/lib/Win64/VS2015";
if (LibFolder != "")
{
bool bDebug = (Target.Configuration == UnrealTargetConfiguration.Debug && Target.bDebugBuildsActuallyUseDebugCRT);
string ConfigFolder = bDebug ? "/Debug" : "/RelWithDebInfo";
PublicAdditionalLibraries.Add(OpenSubdivPath + LibFolder + ConfigFolder + "/osdCPU.lib");
}
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
// @todo: build Mac libraries
// string LibFolder = "/lib/Mac";
// string ConfigFolder = bDebug ? "" : "";
//
// PublicAdditionalLibraries.Add(OpenSubdivPath + LibFolder + ConfigFolder + "libosdCPU.a");
}
else if (Target.Platform == UnrealTargetPlatform.Linux)
{
// @todo: build Linux libraries
// string LibFolder = "/lib/Linux/" + Target.Architecture;
//
// PublicAdditionalLibraries.Add(OpenSubdivPath + LibFolder + "libosdCPU.a");
}
}
}