Files
UnrealEngineUWP/Engine/Source/ThirdParty/OpenSubdiv/OpenSubdiv.Build.cs
Mike Fricker 4d13e05c18 Updated OpenSubdiv to version 3.2.0
- No effective change that I've been able to notice
- VS 2013 is not supported yet (we can add that later)

#codereview richard.talbotwatkin
#rb none

[CL 3354599 by Mike Fricker in Dev-Geometry branch]
2017-03-20 15:28:21 -04:00

41 lines
1.3 KiB
C#

// Copyright 1998-2017 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 = UEBuildConfiguration.UEThirdPartySourceDirectory + "OpenSubdiv/3.2.0";
PublicIncludePaths.Add( OpenSubdivPath + "/opensubdiv" );
// @todo mesheditor subdiv: Support other platforms
if (Target.Platform == UnrealTargetPlatform.Win64)
{
string LibFolder = "";
{
switch (WindowsPlatform.Compiler)
{
case WindowsCompiler.VisualStudio2017:
case WindowsCompiler.VisualStudio2015:
LibFolder = "/libVS2015";
break;
}
}
if (LibFolder != "")
{
bool bDebug = (Target.Configuration == UnrealTargetConfiguration.Debug && BuildConfiguration.bDebugBuildsActuallyUseDebugCRT);
string ConfigFolder = bDebug ? "/Debug" : "/RelWithDebInfo";
PublicLibraryPaths.Add(OpenSubdivPath + LibFolder + ConfigFolder);
PublicAdditionalLibraries.Add("osdCPU.lib");
}
}
}
}