mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
Add missing PRE_TARGETDEPS in simulator plugin projects
Summary: This fixes issue reported by Klaus in Slack: > when I change something in the plugin driver, I always have to rebuild the plugins before I can debug again. Also refactored `libraries.pri` to remove duplication. Reviewers: #swift_pilot_client, rwinklmeier Reviewed By: #swift_pilot_client, rwinklmeier Subscribers: kbasan, jenkins Tags: #swift_pilot_client Differential Revision: https://dev.swift-project.org/D31
This commit is contained in:
@@ -194,6 +194,27 @@ isEmpty(PREFIX) {
|
|||||||
|
|
||||||
win32: CONFIG(debug, debug|release): DLL_DEBUG_SUFFIX = d
|
win32: CONFIG(debug, debug|release): DLL_DEBUG_SUFFIX = d
|
||||||
|
|
||||||
|
################################
|
||||||
|
# Inter-project dependencies
|
||||||
|
################################
|
||||||
|
defineTest(addStaticLibraryDependency) {
|
||||||
|
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/$${1}.lib
|
||||||
|
else: PRE_TARGETDEPS += $$DestRoot/lib/lib$${1}.a
|
||||||
|
export(PRE_TARGETDEPS)
|
||||||
|
}
|
||||||
|
defineTest(addLibraryDependency) {
|
||||||
|
contains(BLACK_CONFIG, Static) {
|
||||||
|
addStaticLibraryDependency($$1)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/$${1}.lib
|
||||||
|
win32-g++*: PRE_TARGETDEPS += $$DestRoot/lib/lib$${1}.a
|
||||||
|
linux-g++*: PRE_TARGETDEPS += $$DestRoot/lib/lib$${1}.so
|
||||||
|
macx-clang: PRE_TARGETDEPS += $$DestRoot/lib/lib$${1}.dylib
|
||||||
|
export(PRE_TARGETDEPS)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# Experimental support for Clang on Windows
|
# Experimental support for Clang on Windows
|
||||||
################################
|
################################
|
||||||
|
|||||||
@@ -7,30 +7,12 @@ unix:!macx {
|
|||||||
}
|
}
|
||||||
|
|
||||||
blackgui {
|
blackgui {
|
||||||
contains(BLACK_CONFIG, Static) {
|
addLibraryDependency(blackgui)
|
||||||
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/blackgui.lib
|
|
||||||
else: PRE_TARGETDEPS += $$DestRoot/lib/libblackgui.a
|
|
||||||
} else {
|
|
||||||
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/blackgui.lib
|
|
||||||
win32-g++*: PRE_TARGETDEPS += $$DestRoot/lib/libblackgui.a
|
|
||||||
linux-g++*: PRE_TARGETDEPS += $$DestRoot/lib/libblackgui.so
|
|
||||||
macx-clang: PRE_TARGETDEPS += $$DestRoot/lib/libblackgui.dylib
|
|
||||||
}
|
|
||||||
|
|
||||||
LIBS *= -lblackgui
|
LIBS *= -lblackgui
|
||||||
}
|
}
|
||||||
|
|
||||||
blackcore {
|
blackcore {
|
||||||
contains(BLACK_CONFIG, Static) {
|
addLibraryDependency(blackcore)
|
||||||
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/blackcore.lib
|
|
||||||
else: PRE_TARGETDEPS += $$DestRoot/lib/libblackcore.a
|
|
||||||
} else {
|
|
||||||
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/blackcore.lib
|
|
||||||
win32-g++*: PRE_TARGETDEPS += $$DestRoot/lib/libblackcore.a
|
|
||||||
linux-g++*: PRE_TARGETDEPS += $$DestRoot/lib/libblackcore.so
|
|
||||||
macx-clang: PRE_TARGETDEPS += $$DestRoot/lib/libblackcore.dylib
|
|
||||||
}
|
|
||||||
|
|
||||||
LIBS *= -lblackcore -lvatlib
|
LIBS *= -lblackcore -lvatlib
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,16 +21,7 @@ blacksound {
|
|||||||
}
|
}
|
||||||
|
|
||||||
blackinput {
|
blackinput {
|
||||||
contains(BLACK_CONFIG, Static) {
|
addLibraryDependency(blackinput)
|
||||||
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/blackinput.lib
|
|
||||||
else: PRE_TARGETDEPS += $$DestRoot/lib/libblackinput.a
|
|
||||||
} else {
|
|
||||||
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/blackinput.lib
|
|
||||||
win32-g++*: PRE_TARGETDEPS += $$DestRoot/lib/libblackinput.a
|
|
||||||
linux-g++*: PRE_TARGETDEPS += $$DestRoot/lib/libblackinput.so
|
|
||||||
macx-clang: PRE_TARGETDEPS += $$DestRoot/lib/libblackinput.dylib
|
|
||||||
}
|
|
||||||
|
|
||||||
LIBS *= -lblackinput
|
LIBS *= -lblackinput
|
||||||
|
|
||||||
macx {
|
macx {
|
||||||
@@ -61,15 +34,7 @@ blackinput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
blackmisc {
|
blackmisc {
|
||||||
contains(BLACK_CONFIG, Static) {
|
addLibraryDependency(blackmisc)
|
||||||
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/blackmisc.lib
|
|
||||||
else: PRE_TARGETDEPS += $$DestRoot/lib/libblackmisc.a
|
|
||||||
} else {
|
|
||||||
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/blackmisc.lib
|
|
||||||
win32-g++*: PRE_TARGETDEPS += $$DestRoot/lib/libblackmisc.a
|
|
||||||
linux-g++*: PRE_TARGETDEPS += $$DestRoot/lib/libblackmisc.so
|
|
||||||
macx-clang: PRE_TARGETDEPS += $$DestRoot/lib/libblackmisc.dylib
|
|
||||||
}
|
|
||||||
LIBS *= -lblackmisc
|
LIBS *= -lblackmisc
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
@@ -78,7 +43,6 @@ blackmisc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
blackconfig {
|
blackconfig {
|
||||||
win32:msvc: PRE_TARGETDEPS += $$DestRoot/lib/blackconfig.lib
|
addStaticLibraryDependency(blackconfig)
|
||||||
else: PRE_TARGETDEPS += $$DestRoot/lib/libblackconfig.a
|
|
||||||
LIBS *= -lblackconfig
|
LIBS *= -lblackconfig
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ INCLUDEPATH += . $$SourceRoot/src
|
|||||||
|
|
||||||
LIBS += -lsimulatorfscommon -lfsuipc -luuid
|
LIBS += -lsimulatorfscommon -lfsuipc -luuid
|
||||||
LIBS += -ldxguid -lole32
|
LIBS += -ldxguid -lole32
|
||||||
|
addStaticLibraryDependency(simulatorfscommon)
|
||||||
|
addStaticLibraryDependency(fsuipc)
|
||||||
|
|
||||||
SOURCES += *.cpp
|
SOURCES += *.cpp
|
||||||
HEADERS += *.h
|
HEADERS += *.h
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ INCLUDEPATH *= $$EXTERNALSROOT/common/include/simconnect/FSX-XPack
|
|||||||
LIBS *= -L$$EXTERNALS_LIB_DIR/FSX-XPack
|
LIBS *= -L$$EXTERNALS_LIB_DIR/FSX-XPack
|
||||||
LIBS *= -lsimulatorfscommon -lsimulatorfsxcommon -lfsuipc -lSimConnect
|
LIBS *= -lsimulatorfscommon -lsimulatorfsxcommon -lfsuipc -lSimConnect
|
||||||
LIBS += -ldxguid -lole32
|
LIBS += -ldxguid -lole32
|
||||||
|
addStaticLibraryDependency(simulatorfscommon)
|
||||||
|
addStaticLibraryDependency(simulatorfsxcommon)
|
||||||
|
addStaticLibraryDependency(fsuipc)
|
||||||
|
|
||||||
SOURCES += *.cpp
|
SOURCES += *.cpp
|
||||||
HEADERS += *.h
|
HEADERS += *.h
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ SOURCES += *.cpp
|
|||||||
HEADERS += *.h
|
HEADERS += *.h
|
||||||
DISTFILES += simulatorfsxconfig.json
|
DISTFILES += simulatorfsxconfig.json
|
||||||
LIBS += -lsimulatorfsxcommon
|
LIBS += -lsimulatorfsxcommon
|
||||||
|
addStaticLibraryDependency(simulatorfsxcommon)
|
||||||
|
|
||||||
DESTDIR = $$DestRoot/bin/plugins/simulator
|
DESTDIR = $$DestRoot/bin/plugins/simulator
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ equals(WORD_SIZE,32) {
|
|||||||
LIBS *= -lSimConnect
|
LIBS *= -lSimConnect
|
||||||
}
|
}
|
||||||
LIBS += -ldxguid -lole32
|
LIBS += -ldxguid -lole32
|
||||||
|
addStaticLibraryDependency(simulatorfscommon)
|
||||||
|
addStaticLibraryDependency(simulatorfsxcommon)
|
||||||
|
addStaticLibraryDependency(fsuipc)
|
||||||
|
|
||||||
# Ignore linker warning about missing pdb files from Simconnect
|
# Ignore linker warning about missing pdb files from Simconnect
|
||||||
msvc: QMAKE_LFLAGS *= /ignore:4099
|
msvc: QMAKE_LFLAGS *= /ignore:4099
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ SOURCES += *.cpp
|
|||||||
HEADERS += *.h
|
HEADERS += *.h
|
||||||
DISTFILES += simulatorp3dconfig.json
|
DISTFILES += simulatorp3dconfig.json
|
||||||
LIBS += -lsimulatorfsxcommon
|
LIBS += -lsimulatorfsxcommon
|
||||||
|
addStaticLibraryDependency(simulatorfsxcommon)
|
||||||
|
|
||||||
DESTDIR = $$DestRoot/bin/plugins/simulator
|
DESTDIR = $$DestRoot/bin/plugins/simulator
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
|||||||
Reference in New Issue
Block a user