mirror of
https://github.com/storytold/UnrealZeroMQ.git
synced 2026-10-20 07:44:54 +00:00
linux support
This commit is contained in:
@@ -26,4 +26,4 @@ UE_LOG(LogTemp, Log, TEXT("ZeroMQ version: v%d.%d.%d), major, minor, patch);
|
|||||||
|
|
||||||
## Support
|
## Support
|
||||||
* Windows (x64 and x86)
|
* Windows (x64 and x86)
|
||||||
* Linux (maybe...)
|
* Linux
|
||||||
|
|||||||
@@ -35,7 +35,8 @@ public class ZeroMQ : ModuleRules
|
|||||||
staticLibrary = Path.Combine(ZeroMQRootPath, "Windows", "x86", "libzmq-v141-mt-s-4_3_2.lib");
|
staticLibrary = Path.Combine(ZeroMQRootPath, "Windows", "x86", "libzmq-v141-mt-s-4_3_2.lib");
|
||||||
break;
|
break;
|
||||||
case UnrealTargetPlatform.Linux:
|
case UnrealTargetPlatform.Linux:
|
||||||
staticLibrary = Path.Combine(ZeroMQRootPath, "Linux", "libzmq.a");
|
staticLibrary = Path.Combine(ZeroMQRootPath, "Linux", "libzmq.so");
|
||||||
|
PublicAdditionalLibraries.Add("stdc++");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Console.WriteLine("unsupported target platform: %s", Target.Platform);
|
Console.WriteLine("unsupported target platform: %s", Target.Platform);
|
||||||
@@ -43,11 +44,8 @@ public class ZeroMQ : ModuleRules
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Target.Configuration == UnrealTargetConfiguration.Development)
|
bEnableExceptions = true;
|
||||||
{
|
|
||||||
bEnableExceptions = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
Console.WriteLine("Using ZeroMQ static library: {0}", staticLibrary);
|
Console.WriteLine("Using ZeroMQ static library: {0}", staticLibrary);
|
||||||
PublicAdditionalLibraries.Add(staticLibrary);
|
PublicAdditionalLibraries.Add(staticLibrary);
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user