-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGradientspaceIO.Build.cs
More file actions
55 lines (45 loc) · 1.72 KB
/
GradientspaceIO.Build.cs
File metadata and controls
55 lines (45 loc) · 1.72 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
55
// Copyright Gradientspace Corp. All Rights Reserved.
using System.IO;
using UnrealBuildTool;
public class GradientspaceIO : ModuleRules
{
public GradientspaceIO(ReadOnlyTargetRules Target) : base(Target)
{
//#UEPLUGINTOOL
string PluginDirectory = Path.Combine(ModuleDirectory, "..", "..");
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("GSIO_USING_DEBUG");
// if we are building inside UE, some UE versions of defines/etc are enabled via this define
if (bUsingPrecompiledGSLibs == false)
PublicDefinitions.Add("GSIO_EMBEDDED_UE_BUILD");
UnsafeTypeCastWarningLevel = WarningLevel.Error;
PublicDependencyModuleNames.AddRange(
new string[] {
"Core",
"GeometryCore",
"GradientspaceCore"
});
PrivateDependencyModuleNames.AddRange(
new string[] {
"Projects"
});
// add dependency on external-DLLs module if it's in use
if (bUsingPrecompiledGSLibs)
{
PublicDependencyModuleNames.Add("GradientspaceBinary");
}
}
}