// Copyright Epic Games, Inc. All Rights Reserved. using System.IO; using UnrealBuildTool; [SupportedPlatforms("Win64", "Mac", "Linux")] public class RPCLib : ModuleRules { protected readonly string Version = "2.2.1"; public RPCLib(ReadOnlyTargetRules Target) : base(Target) { Type = ModuleType.External; string VersionPath = Path.Combine(ModuleDirectory, Version); string LibraryPath = Path.Combine(VersionPath, "lib"); PublicSystemIncludePaths.Add(Path.Combine(VersionPath, "include")); if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix)) { PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "Unix", Target.Architecture.LinuxName, "Release", "librpc.a")); } else if (Target.Platform == UnrealTargetPlatform.Mac) { PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "Mac", "Release", "librpc.a")); } else if (Target.Platform == UnrealTargetPlatform.Win64) { PublicAdditionalLibraries.Add(Path.Combine(LibraryPath, "Win64", Target.WindowsPlatform.Architecture.WindowsLibDir, "Release", "rpc.lib")); } } }