46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System.IO;
|
|
using EpicGames.Core;
|
|
|
|
namespace UnrealBuildTool.Rules
|
|
{
|
|
public class GeneSplicerLibTest : ModuleRules
|
|
{
|
|
public GeneSplicerLibTest(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
bUseUnity = false; // A windows include is preprocessing some method names causing compile failures.
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
if (Target.Architecture != UnrealArch.Arm64)
|
|
{
|
|
PrivateDefinitions.Add("GS_BUILD_WITH_SSE=1");
|
|
}
|
|
PublicDefinitions.Add("GTEST_OS_WINDOWS=1");
|
|
}
|
|
|
|
string GeneSplicerLibPath = Path.GetFullPath(Path.Combine(ModuleDirectory, "../GeneSplicerLib"));
|
|
|
|
if (Target.LinkType == TargetLinkType.Monolithic)
|
|
{
|
|
PublicDependencyModuleNames.Add("GeneSplicerLib");
|
|
PrivateIncludePaths.Add(Path.Combine(GeneSplicerLibPath, "Private"));
|
|
}
|
|
else
|
|
{
|
|
PrivateDefinitions.Add("GENESPLICER_MODULE_DISCARD");
|
|
ConditionalAddModuleDirectory(new DirectoryReference(GeneSplicerLibPath));
|
|
}
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
"Core",
|
|
"GoogleTest",
|
|
"RigLogicLib"
|
|
}
|
|
);
|
|
}
|
|
}
|
|
} |