2014-03-14 17:13:27 -04:00
|
|
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
|
|
|
|
|
|
public class nvTextureTools : ModuleRules
|
|
|
|
|
|
{
|
|
|
|
|
|
public nvTextureTools(TargetInfo Target)
|
|
|
|
|
|
{
|
|
|
|
|
|
Type = ModuleType.External;
|
|
|
|
|
|
|
2014-04-23 18:52:29 -04:00
|
|
|
|
string nvttPath = UEBuildConfiguration.UEThirdPartyDirectory + "nvTextureTools/nvTextureTools-2.0.8/";
|
2014-03-14 17:13:27 -04:00
|
|
|
|
|
|
|
|
|
|
string nvttLibPath = nvttPath + "lib";
|
|
|
|
|
|
|
|
|
|
|
|
PublicIncludePaths.Add(nvttPath + "src/src");
|
|
|
|
|
|
|
|
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
|
|
|
|
{
|
|
|
|
|
|
nvttLibPath += ("/Win64/VS" + WindowsPlatform.GetVisualStudioCompilerVersionName());
|
|
|
|
|
|
PublicLibraryPaths.Add(nvttLibPath);
|
|
|
|
|
|
|
|
|
|
|
|
PublicAdditionalLibraries.Add("nvtt_64.lib");
|
|
|
|
|
|
|
|
|
|
|
|
PublicDelayLoadDLLs.Add("nvtt_64.dll");
|
|
|
|
|
|
}
|
|
|
|
|
|
else if (Target.Platform == UnrealTargetPlatform.Win32)
|
|
|
|
|
|
{
|
|
|
|
|
|
nvttLibPath += ("/Win32/VS" + WindowsPlatform.GetVisualStudioCompilerVersionName());
|
|
|
|
|
|
PublicLibraryPaths.Add(nvttLibPath);
|
|
|
|
|
|
|
|
|
|
|
|
PublicAdditionalLibraries.Add("nvtt.lib");
|
|
|
|
|
|
|
|
|
|
|
|
PublicDelayLoadDLLs.Add("nvtt.dll");
|
|
|
|
|
|
}
|
|
|
|
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
|
|
|
|
{
|
2014-04-02 18:09:23 -04:00
|
|
|
|
PublicAdditionalLibraries.Add(nvttPath + "lib/Mac/libnvcore.dylib");
|
|
|
|
|
|
PublicAdditionalLibraries.Add(nvttPath + "lib/Mac/libnvimage.dylib");
|
|
|
|
|
|
PublicAdditionalLibraries.Add(nvttPath + "lib/Mac/libnvmath.dylib");
|
|
|
|
|
|
PublicAdditionalLibraries.Add(nvttPath + "lib/Mac/libnvtt.dylib");
|
2014-03-14 17:13:27 -04:00
|
|
|
|
PublicAdditionalLibraries.Add(nvttPath + "lib/Mac/libsquish.a");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|