// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. using UnrealBuildTool; public class HTTP : ModuleRules { public HTTP(ReadOnlyTargetRules Target) : base(Target) { Definitions.Add("HTTP_PACKAGE=1"); PrivateIncludePaths.AddRange( new string[] { "Runtime/Online/HTTP/Private", } ); PrivateDependencyModuleNames.AddRange( new string[] { "Core", } ); if (Target.Platform == UnrealTargetPlatform.Win32 || Target.Platform == UnrealTargetPlatform.Win64) { AddEngineThirdPartyPrivateStaticDependencies(Target, "WinInet"); AddEngineThirdPartyPrivateStaticDependencies(Target, "WinHttp"); AddEngineThirdPartyPrivateStaticDependencies(Target, "libcurl"); PrivateDependencyModuleNames.Add("SSL"); } else if (Target.Platform == UnrealTargetPlatform.Linux || Target.Platform == UnrealTargetPlatform.Android || Target.Platform == UnrealTargetPlatform.Switch) { AddEngineThirdPartyPrivateStaticDependencies(Target, "libcurl"); PrivateDependencyModuleNames.Add("SSL"); } else { Definitions.Add("WITH_SSL=0"); Definitions.Add("WITH_LIBCURL=0"); } if (Target.Platform == UnrealTargetPlatform.HTML5) { if (Target.Architecture == "-win32") { PrivateDependencyModuleNames.Add("HTML5Win32"); } else { PrivateDependencyModuleNames.Add("HTML5JS"); } } if (Target.Platform == UnrealTargetPlatform.IOS || Target.Platform == UnrealTargetPlatform.TVOS || Target.Platform == UnrealTargetPlatform.Mac) { PublicFrameworks.Add("Security"); } } }