61 lines
1.4 KiB
C#
61 lines
1.4 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class OnlineSubsystemTencent : ModuleRules
|
|
{
|
|
public OnlineSubsystemTencent(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PrivateDefinitions.Add("ONLINESUBSYSTEM_TENCENT_PACKAGE=1");
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Core",
|
|
"CoreUObject"
|
|
}
|
|
);
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Sockets",
|
|
"HTTP",
|
|
"Json",
|
|
"OnlineSubsystem",
|
|
"PacketHandler",
|
|
"PlayTimeLimit"
|
|
}
|
|
);
|
|
|
|
if (Target.bCompileAgainstEngine)
|
|
{
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Engine",
|
|
"OnlineSubsystemUtils"
|
|
}
|
|
);
|
|
}
|
|
|
|
if (System.IO.Directory.Exists(System.IO.Path.Combine(Target.UEThirdPartySourceDirectory, "Tencent", "WeGame")))
|
|
{
|
|
AddEngineThirdPartyPrivateDynamicDependencies(Target, "WeGame");
|
|
PublicIncludePathModuleNames.Add("WeGame");
|
|
PublicDefinitions.Add("WITH_TENCENTSDK=1");
|
|
}
|
|
else
|
|
{
|
|
PublicDefinitions.Add("WITH_TENCENTSDK=0");
|
|
}
|
|
|
|
if (System.IO.Directory.Exists(System.IO.Path.Combine(EngineDirectory, "Restricted/NotForLicensees/Source/ThirdParty/Tencent")))
|
|
{
|
|
AddEngineThirdPartyPrivateDynamicDependencies(Target, "Tencent");
|
|
PublicIncludePathModuleNames.Add("Tencent");
|
|
}
|
|
|
|
// Don't want to introduce Tencent dependency when building the base editor
|
|
PrecompileForTargets = PrecompileTargetsType.None;
|
|
}
|
|
}
|