Enable P3D-v4 64 bit build

Summary:
This commit enables P3D-v4 for 64 bit including all dependent libraries.
Those binaries are not yet installed, since they are considered
experimental.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Differential Revision: https://dev.swift-project.org/D30
This commit is contained in:
Roland Winklmeier
2017-06-29 13:38:25 +02:00
committed by Mathew Sutcliffe
parent d15b6446e3
commit 984b30aef3
10 changed files with 40 additions and 15 deletions

View File

@@ -77,10 +77,11 @@ msvc:!llvm: QMAKE_CXXFLAGS *= /bigobj
win32-g++: QMAKE_CXXFLAGS_DEBUG += -Og
################################
# FSX, P3D or FS9 on 32bit Windows only
# FSX or FS9 on 32bit Windows only
################################
equals(WORD_SIZE,64)|!win32: BLACK_CONFIG -= FSX FS9 P3D
equals(WORD_SIZE,64)|!win32: BLACK_CONFIG -= FSX FS9
equals(WORD_SIZE,32)|!win32: BLACK_CONFIG -= P3D
################################
# For BlackMisc::getStackTrace

View File

@@ -8,11 +8,10 @@ TEMPLATE = lib
CONFIG += plugin shared
CONFIG += blackmisc blackcore
LIBS += -lsimulatorfscommon -lfsuipc -luuid
DEPENDPATH += . $$SourceRoot/src
INCLUDEPATH += . $$SourceRoot/src
LIBS += -lsimulatorfscommon -lfsuipc -luuid
LIBS += -ldxguid -lole32
SOURCES += *.cpp

View File

@@ -10,11 +10,12 @@ TEMPLATE = lib
CONFIG += plugin shared
CONFIG += blackmisc blackcore
LIBS += -lsimulatorfscommon -lsimulatorfsxcommon -lfsuipc -lSimConnect
DEPENDPATH += . $$SourceRoot/src
INCLUDEPATH += . $$SourceRoot/src
INCLUDEPATH *= $$EXTERNALSROOT/common/include/simconnect/FSX-XPack
LIBS *= -L$$EXTERNALS_LIB_DIR/FSX-XPack
LIBS *= -lsimulatorfscommon -lsimulatorfsxcommon -lfsuipc -lSimConnect
LIBS += -ldxguid -lole32
SOURCES += *.cpp

View File

@@ -15,7 +15,6 @@
#include "blackcore/simulator.h"
#include "blackmisc/simulation/simulatorplugininfo.h"
#include <simconnect/SimConnect.h>
#include <QObject>
#include <QtPlugin>

View File

@@ -11,6 +11,13 @@ CONFIG += blackmisc blackcore blackgui
DEPENDPATH += . $$SourceRoot/src
INCLUDEPATH += . $$SourceRoot/src
equals(WORD_SIZE,64) {
INCLUDEPATH *= $$EXTERNALSROOT/common/include/simconnect/P3D-v4
}
equals(WORD_SIZE,32) {
INCLUDEPATH *= $$EXTERNALSROOT/common/include/simconnect/FSX-XPack
}
SOURCES += *.cpp
HEADERS += *.h
FORMS += *.ui

View File

@@ -18,7 +18,7 @@
#define NOMINMAX
#endif
#include "blackmisc/aviation/aircraftlights.h"
#include <simconnect/SimConnect.h>
#include <SimConnect.h>
#include <windows.h>
#include <algorithm>
#include <QString>

View File

@@ -26,7 +26,7 @@
#include "blackmisc/network/client.h"
#include "blackmisc/pixmap.h"
#include <simconnect/SimConnect.h>
#include <SimConnect.h>
#include <QObject>
#include <QtPlugin>
#include <QHash>

View File

@@ -10,15 +10,34 @@ TEMPLATE = lib
CONFIG += plugin shared
CONFIG += blackmisc blackcore
LIBS += -lsimulatorfscommon -lsimulatorfsxcommon -lfsuipc -lSimConnect
DEPENDPATH += . $$SourceRoot/src
INCLUDEPATH += . $$SourceRoot/src
LIBS += -ldxguid -lole32
SOURCES += *.cpp
HEADERS += *.h
equals(WORD_SIZE,64) {
INCLUDEPATH *= $$EXTERNALSROOT/common/include/simconnect/P3D-v4
}
equals(WORD_SIZE,32) {
INCLUDEPATH *= $$EXTERNALSROOT/common/include/simconnect/FSX-XPack
}
LIBS += -lsimulatorfscommon -lsimulatorfsxcommon -lfsuipc
equals(WORD_SIZE,64) {
LIBS *= -L$$EXTERNALS_LIB_DIR/P3D-v4
CONFIG(debug, debug|release): LIBS *= -lSimConnectDebug
else: LIBS *= -lSimConnect
}
equals(WORD_SIZE,32) {
LIBS *= -L$$EXTERNALS_LIB_DIR/FSX-XPack
LIBS *= -lSimConnect
}
LIBS += -ldxguid -lole32
# Ignore linker warning about missing pdb files from Simconnect
msvc: QMAKE_LFLAGS *= /ignore:4099
DISTFILES += simulatorp3d.json
DESTDIR = $$DestRoot/bin/plugins/simulator

View File

@@ -15,7 +15,6 @@
#include "blackcore/simulator.h"
#include "blackmisc/simulation/simulatorplugininfo.h"
#include <simconnect/SimConnect.h>
#include <QObject>
#include <QtPlugin>