You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#p4v-preflight-copy 29191952 #rb dan.thompson [CL 29237577 by jon olick in ue5-main branch]
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class UEJpegComp : ModuleRules
|
|
{
|
|
public UEJpegComp(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
bool bWithLib = false;
|
|
if (Target.Platform == UnrealTargetPlatform.Win64 && Target.WindowsPlatform.Architecture != UnrealArch.Arm64)
|
|
{
|
|
string LibPath = Path.Combine(ModuleDirectory, "Lib");
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "uejpeg_w64.lib"));
|
|
bWithLib = true;
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
string LibPath = Path.Combine(ModuleDirectory, "Lib");
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "uejpeg_mac.a"));
|
|
bWithLib = true;
|
|
}
|
|
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
|
|
{
|
|
string LibPath = Path.Combine(ModuleDirectory, "Lib/Unix", Target.Architecture.LinuxName);
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "uejpeg_linux.a"));
|
|
bWithLib = true;
|
|
}
|
|
|
|
if (bWithLib)
|
|
{
|
|
PublicSystemIncludePaths.Add(Path.Combine(ModuleDirectory, "Source"));
|
|
}
|
|
|
|
PublicDefinitions.Add("WITH_UEJPEG=" + (bWithLib ? '1' : '0'));
|
|
}
|
|
}
|