2022-02-15 04:30:27 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
public class Unsync : ModuleRules
|
|
|
|
|
{
|
|
|
|
|
public Unsync(ReadOnlyTargetRules Target) : base(Target)
|
|
|
|
|
{
|
|
|
|
|
CppStandard = CppStandardVersion.Cpp20;
|
|
|
|
|
bUseUnity = false;
|
|
|
|
|
bEnableExceptions = true;
|
2022-02-22 02:09:06 -05:00
|
|
|
bUseRTTI = true; // Needed by CLI11 library
|
2022-02-15 04:30:27 -05:00
|
|
|
|
|
|
|
|
PrivateIncludePaths.Add(Path.Combine(ModuleDirectory, "ThirdParty"));
|
|
|
|
|
|
|
|
|
|
PrivateDefinitions.Add("UNSYNC_USE_DEBUG_HEAP=1");
|
|
|
|
|
|
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
|
|
|
{
|
|
|
|
|
PrivateDefinitions.Add("UNSYNC_PLATFORM_WINDOWS=1");
|
|
|
|
|
PrivateDefinitions.Add("UNSYNC_PLATFORM_UNIX=0");
|
|
|
|
|
PrivateDefinitions.Add("NOMINMAX=1");
|
2022-02-24 06:20:58 -05:00
|
|
|
PrivateDefinitions.Add("WIN32_LEAN_AND_MEAN=1");
|
|
|
|
|
PrivateDefinitions.Add("_SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING=1");
|
|
|
|
|
PrivateDefinitions.Add("_CRT_SECURE_NO_WARNINGS=1");
|
|
|
|
|
PrivateDefinitions.Add("_WINSOCK_DEPRECATED_NO_WARNINGS=1");
|
|
|
|
|
PrivateDefinitions.Add("_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING=1");
|
2022-02-15 04:30:27 -05:00
|
|
|
}
|
|
|
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac || Target.Platform == UnrealTargetPlatform.Linux)
|
|
|
|
|
{
|
|
|
|
|
PrivateDefinitions.Add("UNSYNC_PLATFORM_WINDOWS=0");
|
|
|
|
|
PrivateDefinitions.Add("UNSYNC_PLATFORM_UNIX=1");
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-11 20:20:25 -04:00
|
|
|
if (Target.Platform == UnrealTargetPlatform.Linux)
|
|
|
|
|
{
|
|
|
|
|
PublicSystemLibraries.Add("dl");
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-22 02:09:06 -05:00
|
|
|
PrivateDependencyModuleNames.Add("BLAKE3");
|
2022-02-15 11:23:15 -05:00
|
|
|
PrivateDependencyModuleNames.Add("CLI11");
|
|
|
|
|
PrivateDependencyModuleNames.Add("fmt");
|
|
|
|
|
PrivateDependencyModuleNames.Add("http_parser");
|
|
|
|
|
PrivateDependencyModuleNames.Add("LibreSSL");
|
|
|
|
|
PrivateDependencyModuleNames.Add("zstd");
|
2022-02-15 04:30:27 -05:00
|
|
|
}
|
|
|
|
|
}
|