89 lines
1.6 KiB
C#
89 lines
1.6 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
|
|
public class SparseVolumeTexture : ModuleRules
|
|
{
|
|
public SparseVolumeTexture(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PublicDependencyModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
"Core",
|
|
"Projects",
|
|
"Engine",
|
|
"Renderer",
|
|
"RenderCore",
|
|
"Slate",
|
|
"SlateCore",
|
|
"ApplicationCore",
|
|
"ToolWidgets",
|
|
}
|
|
);
|
|
|
|
PrivateIncludePathModuleNames.AddRange(
|
|
new string[] {
|
|
"AssetRegistry",
|
|
"AssetTools",
|
|
"EditorWidgets",
|
|
}
|
|
);
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"RHI",
|
|
"CoreUObject",
|
|
"InputCore",
|
|
"Settings",
|
|
}
|
|
);
|
|
|
|
if (Target.bBuildEditor)
|
|
{
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
"MainFrame",
|
|
"EditorFramework",
|
|
"UnrealEd"
|
|
}
|
|
);
|
|
}
|
|
|
|
// Specific to OpenVDB support
|
|
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Windows))
|
|
{
|
|
bUseRTTI = true;
|
|
bDisableAutoRTFMInstrumentation = true; // AutoRTFM cannot be used with exceptions
|
|
bEnableExceptions = true;
|
|
PublicDefinitions.Add("OPENVDB_AVAILABLE=1");
|
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target,
|
|
"IntelTBB",
|
|
"Blosc",
|
|
"zlib",
|
|
"Boost",
|
|
"OpenVDB"
|
|
);
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Linux)
|
|
{
|
|
bUseRTTI = false;
|
|
bEnableExceptions = false;
|
|
PublicDefinitions.Add("OPENVDB_AVAILABLE=1");
|
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target,
|
|
"IntelTBB",
|
|
"Blosc",
|
|
"zlib",
|
|
"Boost",
|
|
"OpenVDB"
|
|
);
|
|
}
|
|
else
|
|
{
|
|
PublicDefinitions.Add("OPENVDB_AVAILABLE=0");
|
|
}
|
|
}
|
|
}
|