Skip to content

Commit

Permalink
Packaging dynamic library for Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpreussner committed May 29, 2017
1 parent ffd7596 commit 0f3937f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Source/NdiMedia/NdiMedia.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,21 @@ public NdiMedia(ReadOnlyTargetRules Target) : base(Target)
{
string LibDir = Path.Combine(NdiDir, "lib", "linux", "x86_64-linux-gnu-5.4");
string LibPath = Path.Combine(LibDir, "libndi.a");
string DllPath = Path.Combine(LibDir, "libndi.so.1.0.1");

PublicAdditionalLibraries.Add(LibPath);
PublicAdditionalLibraries.Add("stdc++");
RuntimeDependencies.Add(new RuntimeDependency(DllPath));
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
string LibDir = Path.Combine(NdiDir, "lib", "apple", "x64");
string LibPath = Path.Combine(LibDir, "libndi.dylib");
string DllPath = Path.Combine(LibDir, "libndi.dylib");

PublicLibraryPaths.Add(LibDir);
PublicAdditionalLibraries.Add(LibPath);
PublicDelayLoadDLLs.Add(LibPath);
RuntimeDependencies.Add(new RuntimeDependency(LibPath));
PublicAdditionalLibraries.Add(DllPath);
PublicDelayLoadDLLs.Add(DllPath);
RuntimeDependencies.Add(new RuntimeDependency(DllPath));
}
else if (Target.Platform == UnrealTargetPlatform.Win32)
{
Expand Down

0 comments on commit 0f3937f

Please sign in to comment.