Merge branch 'feature/linux' into develop
This commit is contained in:
38
xpcPlugin/CMakeLists.txt
Normal file
38
xpcPlugin/CMakeLists.txt
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
||||||
|
|
||||||
|
project(XPlaneConnect)
|
||||||
|
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
include_directories(SDK/CHeaders/XPLM)
|
||||||
|
include_directories(../C/src)
|
||||||
|
|
||||||
|
add_definitions(-DXPLM200 -DLIN=1)
|
||||||
|
|
||||||
|
SET(CMAKE_C_COMPILER gcc)
|
||||||
|
SET(CMAKE_CXX_COMPILER g++)
|
||||||
|
|
||||||
|
add_library(xpc64 SHARED XPCPlugin.cpp
|
||||||
|
DataManager.cpp
|
||||||
|
DataMaps.cpp
|
||||||
|
Drawing.cpp
|
||||||
|
Log.cpp
|
||||||
|
Message.cpp
|
||||||
|
MessageHandlers.cpp
|
||||||
|
UDPSocket.cpp)
|
||||||
|
set_target_properties(xpc64 PROPERTIES PREFIX "" SUFFIX ".xpl")
|
||||||
|
set_target_properties(xpc64 PROPERTIES COMPILE_FLAGS "-std=gnu++11" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning")
|
||||||
|
|
||||||
|
add_library(xpc32 SHARED XPCPlugin.cpp
|
||||||
|
DataManager.cpp
|
||||||
|
DataMaps.cpp
|
||||||
|
Drawing.cpp
|
||||||
|
Log.cpp
|
||||||
|
Message.cpp
|
||||||
|
MessageHandlers.cpp
|
||||||
|
UDPSocket.cpp)
|
||||||
|
set_target_properties(xpc32 PROPERTIES PREFIX "" SUFFIX ".xpl")
|
||||||
|
set_target_properties(xpc32 PROPERTIES COMPILE_FLAGS "-std=gnu++11 -m32" LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning -m32")
|
||||||
|
|
||||||
|
# Switch install targets when uncommenting the 32 bit line above.
|
||||||
|
install(TARGETS xpc64 DESTINATION XPlaneConnect/64 RENAME lin.xpl)
|
||||||
|
install(TARGETS xpc32 DESTINATION XPlaneConnect/ RENAME lin.xpl)
|
||||||
@@ -22,15 +22,12 @@
|
|||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <cstring>
|
||||||
//OpenGL includes
|
//OpenGL includes
|
||||||
#if IBM
|
#if IBM
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
#if __GNUC__
|
|
||||||
#include <OpenGL/gl.h>
|
|
||||||
#else
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace XPC
|
namespace XPC
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
#include "Drawing.h"
|
#include "Drawing.h"
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
namespace XPC
|
namespace XPC
|
||||||
{
|
{
|
||||||
std::unordered_map<std::string, MessageHandlers::ConnectionInfo> MessageHandlers::connections;
|
std::unordered_map<std::string, MessageHandlers::ConnectionInfo> MessageHandlers::connections;
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#include "UDPSocket.h"
|
#include "UDPSocket.h"
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
namespace XPC
|
namespace XPC
|
||||||
{
|
{
|
||||||
UDPSocket::UDPSocket(unsigned short recvPort)
|
UDPSocket::UDPSocket(unsigned short recvPort)
|
||||||
|
|||||||
@@ -65,6 +65,7 @@
|
|||||||
#include "XPLMProcessing.h"
|
#include "XPLMProcessing.h"
|
||||||
|
|
||||||
// System Includes
|
// System Includes
|
||||||
|
#include <cstring>
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <mach/mach_time.h>
|
#include <mach/mach_time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
BIN
xpcPlugin/XPlaneConnect/64/lin.xpl
Executable file
BIN
xpcPlugin/XPlaneConnect/64/lin.xpl
Executable file
Binary file not shown.
BIN
xpcPlugin/XPlaneConnect/lin.xpl
Executable file
BIN
xpcPlugin/XPlaneConnect/lin.xpl
Executable file
Binary file not shown.
Reference in New Issue
Block a user