From 8341e867661cb29770b3608f78388cafa48fd8b6 Mon Sep 17 00:00:00 2001 From: Anthony Berg Date: Thu, 11 Apr 2024 11:44:03 +0100 Subject: [PATCH] build(plugin): enable XPLM APIs from previous versions --- plugin/CMakeLists.txt | 2 +- plugin/main.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index 59716f9..8159198 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt @@ -5,7 +5,7 @@ project(XPL-Checklist-Connector CXX) set(CMAKE_CXX_STANDARD 17) # Set compile options for XPLM -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXPLM401=1 -fvisibility=hidden -shared -rdynamic -nodefaultlibs -undefined_warning -lGL -lGLU") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXPLM200=1 -DXPLM210=1 -DXPLM300=1 -DXPLM301=1 -DXPLM302=1 -DXPLM303=1 -DXPLM401=1 -fvisibility=hidden -shared -rdynamic -nodefaultlibs -undefined_warning -lGL -lGLU") # Set output directory in X-Plane plugin structure set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/lin_x64) diff --git a/plugin/main.cpp b/plugin/main.cpp index f5847d6..ab2db37 100644 --- a/plugin/main.cpp +++ b/plugin/main.cpp @@ -1,4 +1,5 @@ -#include +#include "XPLMDisplay.h" +#include "XPLMGraphics.h" #if IBM #include @@ -27,7 +28,7 @@ #endif #ifndef XPLM401 - #error This is made to be compiled against the XPLM400 SDK + #error This is made to be compiled against the XPLM401 SDK #endif PLUGIN_API int XPluginStart(char * outName, char * outSignature, char * outDescription) {