mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
* unlike BlackCore::CSimulatorCommon we can add also UI aspects here * used by emulated driver, XP and the FS series
59 lines
1.4 KiB
Prolog
59 lines
1.4 KiB
Prolog
load(common_pre)
|
|
|
|
REQUIRES += contains(BLACK_CONFIG,P3D)
|
|
|
|
QT += core dbus gui network xml widgets
|
|
|
|
TARGET = simulatorp3d
|
|
TEMPLATE = lib
|
|
|
|
CONFIG += plugin shared
|
|
CONFIG += blackconfig blackmisc blackcore blackgui
|
|
|
|
DEPENDPATH += . $$SourceRoot/src
|
|
INCLUDEPATH += . $$SourceRoot/src
|
|
|
|
SOURCES += *.cpp
|
|
HEADERS += *.h
|
|
|
|
equals(WORD_SIZE,64) {
|
|
INCLUDEPATH *= $$EXTERNALSROOT/common/include/simconnect/P3D-v4.1
|
|
}
|
|
equals(WORD_SIZE,32) {
|
|
INCLUDEPATH *= $$EXTERNALSROOT/common/include/simconnect/FSX-XPack
|
|
}
|
|
|
|
LIBS += -lsimulatorfscommon -lsimulatorfsxcommon -lfsuipc -lsimulatorplugincommon
|
|
|
|
equals(WORD_SIZE,64) {
|
|
LIBS *= -L$$EXTERNALS_LIB_DIR/P3D-v4.1
|
|
LIBS *= -lAdvapi32
|
|
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
|
|
addStaticLibraryDependency(simulatorfscommon)
|
|
addStaticLibraryDependency(simulatorfsxcommon)
|
|
addStaticLibraryDependency(fsuipc)
|
|
addStaticLibraryDependency(simulatorplugincommon)
|
|
|
|
# Ignore linker warning about missing pdb files from Simconnect
|
|
msvc: QMAKE_LFLAGS *= /ignore:4099
|
|
|
|
DISTFILES += simulatorp3d.json
|
|
DESTDIR = $$DestRoot/bin/plugins/simulator
|
|
|
|
win32 {
|
|
dlltarget.path = $$PREFIX/bin/plugins/simulator
|
|
INSTALLS += dlltarget
|
|
} else {
|
|
target.path = $$PREFIX/bin/plugins/simulator
|
|
INSTALLS += target
|
|
}
|
|
|
|
load(common_post)
|