You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
41 lines
1.3 KiB
C#
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, 32-bit Windows, and older/newer compiler toolchains
|
|
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");
|
|
}
|
|
}
|
|
}
|
|
} |