38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
using System.IO;
|
|
using UnrealBuildTool;
|
|
|
|
public class hstherac25Library : ModuleRules
|
|
{
|
|
public hstherac25Library(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
PublicSystemIncludePaths.Add("$(ModuleDir)/Public");
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
// Add the import library
|
|
PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "x64", "Release", "ExampleLibrary.lib"));
|
|
|
|
// Delay-load the DLL, so we can load it from the right place first
|
|
PublicDelayLoadDLLs.Add("ExampleLibrary.dll");
|
|
|
|
// Ensure that the DLL is staged along with the executable
|
|
RuntimeDependencies.Add("$(PluginDir)/Binaries/ThirdParty/hstherac25Library/Win64/ExampleLibrary.dll");
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
{
|
|
PublicDelayLoadDLLs.Add(Path.Combine(ModuleDirectory, "Mac", "Release", "libExampleLibrary.dylib"));
|
|
RuntimeDependencies.Add("$(PluginDir)/Source/ThirdParty/hstherac25Library/Mac/Release/libExampleLibrary.dylib");
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Linux)
|
|
{
|
|
string ExampleSoPath = Path.Combine("$(PluginDir)", "Binaries", "ThirdParty", "hstherac25Library", "Linux", "x86_64-unknown-linux-gnu", "libExampleLibrary.so");
|
|
PublicAdditionalLibraries.Add(ExampleSoPath);
|
|
PublicDelayLoadDLLs.Add(ExampleSoPath);
|
|
RuntimeDependencies.Add(ExampleSoPath);
|
|
}
|
|
}
|
|
}
|