You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight 61a1004047752856c9c466c8 #preflight 61a10090ec124631d7fe33d4 #jira UETOOL-3249 #rb Alexis.Matte #preflight 61b0d6ffe01bc44973f3d8e1 #ROBOMERGE-AUTHOR: julien.stjean #ROBOMERGE-SOURCE: CL 18407090 in //UE5/Release-5.0/... via CL 18407095 #ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271) [CL 18407104 by julien stjean in ue5-release-engine-test branch]
45 lines
1.6 KiB
C#
45 lines
1.6 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class LibTiff : ModuleRules
|
|
{
|
|
public LibTiff(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
bool bWithLibTiff = false;
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
string LibPath = Path.Combine(ModuleDirectory, "Lib", Target.Platform.ToString());
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "tiff.lib"));
|
|
PublicSystemIncludePaths.Add(Path.Combine(ModuleDirectory, "Source", Target.Platform.ToString()));
|
|
bWithLibTiff = true;
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
string LibPath = Path.Combine(ModuleDirectory, "Lib", Target.Platform.ToString());
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libtiff.a"));
|
|
PublicSystemIncludePaths.Add(Path.Combine(ModuleDirectory, "Source", Target.Platform.ToString()));
|
|
bWithLibTiff = true;
|
|
}
|
|
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
|
|
{
|
|
string LibPath = Path.Combine(ModuleDirectory, "Lib/Unix", Target.Architecture);
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libtiff.a"));
|
|
string IncludePath = Path.Combine(ModuleDirectory, "Source/Unix", Target.Architecture);
|
|
PublicSystemIncludePaths.Add(IncludePath);
|
|
bWithLibTiff = true;
|
|
}
|
|
|
|
if (bWithLibTiff)
|
|
{
|
|
PublicSystemIncludePaths.Add(Path.Combine(ModuleDirectory, "Source"));
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "zlib");
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "LibJpegTurbo");
|
|
}
|
|
|
|
PublicDefinitions.Add("WITH_LIBTIFF=" + (bWithLibTiff ? '1' : '0'));
|
|
}
|
|
}
|