mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
refs #272 added the necessary lines in xbus.pro to compile libxplanemp
This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
|
||||||
#include "plugin.h"
|
#include "plugin.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include <XPLM/XPLMPlanes.h>
|
#include <XPLM/XPLMPlanes.h>
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#ifndef BLACKSIM_XBUS_UTILS_H
|
#ifndef BLACKSIM_XBUS_UTILS_H
|
||||||
#define BLACKSIM_XBUS_UTILS_H
|
#define BLACKSIM_XBUS_UTILS_H
|
||||||
|
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
|
||||||
#include <XPLM/XPLMDefs.h>
|
#include <XPLM/XPLMDefs.h>
|
||||||
#include <XPLM/XPLMPlugin.h>
|
#include <XPLM/XPLMPlugin.h>
|
||||||
#include <XPLM/XPLMProcessing.h>
|
#include <XPLM/XPLMProcessing.h>
|
||||||
|
|||||||
@@ -19,15 +19,44 @@ INCLUDEPATH += . ../../src
|
|||||||
SOURCES += *.cpp
|
SOURCES += *.cpp
|
||||||
HEADERS += *.h
|
HEADERS += *.h
|
||||||
|
|
||||||
|
# Using the $$files function so we can remove some with -= below
|
||||||
|
SOURCES += $$files(libxplanemp/src/*.cpp)
|
||||||
|
HEADERS += $$files(libxplanemp/src/*.h) $$files(libxplanemp/include/*.h)
|
||||||
|
INCLUDEPATH += ./libxplanemp ./libxplanemp/include ./libxplanemp/src
|
||||||
|
|
||||||
|
# CSLLoaderThread not used, see libxplanemp/README.markdown
|
||||||
|
SOURCES -= libxplanemp/src/CSLLoaderThread.cpp
|
||||||
|
HEADERS -= libxplanemp/src/CSLLoaderThread.h
|
||||||
|
|
||||||
|
# PlatformUtils also not used
|
||||||
|
SOURCES -= $$files(libxplanemp/src/PlatformUtils.*.cpp)
|
||||||
|
HEADERS -= libxplanemp/src/PlatformUtils.h
|
||||||
|
|
||||||
|
# Externals required by libxplanemp
|
||||||
|
CONFIG += opengl
|
||||||
|
win32-msvc* {
|
||||||
|
CONFIG(debug, debug|release): LIBS += -lpngd -lzd
|
||||||
|
CONFIG(release, debug|release): LIBS += -lpng -lz
|
||||||
|
}
|
||||||
|
else: LIBS += -lpng -lz
|
||||||
|
|
||||||
|
win32-msvc*: DEFINES += _CRT_SECURE_NO_WARNINGS
|
||||||
|
|
||||||
|
|
||||||
#win32:!win32-g++*: PRE_TARGETDEPS += ../../../../lib/blackmisc.lib
|
#win32:!win32-g++*: PRE_TARGETDEPS += ../../../../lib/blackmisc.lib
|
||||||
#win32:!win32-g++*: PRE_TARGETDEPS += ../../../../lib/blackcore.lib
|
#win32:!win32-g++*: PRE_TARGETDEPS += ../../../../lib/blackcore.lib
|
||||||
|
|
||||||
|
|
||||||
# Required by X-Plane SDK
|
# Required by X-Plane SDK and libxplanemp
|
||||||
|
win32:DEFINES += IBM=1
|
||||||
|
linux:DEFINES += LIN=1
|
||||||
|
macx:DEFINES += APL=1
|
||||||
DEFINES += XPLM200=1
|
DEFINES += XPLM200=1
|
||||||
win32:DEFINES += IBM
|
# XPLM210 is required for new features in libxplanemp,
|
||||||
linux:DEFINES += LIN
|
# but means we lose support for X-Plane 9 and earlier versions.
|
||||||
macx:DEFINES += APL
|
# TODO add config option to select minimum X-Plane version when building
|
||||||
|
DEFINES += XPLM210=1
|
||||||
|
|
||||||
|
|
||||||
# X-Plane plugins must follow a prescribed filename and directory structure.
|
# X-Plane plugins must follow a prescribed filename and directory structure.
|
||||||
TARGET_EXT = .xpl
|
TARGET_EXT = .xpl
|
||||||
@@ -44,3 +73,7 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
include (../../libraries.pri)
|
include (../../libraries.pri)
|
||||||
|
|
||||||
|
# TODO refactor .pri files into common_pre.pri and common_post.pri
|
||||||
|
# to sort out this include order fiasco
|
||||||
|
INCLUDEPATH += $$EXTERNALDIR/include/XPLM
|
||||||
|
|||||||
Reference in New Issue
Block a user