You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#fyi josh.adams #preflight 63d1c8b96a14d8406d8bc780 [CL 23862381 by bryan sefcik in ue5-main branch]
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class libzip : ModuleRules
|
|
{
|
|
protected readonly string Version = "1.9.2";
|
|
|
|
public libzip(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
PublicDependencyModuleNames.Add("OpenSSL");
|
|
PublicDependencyModuleNames.Add("zlib");
|
|
|
|
string VersionPath = Path.Combine(ModuleDirectory, Version);
|
|
string LibraryPath = Path.Combine(VersionPath, "lib");
|
|
|
|
PublicSystemIncludePaths.Add(Path.Combine(VersionPath, "include"));
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "Win64", Target.Architecture.WindowsLibDir, "Release", "zip.lib"));
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "Mac", "Release", "libzip.a"));
|
|
}
|
|
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
|
|
{
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "Unix", Target.Architecture.LinuxName, "Release", "libzip.a"));
|
|
}
|
|
}
|
|
}
|
|
|
|
|