Skip to content

Commit

Permalink
Funapi 플러그인: 윈도우 4.22 버전에서 Openssl 라이브러리 충돌로 인해 패키징 실패하는 문제 수정.
Browse files Browse the repository at this point in the history
플러그인에서 가지고 있는 curl 라이브러리와 언리얼의 OpenSSL 라이브러리의 심볼이 충돌해
언리얼의 curl, OpenSSL, websocket 모듈을 가지고와 사용하는 방식으로 변경.

위의 수정을 통해 코코스 빌드와 라이브러리가 분리 되지만 언리얼 라이브러리에 변경이 생기더라도 호환됨.

Change-Id: Ica9ae34c69c5f3332947902d5c27716140a4ed10
  • Loading branch information
SungjinB committed Oct 16, 2019
1 parent bc3c905 commit fb48931
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Plugins/Funapi/Funapi.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion" : 3,
"Version" : 1,
"VersionName" : "1.166",
"VersionName" : "1.167",
"FriendlyName" : "Funapi Plugin",
"Description" : "Funapi Plugin UE4",
"Category" : "iFunFactory",
Expand Down
19 changes: 10 additions & 9 deletions Plugins/Funapi/Source/Funapi/Funapi.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public Funapi(ReadOnlyTargetRules Target) : base(Target)
);
}



if (Target.Platform == UnrealTargetPlatform.PS4) {
PublicDefinitions.Add("FUNAPI_HAVE_RPC=0");
}
Expand All @@ -49,6 +47,16 @@ public Funapi(ReadOnlyTargetRules Target) : base(Target)
Target.Platform == UnrealTargetPlatform.Win64) {
PublicDefinitions.Add("FUNAPI_PLATFORM_WINDOWS=1");
PublicDefinitions.Add("FUNAPI_UE4_PLATFORM_WINDOWS=1");

PrivateDependencyModuleNames.AddRange(
new string[]
{
"OpenSSL",
"libcurl",
"libWebSockets"
// ... add private dependencies that you statically link with here ...
}
);
}

if (Target.Platform == UnrealTargetPlatform.Linux) {
Expand Down Expand Up @@ -156,11 +164,7 @@ public Funapi(ReadOnlyTargetRules Target) : base(Target)
LibPath += "lib/Windows/x86";
PublicLibraryPaths.Add(LibPath);

PublicDefinitions.Add("CURL_STATICLIB=1");
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libcurl_a.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libeay32.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libsodium.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "websockets_static.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libzstd_static.lib"));
}
else if (Target.Platform == UnrealTargetPlatform.Win64)
Expand All @@ -170,10 +174,7 @@ public Funapi(ReadOnlyTargetRules Target) : base(Target)
LibPath += "lib/Windows/x64";
PublicLibraryPaths.Add(LibPath);

PublicDefinitions.Add("CURL_STATICLIB=1");
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libcurl_a.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libsodium.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "websockets_static.lib"));
PublicAdditionalLibraries.Add(Path.Combine(LibPath, "libzstd_static.lib"));
}
else if (Target.Platform == UnrealTargetPlatform.Android)
Expand Down
2 changes: 1 addition & 1 deletion Plugins/Funapi/Source/Funapi/Private/funapi_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace fun {
enum class FunapiVersion : int
{
kProtocolVersion = 1,
kPluginVersion = 166,
kPluginVersion = 167,
};

}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Funapi plugin 은 다음 버전의 Unreal engine 4 를 지원합니다.

| Unreal engine 4 버전 | Windows | macOS | Android | iOS |
|:--------------------|:-------:|:-------:|:-------:|--------:|
| 4.19 | o | o |o | o |
| 4.19 | | o |o | o |
| 4.20 | o | o |o | o |
| 4.21 | o | o |o | o |
| 4.22 | | o |o | o |
| 4.22 | o | o |o | o |

* Windows 4.22 환경에서 패키징이 안 되는 문제가 있어 확인중에 있습니다.
* Windows 4.19 환경에서 패키징이 안 되는 문제가 있어 확인중에 있습니다.

**지원 엔진 버전 이외의 플러그인 동작은 컴파일 및 패키징 단계에서 오류가 발생할수 있습니다.**

Expand Down
2 changes: 1 addition & 1 deletion funapi_plugin_ue4.uproject
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"FileVersion": 3,
"EngineAssociation": "4.21",
"EngineAssociation": "4.22",
"Category": "",
"Description": "",
"Modules": [
Expand Down

0 comments on commit fb48931

Please sign in to comment.