try to offload android to sgcore/sgconnect third-party libraries and drop linux third-party libraries for earlier versions of the engine prior to 4.27
This commit is contained in:
@@ -34,9 +34,31 @@
|
||||
|
||||
|
||||
#include "SGConnectImpl/SGExportedFunctions.h"
|
||||
|
||||
#include "Templates/UnrealTemplate.h"
|
||||
|
||||
#if PLATFORM_ANDROID
|
||||
#include "SGBuildHacks/SGInclude_Connect_Android.h"
|
||||
#endif /* PLATFORM_ANDROID */
|
||||
|
||||
#include "SGConnectImpl/SGConnectImpl.h"
|
||||
#include "SGInterop/SGIC_FString.h"
|
||||
#include "SGInterop/SGIC_JNIEnv_Ptr.h"
|
||||
|
||||
/*******************************************************************************
|
||||
* Exceptional function calls
|
||||
******************************************************************************/
|
||||
|
||||
#if PLATFORM_ANDROID
|
||||
int32 SGConnectImpl_Android_Initialize(void* Env)
|
||||
{
|
||||
return SGConnect::Android::Initialize(StaticCast<FSGIC_JNIEnv_Ptr*>(Env)->Ptr);
|
||||
}
|
||||
#endif /* PLATFORM_ANDROID */
|
||||
|
||||
/*******************************************************************************
|
||||
* SGConnectImpl.h
|
||||
******************************************************************************/
|
||||
|
||||
int32 SGConnect_Init()
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
check whether boolean type is supported by the compiler or not. */
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <CoreTypes.h>
|
||||
#include "CoreTypes.h"
|
||||
|
||||
/* Check at compile time whether the C compiler has support for bool, true,
|
||||
and false macros. */
|
||||
@@ -64,11 +64,25 @@ static_assert(__bool_true_false_are_defined, "Error: bool, true, and false are n
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* SGConnect.h */
|
||||
/*******************************************************************************
|
||||
* Exceptional function calls
|
||||
******************************************************************************/
|
||||
|
||||
#if PLATFORM_ANDROID
|
||||
SENSEGLOVECONNECTIMPL_PUBLIC_API int32 SGConnectImpl_Android_Initialize(void* Env);
|
||||
#endif /* PLATFORM_ANDROID */
|
||||
|
||||
/*******************************************************************************
|
||||
* SGConnectImpl.h
|
||||
******************************************************************************/
|
||||
|
||||
SENSEGLOVECONNECTIMPL_PUBLIC_API int32 SGConnect_Init();
|
||||
SENSEGLOVECONNECTIMPL_PUBLIC_API int32 SGConnect_Dispose();
|
||||
SENSEGLOVECONNECTIMPL_PUBLIC_API void SGConnect_GetLibraryVersion(void* OutVersion);
|
||||
|
||||
/*******************************************************************************
|
||||
******************************************************************************/
|
||||
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
Reference in New Issue
Block a user