2013-04-05 22:46:56 +02:00
|
|
|
include(../openpilotgcs.pri)
|
|
|
|
|
|
|
|
isEmpty(PROVIDER) {
|
|
|
|
PROVIDER = OpenPilot
|
|
|
|
}
|
|
|
|
|
|
|
|
DESTDIR = $$GCS_PLUGIN_PATH/$$PROVIDER
|
|
|
|
LIBS += -L$$DESTDIR
|
|
|
|
INCLUDEPATH += $$GCS_SOURCE_TREE/src/plugins
|
|
|
|
DEPENDPATH += $$GCS_SOURCE_TREE/src/plugins
|
|
|
|
|
2013-09-15 21:55:03 +02:00
|
|
|
QT += widgets
|
|
|
|
|
2013-04-05 22:46:56 +02:00
|
|
|
# copy the plugin spec
|
|
|
|
isEmpty(TARGET) {
|
|
|
|
error("qtcreatorplugin.pri: You must provide a TARGET")
|
|
|
|
}
|
|
|
|
|
|
|
|
PLUGINSPECS = $${_PRO_FILE_PWD_}/$${TARGET}.pluginspec
|
|
|
|
copy2build.input = PLUGINSPECS
|
|
|
|
copy2build.output = $$DESTDIR/${QMAKE_FUNC_FILE_IN_stripSrcDir}
|
|
|
|
isEmpty(vcproj):copy2build.variable_out = PRE_TARGETDEPS
|
|
|
|
copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
|
|
|
|
copy2build.name = COPY ${QMAKE_FILE_IN}
|
|
|
|
copy2build.CONFIG += no_link
|
|
|
|
QMAKE_EXTRA_COMPILERS += copy2build
|
|
|
|
|
|
|
|
TARGET = $$qtLibraryName($$TARGET)
|
|
|
|
|
|
|
|
macx {
|
|
|
|
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Plugins/$${PROVIDER}/
|
|
|
|
} else:linux-* {
|
2014-12-22 02:47:27 +01:00
|
|
|
QMAKE_RPATHDIR = \'\$$ORIGIN\'
|
|
|
|
QMAKE_RPATHDIR += \'\$$ORIGIN\'/../..
|
|
|
|
include(rpath.pri)
|
2013-04-05 22:46:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
contains(QT_CONFIG, reduce_exports):CONFIG += hGCS_symbols
|
|
|
|
|
|
|
|
CONFIG += plugin plugin_with_soname
|
|
|
|
|
|
|
|
!macx {
|
2014-01-09 15:57:12 +01:00
|
|
|
target.path = /$$GCS_LIBRARY_BASENAME/openpilotgcs/plugins/$$PROVIDER
|
2013-04-05 22:46:56 +02:00
|
|
|
pluginspec.files += $${TARGET}.pluginspec
|
|
|
|
pluginspec.path = /$$GCS_LIBRARY_BASENAME/openpilotgcs/plugins/$$PROVIDER
|
|
|
|
INSTALLS += target pluginspec
|
|
|
|
}
|