mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
Merge remote branch 'origin/PeterG/OP-520_GCS_qtLibraryTarget' into next
This commit is contained in:
commit
247da8c24b
@ -19,6 +19,19 @@ defineReplace(addNewline) {
|
||||
return($$escape_expand(\\n\\t))
|
||||
}
|
||||
|
||||
defineReplace(qtLibraryName) {
|
||||
unset(LIBRARY_NAME)
|
||||
LIBRARY_NAME = $$1
|
||||
CONFIG(debug, debug|release) {
|
||||
!debug_and_release|build_pass {
|
||||
mac:RET = $$member(LIBRARY_NAME, 0)_debug
|
||||
else:win32:RET = $$member(LIBRARY_NAME, 0)d
|
||||
}
|
||||
}
|
||||
isEmpty(RET):RET = $$LIBRARY_NAME
|
||||
return($$RET)
|
||||
}
|
||||
|
||||
# For use in custom compilers which just copy files
|
||||
win32:i_flag = i
|
||||
defineReplace(stripSrcDir) {
|
||||
|
@ -11,16 +11,15 @@ SOURCES += main.cpp
|
||||
include(../rpath.pri)
|
||||
include(../libs/utils/utils.pri)
|
||||
|
||||
win32 {
|
||||
CONFIG(debug, debug|release):LIBS *= -lExtensionSystemd -lAggregationd -lQExtSerialPortd
|
||||
else:LIBS *= -lExtensionSystem -lAggregation -lQExtSerialPort
|
||||
LIBS *= -l$$qtLibraryName(ExtensionSystem) -l$$qtLibraryName(Aggregation)
|
||||
|
||||
win32 {
|
||||
# CONFIG(debug, debug|release):LIBS *= -lExtensionSystemd -lAggregationd -lQExtSerialPortd
|
||||
# else:LIBS *= -lExtensionSystem -lAggregation -lQExtSerialPort
|
||||
RC_FILE = openpilotgcs.rc
|
||||
target.path = /bin
|
||||
INSTALLS += target
|
||||
} else:macx {
|
||||
CONFIG(debug, debug|release):LIBS *= -lExtensionSystem_debug -lAggregation_debug
|
||||
else:LIBS *= -lExtensionSystem -lAggregation
|
||||
LIBS += -framework CoreFoundation
|
||||
ICON = openpilotgcs.icns
|
||||
QMAKE_INFO_PLIST = Info.plist
|
||||
@ -28,8 +27,6 @@ win32 {
|
||||
FILETYPES.path = Contents/Resources
|
||||
QMAKE_BUNDLE_DATA += FILETYPES
|
||||
} else {
|
||||
LIBS *= -lExtensionSystem -lAggregation
|
||||
|
||||
target.path = /bin
|
||||
INSTALLS += target
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
LIBS *= -l$$qtLibraryTarget(Aggregation)
|
||||
LIBS *= -l$$qtLibraryName(Aggregation)
|
||||
|
@ -1,3 +1,3 @@
|
||||
include(extensionsystem_dependencies.pri)
|
||||
|
||||
LIBS *= -l$$qtLibraryTarget(ExtensionSystem)
|
||||
LIBS *= -l$$qtLibraryName(ExtensionSystem)
|
||||
|
@ -1,2 +1,2 @@
|
||||
QT += opengl
|
||||
LIBS += -l$$qtLibraryTarget(GLC_lib)
|
||||
LIBS *= -l$$qtLibraryName(GLC_lib)
|
||||
|
@ -1,4 +1,4 @@
|
||||
LIBS += -l$$qtLibraryTarget(QxtCore)
|
||||
LIBS *= -l$$qtLibraryName(QxtCore)
|
||||
|
||||
INCLUDEPATH += \
|
||||
$$GCS_SOURCE_TREE/src/libs/libqxt/src/core
|
||||
|
@ -1 +1 @@
|
||||
LIBS *= -l$$qtLibraryTarget(opmapwidget)
|
||||
LIBS *= -l$$qtLibraryName(opmapwidget)
|
||||
|
@ -1,2 +1,2 @@
|
||||
LIBS += -l$$qtLibraryTarget(QExtSerialPort)
|
||||
LIBS *= -l$$qtLibraryName(QExtSerialPort)
|
||||
|
||||
|
@ -1 +1 @@
|
||||
LIBS *= -l$$qtLibraryTarget(QScienceSpinBox)
|
||||
LIBS *= -l$$qtLibraryName(QScienceSpinBox)
|
||||
|
@ -1 +1 @@
|
||||
LIBS *= -l$$qtLibraryTarget(QtConcurrent)
|
||||
LIBS *= -l$$qtLibraryName(QtConcurrent)
|
||||
|
@ -1,2 +1,2 @@
|
||||
LIBS += -l$$qtLibraryTarget(Qwt)
|
||||
LIBS *= -l$$qtLibraryName(Qwt)
|
||||
|
||||
|
@ -1 +1 @@
|
||||
LIBS += -l$$qtLibraryTarget(sdlgamepad)
|
||||
LIBS *= -l$$qtLibraryName(sdlgamepad)
|
||||
|
@ -1,9 +1 @@
|
||||
macx {
|
||||
CONFIG(debug, debug|release):LIBS *= -lUtils_debug
|
||||
else:LIBS *= -lUtils
|
||||
} else:win32 {
|
||||
CONFIG(debug, debug|release):LIBS *= -lUtilsd
|
||||
else:LIBS *= -lUtils
|
||||
} else {
|
||||
LIBS += -l$$qtLibraryTarget(Utils)
|
||||
}
|
||||
LIBS *= -l$$qtLibraryName(Utils)
|
||||
|
@ -8,7 +8,7 @@ DESTDIR = $$GCS_LIBRARY_PATH
|
||||
|
||||
include(rpath.pri)
|
||||
|
||||
TARGET = $$qtLibraryTarget($$TARGET)
|
||||
TARGET = $$qtLibraryName($$TARGET)
|
||||
|
||||
contains(QT_CONFIG, reduce_exports):CONFIG += hGCS_symbols
|
||||
|
||||
|
@ -23,7 +23,7 @@ copy2build.name = COPY ${QMAKE_FILE_IN}
|
||||
copy2build.CONFIG += no_link
|
||||
QMAKE_EXTRA_COMPILERS += copy2build
|
||||
|
||||
TARGET = $$qtLibraryTarget($$TARGET)
|
||||
TARGET = $$qtLibraryName($$TARGET)
|
||||
|
||||
macx {
|
||||
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Plugins/$${PROVIDER}/
|
||||
|
@ -1,2 +1,2 @@
|
||||
include(coreplugin_dependencies.pri)
|
||||
LIBS *= -l$$qtLibraryTarget(Core)
|
||||
LIBS *= -l$$qtLibraryName(Core)
|
||||
|
@ -1,3 +1,3 @@
|
||||
include(ipconnection_dependencies.pri)
|
||||
|
||||
LIBS *= -l$$qtLibraryTarget(IPconnection)
|
||||
LIBS *= -l$$qtLibraryName(IPconnection)
|
||||
|
@ -1,3 +1,3 @@
|
||||
include(rawhid_dependencies.pri)
|
||||
|
||||
LIBS *= -l$$qtLibraryTarget(RawHID)
|
||||
LIBS *= -l$$qtLibraryName(RawHID)
|
||||
|
@ -1,3 +1,3 @@
|
||||
include(scope_dependencies.pri)
|
||||
|
||||
LIBS *= -l$$qtLibraryTarget(ScopeGadget)
|
||||
include(scope_dependencies.pri)
|
||||
|
||||
LIBS *= -l$$qtLibraryName(ScopeGadget)
|
||||
|
@ -1,3 +1,3 @@
|
||||
include(serial_dependencies.pri)
|
||||
|
||||
LIBS *= -l$$qtLibraryTarget(Serial)
|
||||
LIBS *= -l$$qtLibraryName(Serial)
|
||||
|
@ -1,6 +1,6 @@
|
||||
include(uavobjects_dependencies.pri)
|
||||
|
||||
# Add the include path to the built-in uavobject include files.
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
LIBS *= -l$$qtLibraryTarget(UAVObjects)
|
||||
include(uavobjects_dependencies.pri)
|
||||
|
||||
# Add the include path to the built-in uavobject include files.
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
LIBS *= -l$$qtLibraryName(UAVObjects)
|
||||
|
@ -1,6 +1,6 @@
|
||||
include(uavobjectutil_dependencies.pri)
|
||||
|
||||
# Add the include path to the built-in uavobject include files.
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
LIBS *= -l$$qtLibraryTarget(UAVObjectUtil)
|
||||
include(uavobjectutil_dependencies.pri)
|
||||
|
||||
# Add the include path to the built-in uavobject include files.
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
LIBS *= -l$$qtLibraryName(UAVObjectUtil)
|
||||
|
@ -1,3 +1,3 @@
|
||||
include(uavtalk_dependencies.pri)
|
||||
|
||||
LIBS *= -l$$qtLibraryTarget(UAVTalk)
|
||||
include(uavtalk_dependencies.pri)
|
||||
|
||||
LIBS *= -l$$qtLibraryName(UAVTalk)
|
||||
|
@ -1,3 +1,3 @@
|
||||
include(welcome_dependencies.pri)
|
||||
|
||||
LIBS *= -l$$qtLibraryTarget(Welcome)
|
||||
LIBS *= -l$$qtLibraryName(Welcome)
|
||||
|
Loading…
Reference in New Issue
Block a user