Skip to content

Commit

Permalink
Add Linux specific logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
KGronek-Pubnub committed Jan 24, 2025
1 parent bb9e0cc commit 4efa530
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/PubnubLibrary/Private/Threads/PubnubFunctionThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "Android/AndroidPlatformProcess.h"
#elif PLATFORM_IOS
#include "Ios/IosPlatformProcess.h"
#elif PLATFORM_LINUX
#include "Linux/LinuxPlatformProcess.h"
#else
#error "Platform not supported"
#endif
Expand Down
2 changes: 2 additions & 0 deletions Source/PubnubLibrary/Private/Threads/PubnubLoopingThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "Android/AndroidPlatformProcess.h"
#elif PLATFORM_IOS
#include "Ios/IosPlatformProcess.h"
#elif PLATFORM_LINUX
#include "Linux/LinuxPlatformProcess.h"
#else
#error "Platform not supported"
#endif
Expand Down
7 changes: 7 additions & 0 deletions Source/ThirdParty/sdk/PubNubModule/PubNubModule.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ public PubNubModule(ReadOnlyTargetRules Target) : base(Target)
binary = $"libpubnub.{extention}";
BuildLocation = "lib/ios";
}
else if(Target.Platform == UnrealTargetPlatform.Linux)
{
extention = StaticLink ? "a" : "dylib";
PlatformLib = OpenSsl ? "openssl" : "posix";
binary = $"libpubnub.{extention}";
BuildLocation = "lib/linux";
}
else
{
System.Console.WriteLine("Error - this target platform is not supported");
Expand Down

0 comments on commit 4efa530

Please sign in to comment.