Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / plugins / uploader / uploader.pro
blob83aac98fbb8505f6b41762664b48771365b1c4c3
1 TEMPLATE = lib
2 TARGET = Uploader
4 DEFINES += UPLOADER_LIBRARY
6 QT += svg serialport
8 include(uploader_dependencies.pri)
9 include(../../libs/version_info/version_info.pri)
11 macx {
12 QMAKE_CXXFLAGS += -fpermissive
15 !macx {
16 QMAKE_CXXFLAGS += -Wno-enum-compare
19 HEADERS += \
20 uploadergadget.h \
21 uploadergadgetconfiguration.h \
22 uploadergadgetfactory.h \
23 uploadergadgetoptionspage.h \
24 uploadergadgetwidget.h \
25 uploaderplugin.h \
26 dfu.h \
27 devicewidget.h \
28 SSP/port.h \
29 SSP/qssp.h \
30 SSP/qsspt.h \
31 SSP/common.h \
32 runningdevicewidget.h \
33 uploader_global.h \
34 enums.h \
35 rebootdialog.h
37 SOURCES += \
38 uploadergadget.cpp \
39 uploadergadgetconfiguration.cpp \
40 uploadergadgetfactory.cpp \
41 uploadergadgetoptionspage.cpp \
42 uploadergadgetwidget.cpp \
43 uploaderplugin.cpp \
44 dfu.cpp \
45 devicewidget.cpp \
46 SSP/port.cpp \
47 SSP/qssp.cpp \
48 SSP/qsspt.cpp \
49 runningdevicewidget.cpp \
50 rebootdialog.cpp
52 OTHER_FILES += Uploader.pluginspec
54 FORMS += \
55 uploader.ui \
56 devicewidget.ui \
57 runningdevicewidget.ui \
58 rebootdialog.ui
60 RESOURCES += uploader.qrc
62 # TODO should use GCS_SYNTH_DIR... but that will break QtCreator
63 exists( ../../../../../build/gcs-synthetics/fw_resource.qrc ) {
64 RESOURCES += ../../../../../build/gcs-synthetics/fw_resource.qrc
65 } else {
66 message("fw_resource.qrc is not available, automatic firmware upgrades are disabled")