mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Files
8441bf92a85bda146fca2abaaa34ecf5dc1b375d
47 lines
1.7 KiB
C#
47 lines
1.7 KiB
C#
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|||
|
added OpenSubDiv 3.0 to ThirdParty, approved by legal
[CL 2589111 by Martin Mittring in Main branch]
|
|
||
using UnrealBuildTool;
|
|||
|
|||
public class OpenSubdiv : ModuleRules
|
|||
{
|
|||
public OpenSubdiv(ReadOnlyTargetRules Target) : base(Target)
|
|||
|
added OpenSubDiv 3.0 to ThirdParty, approved by legal
[CL 2589111 by Martin Mittring in Main branch]
|
{
|
||
Type = ModuleType.External;
|
|||
|
|||
// Compile and link with OpenSubDiv
|
|||
string OpenSubdivPath = Target.UEThirdPartySourceDirectory + "OpenSubdiv/3.2.0";
|
|||
|
added OpenSubDiv 3.0 to ThirdParty, approved by legal
[CL 2589111 by Martin Mittring in Main branch]
|
|
||
PublicIncludePaths.Add( OpenSubdivPath + "/opensubdiv" );
|
|||
|
|||
|
|
// @todo mesheditor subdiv: Support other platforms, 32-bit Windows, and older/newer compiler toolchains
|
||
|
added OpenSubDiv 3.0 to ThirdParty, approved by legal
[CL 2589111 by Martin Mittring in Main branch]
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
||
{
|
|||
string LibFolder = "/lib/Win64/VS2015";
|
|||
if (LibFolder != "")
|
|||
{
|
|||
bool bDebug = (Target.Configuration == UnrealTargetConfiguration.Debug && Target.bDebugBuildsActuallyUseDebugCRT);
|
|||
string ConfigFolder = bDebug ? "/Debug" : "/RelWithDebInfo";
|
|||
|
|||
PublicLibraryPaths.Add(OpenSubdivPath + LibFolder + ConfigFolder);
|
|||
PublicAdditionalLibraries.Add("osdCPU.lib");
|
|||
}
|
|||
|
|
}
|
||
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|||
{
|
|||
// @todo: build Mac libraries
|
|||
// string LibFolder = "/lib/Mac";
|
|||
// string ConfigFolder = bDebug ? "" : "";
|
|||
//
|
|||
// PublicLibraryPaths.Add(OpenSubdivPath + LibFolder + ConfigFolder);
|
|||
// PublicAdditionalLibraries.Add("libosdCPU.a");
|
|||
}
|
|||
else if (Target.Platform == UnrealTargetPlatform.Linux)
|
|||
{
|
|||
// @todo: build Linux libraries
|
|||
// string LibFolder = "/lib/Linux/" + Target.Architecture;
|
|||
//
|
|||
// PublicLibraryPaths.Add(OpenSubdivPath + LibFolder);
|
|||
// PublicAdditionalLibraries.Add("libosdCPU.a");
|
|||
}
|
|||
}
|
|||
}
|