Files
bryan sefcik ff81794e79 Windows ARM64EC fixes.
#fyi josh.adams
#preflight 63d1c8b96a14d8406d8bc780

[CL 23862381 by bryan sefcik in ue5-main branch]
2023-01-25 19:48:06 -05:00

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"));
}
}
}