2010-07-01 10:42:42 +02:00
|
|
|
include(../openpilotgcs.pri)
|
|
|
|
|
2010-02-01 15:10:06 +01:00
|
|
|
TEMPLATE = subdirs
|
2010-02-01 15:50:33 +01:00
|
|
|
SUBDIRS = openpilotgcs/translations
|
2010-06-29 03:17:10 +02:00
|
|
|
|
2010-08-05 19:50:09 +02:00
|
|
|
DATACOLLECTIONS = dials models pfd sounds diagrams mapicons
|
2010-06-29 03:17:10 +02:00
|
|
|
|
2010-07-01 10:42:42 +02:00
|
|
|
equals(copydata, 1) {
|
|
|
|
for(dir, DATACOLLECTIONS) {
|
2010-09-27 09:48:26 +02:00
|
|
|
exists($$GCS_SOURCE_TREE/share/openpilotgcs/$$dir) {
|
|
|
|
macx:data_copy.commands += $(COPY_DIR) $$targetPath(\"$$GCS_SOURCE_TREE/share/openpilotgcs/$$dir\") $$targetPath(\"$$GCS_DATA_PATH/\") $$addNewline()
|
2010-09-27 17:47:10 +02:00
|
|
|
!macx:data_copy.commands += $(COPY_DIR) $$targetPath(\"$$GCS_SOURCE_TREE/share/openpilotgcs/$$dir\") $$targetPath(\"$$GCS_DATA_PATH/$$dir\") $$addNewline()
|
2010-07-01 10:42:42 +02:00
|
|
|
}
|
|
|
|
}
|
2010-10-04 21:06:48 +02:00
|
|
|
|
|
|
|
# copying required for installer QT DLLs
|
2010-10-04 22:29:36 +02:00
|
|
|
win32 {
|
|
|
|
CONFIG(release, debug|release) {
|
2010-10-06 02:07:31 +02:00
|
|
|
# copy packaging dir (with Wix script for build installer)
|
|
|
|
data_copy.commands += $(COPY_DIR) $$targetPath(\"$$GCS_SOURCE_TREE/packaging/winx86\") $$targetPath(\"$$GCS_BUILD_TREE/packaging/winx86\") $$addNewline()
|
|
|
|
|
2010-10-04 22:29:36 +02:00
|
|
|
QT_DLLs = libgcc_s_dw2-1.dll mingwm10.dll phonon4.dll QtCore4.dll QtGui4.dll QtNetwork4.dll QtOpenGL4.dll QtSql4.dll QtSvg4.dll QtTest4.dll QtXml4.dll
|
|
|
|
for(dll, QT_DLLs) {
|
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_BINS]/$$dll\") $$targetPath(\"$$GCS_APP_PATH/$$dll\") $$addNewline()
|
|
|
|
}
|
|
|
|
|
|
|
|
# copy imageformats
|
|
|
|
QT_ImageFormats_DLLs = qgif4.dll qico4.dll qjpeg4.dll qmng4.dll qsvg4.dll qtiff4.dll
|
|
|
|
for(dll, QT_ImageFormats_DLLs) {
|
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_PLUGINS]/imageformats/$$dll\") $$targetPath(\"$$GCS_APP_PATH/$$dll\") $$addNewline()
|
|
|
|
}
|
|
|
|
|
|
|
|
# copy iconengine
|
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_PLUGINS]/iconengines/qsvgicon4.dll\") $$targetPath(\"$$GCS_APP_PATH/qsvgicon4.dll\") $$addNewline()
|
|
|
|
|
|
|
|
# copy SDL (if available) - Simple DirectMedia Layer (www.libsdl.org)
|
|
|
|
SDL_DLL = $$targetPath(\"$$[QT_INSTALL_BINS]/../../mingw/bin/SDL.dll\")
|
|
|
|
exists($$SDL_DLL){
|
|
|
|
data_copy.commands += $(COPY_FILE) $$SDL_DLL $$targetPath(\"$$GCS_APP_PATH/SDL.dll\") $$addNewline()
|
|
|
|
}
|
|
|
|
|
|
|
|
# copy sql driver
|
|
|
|
data_copy.commands += @$(CHK_DIR_EXISTS) $$targetPath(\"$$GCS_APP_PATH/sqldrivers\") $(MKDIR) $$targetPath(\"$$GCS_APP_PATH/sqldrivers\") $$addNewline()
|
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_PLUGINS]/sqldrivers/qsqlite4.dll\") $$targetPath(\"$$GCS_APP_PATH/sqldrivers/qsqlite4.dll\") $$addNewline()
|
2010-12-21 19:11:35 +01:00
|
|
|
|
|
|
|
# copy phonon_ds94
|
|
|
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_PLUGINS]/phonon_backend/phonon_ds94.dll\") $$targetPath(\"$$GCS_APP_PATH/phonon_ds94.dll\") $$addNewline()
|
2010-10-04 21:06:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-07-01 10:42:42 +02:00
|
|
|
data_copy.target = FORCE
|
2010-10-04 22:20:22 +02:00
|
|
|
QMAKE_EXTRA_TARGETS += data_copy
|
2010-07-01 10:42:42 +02:00
|
|
|
}
|