SkyPortal-plugin/Source/SkyPortal/SkyPortal.Build.cs

88 lines
2.4 KiB
C#
Raw Normal View History

2024-09-17 15:50:37 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
2024-09-18 14:54:36 +00:00
using System.IO;
2024-09-17 15:50:37 +00:00
using UnrealBuildTool;
public class SkyPortal : ModuleRules
{
2024-09-18 10:25:01 +00:00
public SkyPortal(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
2024-09-18 14:54:36 +00:00
bEnableUndefinedIdentifierWarnings = false;
CppStandard = CppStandardVersion.Cpp17;
IsRedistributableOverride = true; ;
bLegalToDistributeObjectCode = true;
bPrecompile = true;
PrecompileForTargets = PrecompileTargetsType.Any;
if (Target.Platform == UnrealTargetPlatform.Linux)
{
PublicIncludePaths.AddRange(new[] {
"/usr/include",
"/usr/include/x86_64-linux-gnu"
});
PublicSystemLibraries.Add("udev"); // Link with libudev on Linux
PublicSystemLibraryPaths.AddRange(new[] {
"/usr/lib",
"/usr/lib/x86_64-linux-gnu",
"/usr/lib/aarch64-linux-gnu",
"/usr/local/lib",
"/usr/local/lib/x86_64-linux-gnu",
"/usr/local/lib/aarch64-linux-gnu"
});
}
else if (Target.Platform == UnrealTargetPlatform.Win64)
{
PublicAdditionalLibraries.Add("hid.lib"); // Use Windows HID library
}
string HIDAPIPath = Path.Combine(ModuleDirectory, "../../ThirdParty/hidapi/include");
2024-09-18 10:25:01 +00:00
PublicIncludePaths.AddRange(
new string[] {
2024-09-18 14:54:36 +00:00
HIDAPIPath,
}
2024-09-18 10:25:01 +00:00
);
PrivateIncludePaths.AddRange(
new string[] {
2024-09-17 15:50:37 +00:00
// ... add other private include paths required here ...
}
2024-09-18 10:25:01 +00:00
);
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
"CoreUObject",
2024-09-18 13:30:30 +00:00
"Engine"
2024-09-17 15:50:37 +00:00
// ... add other public dependencies that you statically link with here ...
}
2024-09-18 10:25:01 +00:00
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CoreUObject",
"Engine",
"Slate",
"SlateCore",
2024-09-17 15:50:37 +00:00
// ... add private dependencies that you statically link with here ...
}
2024-09-18 10:25:01 +00:00
);
DynamicallyLoadedModuleNames.AddRange(
new string[]
{
2024-09-17 15:50:37 +00:00
// ... add any modules that your module loads dynamically here ...
}
2024-09-18 10:25:01 +00:00
);
}
2024-09-17 15:50:37 +00:00
}