Skip to content

Instantly share code, notes, and snippets.

@DanielKocan
Created January 23, 2025 12:42
Show Gist options
  • Select an option

  • Save DanielKocan/d0e9d754b54a8c9daa7add5d460b2d64 to your computer and use it in GitHub Desktop.

Select an option

Save DanielKocan/d0e9d754b54a8c9daa7add5d460b2d64 to your computer and use it in GitHub Desktop.
// Copyright Epic Games, Inc. All Rights Reserved.
using System.IO;
using UnrealBuildTool;
public class AwesomeAIPlugin : ModuleRules
{
public AwesomeAIPlugin(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(
new string[] {
// ... add public include paths required here ...
Path.Combine(ModuleDirectory, "ThirdParty", "headers") // Add headers directory
}
);
PrivateIncludePaths.AddRange(
new string[] {
// ... add other private include paths required here ...
}
);
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
// ... add other public dependencies that you statically link with here ...
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CoreUObject",
"Engine",
"Slate",
"SlateCore",
// ... add private dependencies that you statically link with here ...
}
);
DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...
}
);
// Include llama.cpp libraries
PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "ThirdParty", "llama.lib"));
PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "ThirdParty", "ggml.lib"));
PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "ThirdParty", "ggml-base.lib"));
PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "ThirdParty", "ggml-cpu.lib"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment