-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTPP.Build.cs
30 lines (29 loc) · 1.39 KB
/
TPP.Build.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Type = ModuleType.External;
PublicSystemIncludePaths.Add("D:/ProgramData/anaconda3/include");
if (Target.Platform == UnrealTargetPlatform.Win64)
{
// Add the import library
const string LibPath = "D:/ProgramData/anaconda3/libs/";
foreach(string fileName in Directory.EnumerateFiles(LibPath, "*", SearchOption.AllDirectories))
{
if(fileName.EndsWith(".lib", System.StringComparison.OrdinalIgnoreCase))
{
PublicAdditionalLibraries.Add(Path.Combine(LibPath, fileName));
}
}
// PublicAdditionalLibraries.Add("D:/ProgramData/anaconda3/libs/python311.lib");
// PublicAdditionalLibraries.Add("D:/ProgramData/anaconda3/libs/python3.lib");
PublicRuntimeLibraryPaths.Add("D:/ProgramData/anaconda3");
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
PublicDelayLoadDLLs.Add(Path.Combine(ModuleDirectory, "Mac", "Release", "libExampleLibrary.dylib"));
RuntimeDependencies.Add("$(PluginDir)/Source/ThirdParty/TestFfmpegLibrary/Mac/Release/libExampleLibrary.dylib");
}
else if (Target.Platform == UnrealTargetPlatform.Linux)
{
string ExampleSoPath = Path.Combine("$(PluginDir)", "Binaries", "ThirdParty", "TestFfmpegLibrary", "Linux", "x86_64-unknown-linux-gnu", "libExampleLibrary.so");
PublicAdditionalLibraries.Add(ExampleSoPath);
PublicDelayLoadDLLs.Add(ExampleSoPath);
RuntimeDependencies.Add(ExampleSoPath);
}