You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @ 16738161 and Dev-PerfTest @ 16737719 (and Release-17.00 @ 16658211) [CL 16763350 by aurel cordonnier in ue5-main branch]
57 lines
2.6 KiB
C#
57 lines
2.6 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class libstrophe : ModuleRules
|
|
{
|
|
protected virtual string StropheVersion { get { return (Target.Platform == UnrealTargetPlatform.Mac) ? "libstrophe-0.9.1" : "libstrophe-0.9.3"; } }
|
|
|
|
protected virtual string LibRootDirectory { get { return ModuleDirectory; } }
|
|
|
|
protected virtual string StrophePackagePath { get { return Path.Combine(LibRootDirectory, StropheVersion); } }
|
|
|
|
protected virtual string StropheLibRootPath { get { return Path.Combine(StrophePackagePath, "Lib"); } }
|
|
|
|
protected virtual string StropheIncludePath { get { return Path.Combine(StrophePackagePath, "Include"); } }
|
|
|
|
protected virtual string ConfigName { get { return (Target.Configuration == UnrealTargetConfiguration.Debug && Target.bDebugBuildsActuallyUseDebugCRT) ? "Debug" : "Release"; } }
|
|
|
|
protected virtual bool bRequireExpat { get { return true; } }
|
|
|
|
public libstrophe(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
PrivateDefinitions.Add("XML_STATIC");
|
|
PublicSystemIncludePaths.Add(Path.Combine(ModuleDirectory, StropheVersion));
|
|
|
|
if (bRequireExpat)
|
|
{
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "Expat");
|
|
}
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Android)
|
|
{
|
|
PublicAdditionalLibraries.Add(Path.Combine(StropheLibRootPath, "Android", ConfigName, "arm64", "libstrophe.a"));
|
|
PublicAdditionalLibraries.Add(Path.Combine(StropheLibRootPath, "Android", ConfigName, "armv7", "libstrophe.a"));
|
|
PublicAdditionalLibraries.Add(Path.Combine(StropheLibRootPath, "Android", ConfigName, "x86", "libstrophe.a"));
|
|
PublicAdditionalLibraries.Add(Path.Combine(StropheLibRootPath, "Android", ConfigName, "x86_64", "libstrophe.a"));
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.IOS || Target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
PublicAdditionalLibraries.Add(Path.Combine(StrophePackagePath, Target.Platform.ToString(), ConfigName, "libstrophe.a"));
|
|
PublicSystemLibraries.Add("resolv");
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
string LibrayPath = Path.Combine(StrophePackagePath, Target.Platform.ToString(), "VS" + Target.WindowsPlatform.GetVisualStudioCompilerVersionName(), ConfigName) + "/";
|
|
PublicAdditionalLibraries.Add(LibrayPath + "strophe.lib");
|
|
}
|
|
else if (Target.IsInPlatformGroup(UnrealPlatformGroup.Unix))
|
|
{
|
|
PublicAdditionalLibraries.Add(Path.Combine(StrophePackagePath, "Unix", Target.Architecture.ToString(), ConfigName, "libstrophe" + ((Target.LinkType != TargetLinkType.Monolithic) ? "_fPIC" : "") + ".a"));
|
|
PublicSystemLibraries.Add("resolv");
|
|
}
|
|
}
|
|
} |