2013-04-05 22:46:56 +02:00
|
|
|
include(openpilotgcs.pri)
|
|
|
|
|
|
|
|
TEMPLATE = subdirs
|
|
|
|
|
|
|
|
# Copy Qt runtime libraries into the build directory (to run or package)
|
2014-07-06 08:55:54 +02:00
|
|
|
equals(copyqt, 1) {
|
2013-04-05 22:46:56 +02:00
|
|
|
|
2015-03-21 03:35:11 +01:00
|
|
|
# Copy QtQuick2 complete directories
|
|
|
|
# Some of these directories have a lot of files
|
|
|
|
# Easier to copy everything
|
|
|
|
QT_QUICK2_DIRS = QtQuick/Controls \
|
|
|
|
QtQuick/Dialogs \
|
|
|
|
QtQuick/Layouts \
|
|
|
|
QtQuick/LocalStorage \
|
|
|
|
QtQuick/Particles.2 \
|
|
|
|
QtQuick/PrivateWidgets \
|
|
|
|
QtQuick/Window.2 \
|
|
|
|
QtQuick/XmlListModel \
|
|
|
|
QtQuick.2
|
|
|
|
|
|
|
|
# create QtQuick directory
|
|
|
|
data_copy.commands += -@$(MKDIR) $$targetPath(\"$$GCS_QT_QML_PATH/QtQuick\") $$addNewline()
|
|
|
|
|
|
|
|
for(dir, QT_QUICK2_DIRS) {
|
|
|
|
data_copy.commands += @rm -rf $$targetPath(\"$$GCS_QT_QML_PATH/$$dir\") $$addNewline()
|
|
|
|
data_copy.commands += $(COPY_DIR) $$targetPath(\"$$[QT_INSTALL_QML]/$$dir\") $$targetPath(\"$$GCS_QT_QML_PATH/$$dir\") $$addNewline()
|
|
|
|
}
|
|
|
|
|
|
|
|
data_copy.target = FORCE
|
|
|
|
QMAKE_EXTRA_TARGETS += data_copy
|
2014-01-09 15:57:12 +01:00
|
|
|
|
2015-03-21 03:26:05 +01:00
|
|
|
linux {
|
2014-01-09 15:57:12 +01:00
|
|
|
|
|
|
|
QT_LIBS = libQt5Core.so.5 \
|
|
|
|
libQt5Gui.so.5 \
|
|
|
|
libQt5Widgets.so.5 \
|
|
|
|
libQt5Network.so.5 \
|
|
|
|
libQt5OpenGL.so.5 \
|
|
|
|
libQt5Sql.so.5 \
|
|
|
|
libQt5Svg.so.5 \
|
|
|
|
libQt5Test.so.5 \
|
|
|
|
libQt5Xml.so.5 \
|
|
|
|
libQt5Declarative.so.5 \
|
|
|
|
libQt5XmlPatterns.so.5 \
|
|
|
|
libQt5Script.so.5 \
|
|
|
|
libQt5Concurrent.so.5 \
|
|
|
|
libQt5PrintSupport.so.5 \
|
|
|
|
libQt5SerialPort.so.5 \
|
|
|
|
libQt5Multimedia.so.5 \
|
|
|
|
libQt5MultimediaWidgets.so.5 \
|
|
|
|
libQt5Quick.so.5 \
|
|
|
|
libQt5Qml.so.5 \
|
|
|
|
libQt5DBus.so.5 \
|
|
|
|
libQt5QuickParticles.so.5 \
|
2014-08-25 03:52:19 +02:00
|
|
|
libqgsttools_p.so.1 \
|
2015-01-02 22:22:31 +01:00
|
|
|
libicui18n.so.53 \
|
|
|
|
libicuuc.so.53 \
|
|
|
|
libicudata.so.53
|
2014-01-09 15:57:12 +01:00
|
|
|
|
|
|
|
data_copy.commands += -@$(MKDIR) $$targetPath(\"$$GCS_QT_LIBRARY_PATH\") $$addNewline()
|
|
|
|
for(lib, QT_LIBS) {
|
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_LIBS]/$$lib\") $$targetPath(\"$$GCS_QT_LIBRARY_PATH/$$lib\") $$addNewline()
|
|
|
|
}
|
|
|
|
|
|
|
|
# create Qt plugin directories
|
|
|
|
QT_PLUGIN_DIRS = iconengines \
|
|
|
|
imageformats \
|
|
|
|
platforms \
|
|
|
|
mediaservice \
|
|
|
|
sqldrivers
|
|
|
|
for(dir, QT_PLUGIN_DIRS) {
|
|
|
|
data_copy.commands += -@$(MKDIR) $$targetPath(\"$$GCS_QT_PLUGINS_PATH/$$dir\") $$addNewline()
|
|
|
|
}
|
|
|
|
QT_PLUGIN_LIBS = iconengines/libqsvgicon.so \
|
|
|
|
imageformats/libqgif.so \
|
|
|
|
imageformats/libqico.so \
|
|
|
|
imageformats/libqjpeg.so \
|
|
|
|
imageformats/libqmng.so \
|
|
|
|
imageformats/libqsvg.so \
|
|
|
|
imageformats/libqtiff.so \
|
2014-03-09 23:31:08 +01:00
|
|
|
mediaservice/libgstaudiodecoder.so \
|
2014-03-09 10:06:47 +01:00
|
|
|
mediaservice/libgstmediaplayer.so \
|
2014-01-09 15:57:12 +01:00
|
|
|
platforms/libqxcb.so \
|
|
|
|
sqldrivers/libqsqlite.so
|
|
|
|
for(lib, QT_PLUGIN_LIBS) {
|
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_PLUGINS]/$$lib\") $$targetPath(\"$$GCS_QT_PLUGINS_PATH/$$lib\") $$addNewline()
|
|
|
|
}
|
|
|
|
}
|
2013-04-05 22:46:56 +02:00
|
|
|
|
2014-03-17 20:43:38 +01:00
|
|
|
win32 {
|
2013-09-15 21:28:08 +02:00
|
|
|
# set debug suffix if needed
|
|
|
|
CONFIG(debug, debug|release):DS = "d"
|
|
|
|
|
|
|
|
# copy Qt DLLs
|
|
|
|
QT_DLLS = Qt5Core$${DS}.dll \
|
|
|
|
Qt5Gui$${DS}.dll \
|
|
|
|
Qt5Widgets$${DS}.dll \
|
|
|
|
Qt5Network$${DS}.dll \
|
|
|
|
Qt5OpenGL$${DS}.dll \
|
|
|
|
Qt5Sql$${DS}.dll \
|
|
|
|
Qt5Svg$${DS}.dll \
|
|
|
|
Qt5Test$${DS}.dll \
|
|
|
|
Qt5Xml$${DS}.dll \
|
|
|
|
Qt5Declarative$${DS}.dll \
|
|
|
|
Qt5XmlPatterns$${DS}.dll \
|
|
|
|
Qt5Script$${DS}.dll \
|
|
|
|
Qt5Concurrent$${DS}.dll \
|
|
|
|
Qt5PrintSupport$${DS}.dll \
|
|
|
|
Qt5OpenGL$${DS}.dll \
|
|
|
|
Qt5SerialPort$${DS}.dll \
|
|
|
|
Qt5Multimedia$${DS}.dll \
|
|
|
|
Qt5MultimediaWidgets$${DS}.dll \
|
2013-11-14 22:41:39 +01:00
|
|
|
Qt5Quick$${DS}.dll \
|
|
|
|
Qt5Qml$${DS}.dll \
|
2014-12-22 21:17:52 +01:00
|
|
|
icuin53.dll \
|
|
|
|
icudt53.dll \
|
|
|
|
icuuc53.dll
|
2013-09-15 21:28:08 +02:00
|
|
|
# it is more robust to take the following DLLs from Qt rather than from MinGW
|
|
|
|
QT_DLLS += libgcc_s_dw2-1.dll \
|
|
|
|
libstdc++-6.dll \
|
|
|
|
libwinpthread-1.dll
|
2013-04-05 22:46:56 +02:00
|
|
|
for(dll, QT_DLLS) {
|
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_BINS]/$$dll\") $$targetPath(\"$$GCS_APP_PATH/$$dll\") $$addNewline()
|
|
|
|
}
|
|
|
|
|
2013-09-15 21:28:08 +02:00
|
|
|
# create Qt plugin directories
|
|
|
|
QT_PLUGIN_DIRS = iconengines \
|
|
|
|
imageformats \
|
|
|
|
platforms \
|
|
|
|
mediaservice \
|
2014-07-04 17:21:39 +02:00
|
|
|
sqldrivers \
|
2014-07-05 14:12:27 +02:00
|
|
|
opengl32_32
|
2013-09-15 21:28:08 +02:00
|
|
|
for(dir, QT_PLUGIN_DIRS) {
|
|
|
|
data_copy.commands += -@$(MKDIR) $$targetPath(\"$$GCS_APP_PATH/$$dir\") $$addNewline()
|
2013-04-05 22:46:56 +02:00
|
|
|
}
|
|
|
|
|
2013-09-15 21:28:08 +02:00
|
|
|
# copy Qt plugin DLLs
|
|
|
|
QT_PLUGIN_DLLS = iconengines/qsvgicon$${DS}.dll \
|
|
|
|
imageformats/qgif$${DS}.dll \
|
|
|
|
imageformats/qico$${DS}.dll \
|
|
|
|
imageformats/qjpeg$${DS}.dll \
|
|
|
|
imageformats/qmng$${DS}.dll \
|
|
|
|
imageformats/qsvg$${DS}.dll \
|
|
|
|
imageformats/qtiff$${DS}.dll \
|
|
|
|
platforms/qwindows$${DS}.dll \
|
|
|
|
mediaservice/dsengine$${DS}.dll \
|
|
|
|
sqldrivers/qsqlite$${DS}.dll
|
|
|
|
for(dll, QT_PLUGIN_DLLS) {
|
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_PLUGINS]/$$dll\") $$targetPath(\"$$GCS_APP_PATH/$$dll\") $$addNewline()
|
2013-04-05 22:46:56 +02:00
|
|
|
}
|
|
|
|
|
2013-12-01 23:17:48 +01:00
|
|
|
# copy OpenSSL DLLs
|
|
|
|
OPENSSL_DLLS = \
|
|
|
|
ssleay32.dll \
|
|
|
|
libeay32.dll
|
|
|
|
for(dll, OPENSSL_DLLS) {
|
2014-09-13 07:48:30 +02:00
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$${OPENSSL_DIR}/$$dll\") $$targetPath(\"$$GCS_APP_PATH/$$dll\") $$addNewline()
|
2013-12-01 23:17:48 +01:00
|
|
|
}
|
|
|
|
|
2014-07-05 14:12:27 +02:00
|
|
|
# copy OpenGL DLL
|
2014-07-04 17:21:39 +02:00
|
|
|
OPENGL_DLLS = \
|
2014-07-05 14:12:27 +02:00
|
|
|
opengl32_32/opengl32.dll
|
2014-07-04 17:21:39 +02:00
|
|
|
for(dll, OPENGL_DLLS) {
|
2014-09-14 02:50:30 +02:00
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$${MESAWIN_DIR}/$$dll\") $$targetPath(\"$$GCS_APP_PATH/$$dll\") $$addNewline()
|
2014-07-04 17:21:39 +02:00
|
|
|
}
|
2014-01-10 23:25:35 +01:00
|
|
|
}
|
2013-04-05 22:46:56 +02:00
|
|
|
}
|