Files
UnrealEngineUWP/Engine/Source/ThirdParty/Blosc/Blosc.Build.cs
matt johnson e9e30a01f6 Blosc, OpenVDB: add module rules to support using Blosc and OpenVDB on Mac
#jira UE-153244
#rb none
#preflight 628ee76ac826bd5a7f261654, 628ee895e746de49610cbf24
#fyi devon.penney

[CL 20380557 by matt johnson in ue5-main branch]
2022-05-26 12:27:36 -04:00

41 lines
1.1 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.IO;
using UnrealBuildTool;
public class Blosc : ModuleRules
{
public Blosc(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
bool bDebug = (Target.Configuration == UnrealTargetConfiguration.Debug && Target.bDebugBuildsActuallyUseDebugCRT);
string DeploymentDirectory = Path.Combine(ModuleDirectory, "Deploy", "c-blosc-1.21.0");
PublicIncludePaths.Add(Path.Combine(DeploymentDirectory, "include"));
string LibPostfix = bDebug ? "_d" : "";
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Windows))
{
string LibDirectory = Path.Combine(
DeploymentDirectory,
"VS" + Target.WindowsPlatform.GetVisualStudioCompilerVersionName(),
Target.WindowsPlatform.GetArchitectureSubpath(),
"lib");
PublicAdditionalLibraries.Add(Path.Combine(LibDirectory, "libblosc" + LibPostfix + ".lib"));
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
string LibDirectory = Path.Combine(
DeploymentDirectory,
"Mac",
"lib");
PublicAdditionalLibraries.Add(Path.Combine(LibDirectory, "libblosc" + LibPostfix + ".a"));
}
}
}