-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGradientspaceCore.Build.cs
More file actions
54 lines (43 loc) · 1.62 KB
/
GradientspaceCore.Build.cs
File metadata and controls
54 lines (43 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright Gradientspace Corp. All Rights Reserved.
using System.IO;
using UnrealBuildTool;
public class GradientspaceCore : ModuleRules
{
public GradientspaceCore(ReadOnlyTargetRules Target) : base(Target)
{
//#UEPLUGINTOOL
bool bIsGSDevelopmentBuild = File.Exists(
Path.GetFullPath(Path.Combine(PluginDirectory, "..", "GRADIENTSPACE_DEV_BUILD.txt")));
if (bIsGSDevelopmentBuild) {
PCHUsage = ModuleRules.PCHUsageMode.NoPCHs;
bUseUnity = false;
} else {
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
}
// Determine if we have the precompiled-binaries module
string GSPrecompiledPath = Path.Combine(PluginDirectory, "source", "GradientspaceBinary");
bool bUsingPrecompiledGSLibs = Directory.Exists(GSPrecompiledPath);
// module.cpp uses this to determine which dll path to load from
bool bDebugConfig = (Target.Configuration == UnrealTargetConfiguration.Debug && Target.bDebugBuildsActuallyUseDebugCRT);
if (bDebugConfig)
PrivateDefinitions.Add("GSCORE_USING_DEBUG");
// if we are building inside UE, some UE versions of defines/etc are enabled via this define
if (bUsingPrecompiledGSLibs == false)
PublicDefinitions.Add("GS_EMBEDDED_UE_BUILD");
UnsafeTypeCastWarningLevel = WarningLevel.Error;
PublicDependencyModuleNames.AddRange(
new string[] {
"Core",
"GeometryCore"
});
PrivateDependencyModuleNames.AddRange(
new string[] {
"Projects"
});
// add dependency on external-DLLs module if it's in use
if (bUsingPrecompiledGSLibs)
{
PublicDependencyModuleNames.Add("GradientspaceBinary");
}
}
}