QGCApplication.pro 21 KB
Newer Older
Lorenz Meier's avatar
Lorenz Meier committed
1 2 3 4 5
# -------------------------------------------------
# QGroundControl - Micro Air Vehicle Groundstation
# Please see our website at <http://qgroundcontrol.org>
# Maintainer:
# Lorenz Meier <lm@inf.ethz.ch>
Lorenz Meier's avatar
Lorenz Meier committed
6
# (c) 2009-2014 QGroundControl Developers
Lorenz Meier's avatar
Lorenz Meier committed
7 8 9 10 11 12 13 14 15 16 17 18 19
# This file is part of the open groundstation project
# QGroundControl is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# QGroundControl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with QGroundControl. If not, see <http://www.gnu.org/licenses/>.
# -------------------------------------------------

20
include(QGCCommon.pri)
Daniel Agar's avatar
Daniel Agar committed
21
include(git_version.pri)
Don Gagne's avatar
Don Gagne committed
22

23
TARGET = qgroundcontrol
Daniel Agar's avatar
Daniel Agar committed
24
TEMPLATE = app
dogmaphobic's avatar
dogmaphobic committed
25

26 27 28 29 30 31
# Load additional config flags from user_config.pri
exists(user_config.pri):infile(user_config.pri, CONFIG) {
    CONFIG += $$fromfile(user_config.pri, CONFIG)
    message($$sprintf("Using user-supplied additional config: '%1' specified in user_config.pri", $$fromfile(user_config.pri, CONFIG)))
}

32 33
LinuxBuild {
    CONFIG += link_pkgconfig
Don Gagne's avatar
Don Gagne committed
34
}
35

36
# QGC QtLocation plugin
37

38
LIBS += -L$${LOCATION_PLUGIN_DESTDIR}
Don Gagne's avatar
Don Gagne committed
39
LIBS += -l$${LOCATION_PLUGIN_NAME}
40 41

WindowsBuild {
Don Gagne's avatar
Don Gagne committed
42
    PRE_TARGETDEPS += $${LOCATION_PLUGIN_DESTDIR}/$${LOCATION_PLUGIN_NAME}.lib
dogmaphobic's avatar
dogmaphobic committed
43 44
} else {
    PRE_TARGETDEPS += $${LOCATION_PLUGIN_DESTDIR}/lib$${LOCATION_PLUGIN_NAME}.a
45 46
}

Lorenz Meier's avatar
Lorenz Meier committed
47
# Qt configuration
48

Lorenz Meier's avatar
Lorenz Meier committed
49
CONFIG += qt \
Don Gagne's avatar
Don Gagne committed
50
    thread
Bill Bonney's avatar
Bill Bonney committed
51

dogmaphobic's avatar
dogmaphobic committed
52 53
QT += \
    network \
54 55
    concurrent \
    gui \
dogmaphobic's avatar
dogmaphobic committed
56 57 58
    location \
    opengl \
    positioning \
Don Gagne's avatar
Don Gagne committed
59
    qml \
60
    quick \
61
    quickwidgets \
dogmaphobic's avatar
dogmaphobic committed
62 63 64 65
    sql \
    svg \
    widgets \
    xml \
66

dogmaphobic's avatar
dogmaphobic committed
67 68 69 70
!MobileBuild {
    QT += \
    printsupport \
    serialport \
dogmaphobic's avatar
dogmaphobic committed
71 72
}

73 74 75
contains(DEFINES, QGC_NOTIFY_TUNES_ENABLED) {
    QT += multimedia
}
76

77 78
#  testlib is needed even in release flavor for QSignalSpy support
QT += testlib
Don Gagne's avatar
Don Gagne committed
79

Don Gagne's avatar
Don Gagne committed
80 81 82
#
# OS Specific settings
#
83

Don Gagne's avatar
Don Gagne committed
84 85
MacBuild {
    QMAKE_INFO_PLIST = Custom-Info.plist
dogmaphobic's avatar
dogmaphobic committed
86 87 88 89 90 91 92 93
    ICON = $${BASEDIR}/resources/icons/macx.icns
    OTHER_FILES += Custom-Info.plist
}

iOSBuild {
    QMAKE_INFO_PLIST = $${BASEDIR}/ios/iOS-Info.plist
    ICON = $${BASEDIR}/resources/icons/macx.icns
    OTHER_FILES += $${BASEDIR}/iOS-Info.plist
Don Gagne's avatar
Don Gagne committed
94
}
95

Don Gagne's avatar
Don Gagne committed
96
LinuxBuild {
97
    CONFIG += qesp_linux_udev
Don Gagne's avatar
Don Gagne committed
98 99 100
}

WindowsBuild {
dogmaphobic's avatar
dogmaphobic committed
101
    RC_FILE = $${BASEDIR}/qgroundcontrol.rc
Don Gagne's avatar
Don Gagne committed
102
}
Lorenz Meier's avatar
Lorenz Meier committed
103

Don Gagne's avatar
Don Gagne committed
104
#
Bryant's avatar
Bryant committed
105
# Build-specific settings
Don Gagne's avatar
Don Gagne committed
106
#
Lorenz Meier's avatar
Lorenz Meier committed
107

Don Gagne's avatar
Don Gagne committed
108
DebugBuild {
dogmaphobic's avatar
dogmaphobic committed
109
!iOSBuild {
Don Gagne's avatar
Don Gagne committed
110
    CONFIG += console
Lorenz Meier's avatar
Lorenz Meier committed
111
}
dogmaphobic's avatar
dogmaphobic committed
112
}
Lorenz Meier's avatar
Lorenz Meier committed
113

dogmaphobic's avatar
dogmaphobic committed
114
!MobileBuild {
115 116
# qextserialport should not be used by general QGroundControl code. Use QSerialPort instead. This is only
# here to support special case Firmware Upgrade code.
117
include(libs/qextserialport/src/qextserialport.pri)
118
}
119

Don Gagne's avatar
Don Gagne committed
120 121 122
#
# External library configuration
#
123

Don Gagne's avatar
Don Gagne committed
124
include(QGCExternalLibs.pri)
125

Don Gagne's avatar
Don Gagne committed
126 127 128
#
# Main QGroundControl portion of project file
#
129

130 131 132
RESOURCES += \
    qgroundcontrol.qrc \
    qgcresources.qrc
Bill Bonney's avatar
Bill Bonney committed
133

Don Gagne's avatar
Don Gagne committed
134 135
DEPENDPATH += \
    . \
Bill Bonney's avatar
Bill Bonney committed
136 137 138
    plugins

INCLUDEPATH += .
Lorenz Meier's avatar
Lorenz Meier committed
139

Don Gagne's avatar
Don Gagne committed
140
INCLUDEPATH += \
dogmaphobic's avatar
dogmaphobic committed
141
    include/ui \
Don Gagne's avatar
Don Gagne committed
142
    src \
143
    src/audio \
dogmaphobic's avatar
dogmaphobic committed
144 145
    src/AutoPilotPlugins \
    src/comm \
146
    src/FlightDisplay \
147
    src/FlightMap \
Don Gagne's avatar
Don Gagne committed
148
    src/input \
149
    src/Joystick \
Don Gagne's avatar
Don Gagne committed
150
    src/lib/qmapcontrol \
Don Gagne's avatar
Don Gagne committed
151
    src/MissionEditor \
Don Gagne's avatar
Don Gagne committed
152
    src/MissionManager \
dogmaphobic's avatar
dogmaphobic committed
153 154 155 156 157 158
    src/QmlControls \
    src/uas \
    src/ui \
    src/ui/linechart \
    src/ui/map \
    src/ui/mapdisplay \
Don Gagne's avatar
Don Gagne committed
159
    src/ui/mission \
160
    src/ui/px4_configuration \
dogmaphobic's avatar
dogmaphobic committed
161
    src/ui/toolbar \
dogmaphobic's avatar
dogmaphobic committed
162
    src/ui/uas \
163
    src/VehicleSetup \
dogmaphobic's avatar
dogmaphobic committed
164
    src/ViewWidgets \
Lorenz Meier's avatar
Lorenz Meier committed
165

Don Gagne's avatar
Don Gagne committed
166
FORMS += \
dogmaphobic's avatar
dogmaphobic committed
167
    src/QGCQmlWidgetHolder.ui \
Don Gagne's avatar
Don Gagne committed
168
    src/ui/LogReplayLinkConfigurationWidget.ui \
dogmaphobic's avatar
dogmaphobic committed
169 170
    src/ui/MainWindow.ui \
    src/ui/MAVLinkSettingsWidget.ui \
171
    src/ui/MockLinkConfiguration.ui \
dogmaphobic's avatar
dogmaphobic committed
172 173 174 175 176 177 178 179
    src/ui/QGCCommConfiguration.ui \
    src/ui/QGCLinkConfiguration.ui \
    src/ui/QGCMapRCToParamDialog.ui \
    src/ui/QGCMAVLinkLogPlayer.ui \
    src/ui/QGCPluginHost.ui \
    src/ui/QGCTCPLinkConfiguration.ui \
    src/ui/QGCUDPLinkConfiguration.ui \
    src/ui/SettingsDialog.ui \
180
    src/ui/uas/QGCUnconnectedInfoWidget.ui \
dogmaphobic's avatar
dogmaphobic committed
181
    src/ui/uas/UASMessageView.ui \
182

dogmaphobic's avatar
dogmaphobic committed
183 184 185 186 187 188
!iOSBuild {
FORMS += \
    src/ui/SerialSettings.ui \
}

!MobileBuild {
dogmaphobic's avatar
dogmaphobic committed
189
FORMS += \
Don Gagne's avatar
Don Gagne committed
190
    src/ui/Linechart.ui \
191
    src/ui/MultiVehicleDockWidget.ui \
Don Gagne's avatar
Don Gagne committed
192
    src/ui/QGCDataPlot2D.ui \
dogmaphobic's avatar
dogmaphobic committed
193 194 195 196
    src/ui/QGCHilConfiguration.ui \
    src/ui/QGCHilFlightGearConfiguration.ui \
    src/ui/QGCHilJSBSimConfiguration.ui \
    src/ui/QGCHilXPlaneConfiguration.ui \
197 198 199 200 201 202 203 204 205
    src/ui/QGCMAVLinkInspector.ui \
    src/ui/QGCTabbedInfoView.ui \
    src/ui/QGCUASFileView.ui \
    src/ui/QGCUASFileViewMulti.ui \
    src/ui/uas/UASQuickView.ui \
    src/ui/uas/UASQuickViewItemSelect.ui \
    src/ui/UASInfo.ui \
    src/ui/UASRawStatusView.ui \
}
dogmaphobic's avatar
dogmaphobic committed
206

Don Gagne's avatar
Don Gagne committed
207
HEADERS += \
dogmaphobic's avatar
dogmaphobic committed
208 209 210
    src/audio/QGCAudioWorker.h \
    src/CmdLineOptParser.h \
    src/comm/LinkConfiguration.h \
Lorenz Meier's avatar
Lorenz Meier committed
211
    src/comm/LinkInterface.h \
dogmaphobic's avatar
dogmaphobic committed
212
    src/comm/LinkManager.h \
Don Gagne's avatar
Don Gagne committed
213
    src/comm/LogReplayLink.h \
Lorenz Meier's avatar
Lorenz Meier committed
214
    src/comm/MAVLinkProtocol.h \
215
    src/comm/MockLink.h \
216
    src/comm/MockLinkFileServer.h \
217
    src/comm/MockLinkMissionItemHandler.h \
dogmaphobic's avatar
dogmaphobic committed
218 219
    src/comm/ProtocolInterface.h \
    src/comm/QGCMAVLink.h \
Don Gagne's avatar
Don Gagne committed
220
    src/comm/TCPLink.h \
dogmaphobic's avatar
dogmaphobic committed
221
    src/comm/UDPLink.h \
222
    src/FlightDisplay/FlightDisplayWidget.h \
223
    src/FlightDisplay/FlightDisplayViewController.h \
224
    src/FlightMap/FlightMapSettings.h \
Lorenz Meier's avatar
Lorenz Meier committed
225
    src/GAudioOutput.h \
226
    src/HomePositionManager.h \
227 228
    src/Joystick/Joystick.h \
    src/Joystick/JoystickManager.h \
Lorenz Meier's avatar
Lorenz Meier committed
229
    src/LogCompressor.h \
dogmaphobic's avatar
dogmaphobic committed
230
    src/MG.h \
Don Gagne's avatar
Don Gagne committed
231
    src/MissionManager/MissionManager.h \
232
    src/MissionManager/MissionController.h \
Lorenz Meier's avatar
Lorenz Meier committed
233
    src/QGC.h \
dogmaphobic's avatar
dogmaphobic committed
234 235 236
    src/QGCApplication.h \
    src/QGCComboBox.h \
    src/QGCConfig.h \
237
    src/QGCDockWidget.h \
dogmaphobic's avatar
dogmaphobic committed
238 239 240 241 242 243 244 245 246
    src/QGCFileDialog.h \
    src/QGCGeo.h \
    src/QGCLoggingCategory.h \
    src/QGCMessageBox.h \
    src/QGCPalette.h \
    src/QGCQmlWidgetHolder.h \
    src/QGCQuickWidget.h \
    src/QGCSingleton.h \
    src/QGCTemporaryFile.h \
247
    src/QmlControls/CoordinateVector.h \
248
    src/QmlControls/MavlinkQmlSingleton.h \
dogmaphobic's avatar
dogmaphobic committed
249
    src/QmlControls/ParameterEditorController.h \
Don Gagne's avatar
Don Gagne committed
250
    src/QmlControls/ScreenToolsController.h \
251
    src/QmlControls/QGCQGeoCoordinate.h \
252
    src/QmlControls/QGroundControlQmlGlobal.h \
253
    src/QmlControls/QmlObjectListModel.h \
254
    src/SerialPortIds.h \
255
    src/uas/FileManager.h \
dogmaphobic's avatar
dogmaphobic committed
256 257 258
    src/uas/UAS.h \
    src/uas/UASInterface.h \
    src/uas/UASMessageHandler.h \
Don Gagne's avatar
Don Gagne committed
259
    src/ui/LogReplayLinkConfigurationWidget.h \
dogmaphobic's avatar
dogmaphobic committed
260 261 262
    src/ui/MainWindow.h \
    src/ui/MAVLinkDecoder.h \
    src/ui/MAVLinkSettingsWidget.h \
263
    src/ui/MockLinkConfiguration.h \
dogmaphobic's avatar
dogmaphobic committed
264 265 266 267 268 269 270 271
    src/ui/QGCCommConfiguration.h \
    src/ui/QGCLinkConfiguration.h \
    src/ui/QGCMapRCToParamDialog.h \
    src/ui/QGCMAVLinkLogPlayer.h \
    src/ui/QGCPluginHost.h \
    src/ui/QGCTCPLinkConfiguration.h \
    src/ui/QGCUDPLinkConfiguration.h \
    src/ui/SettingsDialog.h \
272
    src/ui/toolbar/MainToolBarController.h \
273
    src/ui/uas/QGCUnconnectedInfoWidget.h \
dogmaphobic's avatar
dogmaphobic committed
274
    src/ui/uas/UASMessageView.h \
275
    src/MissionItem.h \
276
    src/AutoPilotPlugins/PX4/PX4AirframeLoader.h
Lorenz Meier's avatar
Lorenz Meier committed
277

278 279 280 281 282
WindowsBuild {
    PRECOMPILED_HEADER += src/stable_headers.h
    HEADERS += src/stable_headers.h
}

Lorenz Meier's avatar
Lorenz Meier committed
283

dogmaphobic's avatar
dogmaphobic committed
284
!iOSBuild {
dogmaphobic's avatar
dogmaphobic committed
285
HEADERS += \
dogmaphobic's avatar
dogmaphobic committed
286 287 288 289 290 291 292 293 294 295 296
    src/comm/SerialLink.h \
    src/ui/SerialConfigurationWindow.h \
}

!MobileBuild {
HEADERS += \
    src/comm/QGCFlightGearLink.h \
    src/comm/QGCHilLink.h \
    src/comm/QGCJSBSimLink.h \
    src/comm/QGCXPlaneLink.h \
    src/ui/CameraView.h \
297
    src/ui/HILDockWidget.h \
Don Gagne's avatar
Don Gagne committed
298 299 300 301 302 303 304
    src/ui/linechart/ChartPlot.h \
    src/ui/linechart/IncrementalPlot.h \
    src/ui/linechart/LinechartPlot.h \
    src/ui/linechart/Linecharts.h \
    src/ui/linechart/LinechartWidget.h \
    src/ui/linechart/Scrollbar.h \
    src/ui/linechart/ScrollZoomer.h \
305
    src/ui/MultiVehicleDockWidget.h \
Don Gagne's avatar
Don Gagne committed
306
    src/ui/QGCDataPlot2D.h \
dogmaphobic's avatar
dogmaphobic committed
307 308 309 310
    src/ui/QGCHilConfiguration.h \
    src/ui/QGCHilFlightGearConfiguration.h \
    src/ui/QGCHilJSBSimConfiguration.h \
    src/ui/QGCHilXPlaneConfiguration.h \
311 312 313 314 315 316 317 318 319 320 321
    src/ui/QGCMAVLinkInspector.h \
    src/ui/QGCTabbedInfoView.h \
    src/ui/QGCUASFileView.h \
    src/ui/QGCUASFileViewMulti.h \
    src/ui/uas/UASInfoWidget.h \
    src/ui/uas/UASQuickView.h \
    src/ui/uas/UASQuickViewGaugeItem.h \
    src/ui/uas/UASQuickViewItem.h \
    src/ui/uas/UASQuickViewItemSelect.h \
    src/ui/uas/UASQuickViewTextItem.h \
    src/ui/UASRawStatusView.h \
322
    src/VehicleSetup/JoystickConfigController.h \
323 324 325 326
    src/ViewWidgets/CustomCommandWidget.h \
    src/ViewWidgets/CustomCommandWidgetController.h \
    src/ViewWidgets/ViewWidgetController.h \
}
dogmaphobic's avatar
dogmaphobic committed
327

Don Gagne's avatar
Don Gagne committed
328
SOURCES += \
dogmaphobic's avatar
dogmaphobic committed
329 330 331
    src/audio/QGCAudioWorker.cpp \
    src/CmdLineOptParser.cc \
    src/comm/LinkConfiguration.cc \
Lorenz Meier's avatar
Lorenz Meier committed
332
    src/comm/LinkManager.cc \
Don Gagne's avatar
Don Gagne committed
333
    src/comm/LogReplayLink.cc \
Lorenz Meier's avatar
Lorenz Meier committed
334
    src/comm/MAVLinkProtocol.cc \
335
    src/comm/MockLink.cc \
336
    src/comm/MockLinkFileServer.cc \
337
    src/comm/MockLinkMissionItemHandler.cc \
Don Gagne's avatar
Don Gagne committed
338
    src/comm/TCPLink.cc \
dogmaphobic's avatar
dogmaphobic committed
339
    src/comm/UDPLink.cc \
340
    src/FlightDisplay/FlightDisplayWidget.cc \
341
    src/FlightDisplay/FlightDisplayViewController.cc \
342
    src/FlightMap/FlightMapSettings.cc \
Lorenz Meier's avatar
Lorenz Meier committed
343
    src/GAudioOutput.cc \
344
    src/HomePositionManager.cc \
345 346
    src/Joystick/Joystick.cc \
    src/Joystick/JoystickManager.cc \
Lorenz Meier's avatar
Lorenz Meier committed
347
    src/LogCompressor.cc \
dogmaphobic's avatar
dogmaphobic committed
348
    src/main.cc \
Don Gagne's avatar
Don Gagne committed
349
    src/MissionManager/MissionManager.cc \
350
    src/MissionManager/MissionController.cc \
Lorenz Meier's avatar
Lorenz Meier committed
351
    src/QGC.cc \
dogmaphobic's avatar
dogmaphobic committed
352 353
    src/QGCApplication.cc \
    src/QGCComboBox.cc \
354
    src/QGCDockWidget.cc \
dogmaphobic's avatar
dogmaphobic committed
355 356 357 358 359 360 361
    src/QGCFileDialog.cc \
    src/QGCLoggingCategory.cc \
    src/QGCPalette.cc \
    src/QGCQmlWidgetHolder.cpp \
    src/QGCQuickWidget.cc \
    src/QGCSingleton.cc \
    src/QGCTemporaryFile.cc \
362
    src/QmlControls/CoordinateVector.cc \
dogmaphobic's avatar
dogmaphobic committed
363
    src/QmlControls/ParameterEditorController.cc \
Don Gagne's avatar
Don Gagne committed
364
    src/QmlControls/ScreenToolsController.cc \
365
    src/QmlControls/QGCQGeoCoordinate.cc \
366
    src/QmlControls/QGroundControlQmlGlobal.cc \
367
    src/QmlControls/QmlObjectListModel.cc \
368
    src/uas/FileManager.cc \
dogmaphobic's avatar
dogmaphobic committed
369 370
    src/uas/UAS.cc \
    src/uas/UASMessageHandler.cc \
Don Gagne's avatar
Don Gagne committed
371
    src/ui/LogReplayLinkConfigurationWidget.cc \
dogmaphobic's avatar
dogmaphobic committed
372 373 374
    src/ui/MainWindow.cc \
    src/ui/MAVLinkDecoder.cc \
    src/ui/MAVLinkSettingsWidget.cc \
375
    src/ui/MockLinkConfiguration.cc \
dogmaphobic's avatar
dogmaphobic committed
376 377 378 379 380 381
    src/ui/QGCCommConfiguration.cc \
    src/ui/QGCLinkConfiguration.cc \
    src/ui/QGCMapRCToParamDialog.cpp \
    src/ui/QGCMAVLinkLogPlayer.cc \
    src/ui/QGCPluginHost.cc \
    src/ui/QGCTCPLinkConfiguration.cc \
382
    src/ui/QGCUDPLinkConfiguration.cc \
dogmaphobic's avatar
dogmaphobic committed
383
    src/ui/SettingsDialog.cc \
384
    src/ui/toolbar/MainToolBarController.cc \
385
    src/ui/uas/QGCUnconnectedInfoWidget.cc \
dogmaphobic's avatar
dogmaphobic committed
386
    src/ui/uas/UASMessageView.cc \
387
    src/MissionItem.cc \
388
    src/AutoPilotPlugins/PX4/PX4AirframeLoader.cc
389

dogmaphobic's avatar
dogmaphobic committed
390
!iOSBuild {
dogmaphobic's avatar
dogmaphobic committed
391
SOURCES += \
dogmaphobic's avatar
dogmaphobic committed
392 393 394 395 396 397 398 399 400 401
    src/comm/SerialLink.cc \
    src/ui/SerialConfigurationWindow.cc \
}

!MobileBuild {
SOURCES += \
    src/comm/QGCFlightGearLink.cc \
    src/comm/QGCJSBSimLink.cc \
    src/comm/QGCXPlaneLink.cc \
    src/ui/CameraView.cc \
402
    src/ui/HILDockWidget.cc \
Don Gagne's avatar
Don Gagne committed
403 404 405 406 407 408 409
    src/ui/linechart/ChartPlot.cc \
    src/ui/linechart/IncrementalPlot.cc \
    src/ui/linechart/LinechartPlot.cc \
    src/ui/linechart/Linecharts.cc \
    src/ui/linechart/LinechartWidget.cc \
    src/ui/linechart/Scrollbar.cc \
    src/ui/linechart/ScrollZoomer.cc \
410
    src/ui/MultiVehicleDockWidget.cc \
Don Gagne's avatar
Don Gagne committed
411
    src/ui/QGCDataPlot2D.cc \
dogmaphobic's avatar
dogmaphobic committed
412 413 414 415
    src/ui/QGCHilConfiguration.cc \
    src/ui/QGCHilFlightGearConfiguration.cc \
    src/ui/QGCHilJSBSimConfiguration.cc \
    src/ui/QGCHilXPlaneConfiguration.cc \
416 417 418 419 420 421 422 423 424 425 426
    src/ui/QGCMAVLinkInspector.cc \
    src/ui/QGCTabbedInfoView.cpp \
    src/ui/QGCUASFileView.cc \
    src/ui/QGCUASFileViewMulti.cc \
    src/ui/uas/UASInfoWidget.cc \
    src/ui/uas/UASQuickView.cc \
    src/ui/uas/UASQuickViewGaugeItem.cc \
    src/ui/uas/UASQuickViewItem.cc \
    src/ui/uas/UASQuickViewItemSelect.cc \
    src/ui/uas/UASQuickViewTextItem.cc \
    src/ui/UASRawStatusView.cpp \
427
    src/VehicleSetup/JoystickConfigController.cc \
428 429 430 431
    src/ViewWidgets/CustomCommandWidget.cc \
    src/ViewWidgets/CustomCommandWidgetController.cc \
    src/ViewWidgets/ViewWidgetController.cc \
}
dogmaphobic's avatar
dogmaphobic committed
432

433 434
#
# Unit Test specific configuration goes here
435 436
#
# We have to special case Windows debug_and_release builds because you can't have files
437 438
# which are only in the debug variant [QTBUG-40351]. So in this case we include unit tests
# even in the release variant. If you want a Windows release build with no unit tests run
439 440 441 442 443
# qmake with CONFIG-=debug_and_release CONFIG+=release.
#

DebugBuild|WindowsDebugAndRelease {

dogmaphobic's avatar
dogmaphobic committed
444 445 446
HEADERS += src/QmlControls/QmlTestWidget.h
SOURCES += src/QmlControls/QmlTestWidget.cc

dogmaphobic's avatar
dogmaphobic committed
447
!MobileBuild {
dogmaphobic's avatar
dogmaphobic committed
448

449 450 451 452
INCLUDEPATH += \
	src/qgcunittest

HEADERS += \
dogmaphobic's avatar
dogmaphobic committed
453 454 455
    src/FactSystem/FactSystemTestBase.h \
    src/FactSystem/FactSystemTestGeneric.h \
    src/FactSystem/FactSystemTestPX4.h \
Don Gagne's avatar
Don Gagne committed
456
    src/MissionItemTest.h \
457 458
    src/MissionManager/MissionControllerTest.h \
    src/MissionManager/MissionControllerManagerTest.h \
Don Gagne's avatar
Don Gagne committed
459
    src/MissionManager/MissionManagerTest.h \
460
    src/qgcunittest/FileDialogTest.h \
Don Gagne's avatar
Don Gagne committed
461 462
    src/qgcunittest/FileManagerTest.h \
    src/qgcunittest/FlightGearTest.h \
Don Gagne's avatar
Don Gagne committed
463
    src/qgcunittest/LinkManagerTest.h \
464
    src/qgcunittest/MainWindowTest.h \
Don Gagne's avatar
Don Gagne committed
465
    src/qgcunittest/MavlinkLogTest.h \
dogmaphobic's avatar
dogmaphobic committed
466
    src/qgcunittest/MessageBoxTest.h \
Don Gagne's avatar
Don Gagne committed
467 468 469 470
    src/qgcunittest/MultiSignalSpy.h \
    src/qgcunittest/PX4RCCalibrationTest.h \
    src/qgcunittest/TCPLinkTest.h \
    src/qgcunittest/TCPLoopBackServer.h \
dogmaphobic's avatar
dogmaphobic committed
471
    src/qgcunittest/UnitTest.h \
472
    src/VehicleSetup/SetupViewTest.h \
Don Gagne's avatar
Don Gagne committed
473

474
SOURCES += \
dogmaphobic's avatar
dogmaphobic committed
475 476 477
    src/FactSystem/FactSystemTestBase.cc \
    src/FactSystem/FactSystemTestGeneric.cc \
    src/FactSystem/FactSystemTestPX4.cc \
Don Gagne's avatar
Don Gagne committed
478
    src/MissionItemTest.cc \
479 480
    src/MissionManager/MissionControllerTest.cc \
    src/MissionManager/MissionControllerManagerTest.cc \
Don Gagne's avatar
Don Gagne committed
481
    src/MissionManager/MissionManagerTest.cc \
482
    src/qgcunittest/FileDialogTest.cc \
Don Gagne's avatar
Don Gagne committed
483 484
    src/qgcunittest/FileManagerTest.cc \
    src/qgcunittest/FlightGearTest.cc \
Don Gagne's avatar
Don Gagne committed
485
    src/qgcunittest/LinkManagerTest.cc \
486
    src/qgcunittest/MainWindowTest.cc \
Don Gagne's avatar
Don Gagne committed
487
    src/qgcunittest/MavlinkLogTest.cc \
dogmaphobic's avatar
dogmaphobic committed
488
    src/qgcunittest/MessageBoxTest.cc \
Don Gagne's avatar
Don Gagne committed
489 490 491 492
    src/qgcunittest/MultiSignalSpy.cc \
    src/qgcunittest/PX4RCCalibrationTest.cc \
    src/qgcunittest/TCPLinkTest.cc \
    src/qgcunittest/TCPLoopBackServer.cc \
dogmaphobic's avatar
dogmaphobic committed
493
    src/qgcunittest/UnitTest.cc \
494
    src/VehicleSetup/SetupViewTest.cc \
dogmaphobic's avatar
dogmaphobic committed
495
} # DebugBuild|WindowsDebugAndRelease
dogmaphobic's avatar
dogmaphobic committed
496
} # MobileBuild
497 498

#
Don Gagne's avatar
Don Gagne committed
499
# Firmware Plugin Support
500
#
501 502

INCLUDEPATH += \
503
    src/AutoPilotPlugins/PX4 \
Don Gagne's avatar
Don Gagne committed
504
    src/FirmwarePlugin \
505
    src/Vehicle \
Don Gagne's avatar
Don Gagne committed
506
    src/VehicleSetup \
507

508 509
HEADERS+= \
    src/AutoPilotPlugins/AutoPilotPlugin.h \
dogmaphobic's avatar
dogmaphobic committed
510
    src/AutoPilotPlugins/AutoPilotPluginManager.h \
511
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.h \
512
    src/AutoPilotPlugins/Generic/GenericParameterFacts.h \
513
    src/AutoPilotPlugins/PX4/AirframeComponent.h \
514 515
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.h \
    src/AutoPilotPlugins/PX4/AirframeComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
516 517
    src/AutoPilotPlugins/PX4/FlightModesComponent.h \
    src/AutoPilotPlugins/PX4/FlightModesComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
518
    src/AutoPilotPlugins/PX4/PowerComponent.h \
519
    src/AutoPilotPlugins/PX4/PowerComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
520 521
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.h \
    src/AutoPilotPlugins/PX4/PX4Component.h \
522
    src/AutoPilotPlugins/PX4/PX4ParameterLoader.h \
dogmaphobic's avatar
dogmaphobic committed
523
    src/AutoPilotPlugins/PX4/RadioComponent.h \
Don Gagne's avatar
Don Gagne committed
524
    src/AutoPilotPlugins/PX4/RadioComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
525 526 527
    src/AutoPilotPlugins/PX4/SafetyComponent.h \
    src/AutoPilotPlugins/PX4/SensorsComponent.h \
    src/AutoPilotPlugins/PX4/SensorsComponentController.h \
528 529
    src/FirmwarePlugin/FirmwarePluginManager.h \
    src/FirmwarePlugin/FirmwarePlugin.h \
Don Gagne's avatar
Don Gagne committed
530
    src/FirmwarePlugin/APM/APMFirmwarePlugin.h \
531
    src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.h \
532 533
    src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h \
    src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h \
534 535 536 537
    src/FirmwarePlugin/Generic/GenericFirmwarePlugin.h \
    src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h \
    src/Vehicle/MultiVehicleManager.h \
    src/Vehicle/Vehicle.h \
dogmaphobic's avatar
dogmaphobic committed
538
    src/VehicleSetup/VehicleComponent.h \
539

dogmaphobic's avatar
dogmaphobic committed
540
!MobileBuild {
541 542
HEADERS += \
    src/VehicleSetup/FirmwareUpgradeController.h \
543 544 545 546
    src/VehicleSetup/Bootloader.h \
    src/VehicleSetup/PX4FirmwareUpgradeThread.h \
    src/VehicleSetup/FirmwareImage.h \

547 548
}

549
SOURCES += \
550
    src/AutoPilotPlugins/AutoPilotPlugin.cc \
dogmaphobic's avatar
dogmaphobic committed
551
    src/AutoPilotPlugins/AutoPilotPluginManager.cc \
552
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.cc \
553
    src/AutoPilotPlugins/Generic/GenericParameterFacts.cc \
554
    src/AutoPilotPlugins/PX4/AirframeComponent.cc \
555 556
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.cc \
    src/AutoPilotPlugins/PX4/AirframeComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
557 558
    src/AutoPilotPlugins/PX4/FlightModesComponent.cc \
    src/AutoPilotPlugins/PX4/FlightModesComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
559
    src/AutoPilotPlugins/PX4/PowerComponent.cc \
560
    src/AutoPilotPlugins/PX4/PowerComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
561 562
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc \
    src/AutoPilotPlugins/PX4/PX4Component.cc \
563
    src/AutoPilotPlugins/PX4/PX4ParameterLoader.cc \
dogmaphobic's avatar
dogmaphobic committed
564
    src/AutoPilotPlugins/PX4/RadioComponent.cc \
Don Gagne's avatar
Don Gagne committed
565
    src/AutoPilotPlugins/PX4/RadioComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
566 567 568
    src/AutoPilotPlugins/PX4/SafetyComponent.cc \
    src/AutoPilotPlugins/PX4/SensorsComponent.cc \
    src/AutoPilotPlugins/PX4/SensorsComponentController.cc \
Don Gagne's avatar
Don Gagne committed
569
    src/FirmwarePlugin/APM/APMFirmwarePlugin.cc \
570
    src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc \
571 572
    src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc \
    src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc \
573 574 575 576 577
    src/FirmwarePlugin/FirmwarePluginManager.cc \
    src/FirmwarePlugin/Generic/GenericFirmwarePlugin.cc \
    src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc \
    src/Vehicle/MultiVehicleManager.cc \
    src/Vehicle/Vehicle.cc \
dogmaphobic's avatar
dogmaphobic committed
578
    src/VehicleSetup/VehicleComponent.cc \
Don Gagne's avatar
Don Gagne committed
579

dogmaphobic's avatar
dogmaphobic committed
580
!MobileBuild {
581 582
SOURCES += \
    src/VehicleSetup/FirmwareUpgradeController.cc \
583 584 585 586
    src/VehicleSetup/Bootloader.cc \
    src/VehicleSetup/PX4FirmwareUpgradeThread.cc \
    src/VehicleSetup/FirmwareImage.cc \

587 588
}

Don Gagne's avatar
Don Gagne committed
589 590 591
# Fact System code

INCLUDEPATH += \
592 593
    src/FactSystem \
    src/FactSystem/FactControls \
Don Gagne's avatar
Don Gagne committed
594 595 596 597

HEADERS += \
    src/FactSystem/Fact.h \
    src/FactSystem/FactMetaData.h \
dogmaphobic's avatar
dogmaphobic committed
598
    src/FactSystem/FactSystem.h \
Don Gagne's avatar
Don Gagne committed
599
    src/FactSystem/FactValidator.h \
600
    src/FactSystem/ParameterLoader.h \
601
    src/FactSystem/FactControls/FactPanelController.h \
Don Gagne's avatar
Don Gagne committed
602 603 604 605

SOURCES += \
    src/FactSystem/Fact.cc \
    src/FactSystem/FactMetaData.cc \
dogmaphobic's avatar
dogmaphobic committed
606
    src/FactSystem/FactSystem.cc \
Don Gagne's avatar
Don Gagne committed
607
    src/FactSystem/FactValidator.cc \
608
    src/FactSystem/ParameterLoader.cc \
609
    src/FactSystem/FactControls/FactPanelController.cc \
dogmaphobic's avatar
dogmaphobic committed
610

611
#-------------------------------------------------------------------------------------
Gus Grubba's avatar
Gus Grubba committed
612
# Video Streaming
613 614 615 616 617 618 619

INCLUDEPATH += \
    src/VideoStreaming

HEADERS += \
    src/VideoStreaming/VideoItem.h \
    src/VideoStreaming/VideoReceiver.h \
620
    src/VideoStreaming/VideoStreaming.h \
621 622 623 624 625 626
    src/VideoStreaming/VideoSurface.h \
    src/VideoStreaming/VideoSurface_p.h \

SOURCES += \
    src/VideoStreaming/VideoItem.cc \
    src/VideoStreaming/VideoReceiver.cc \
627
    src/VideoStreaming/VideoStreaming.cc \
628 629
    src/VideoStreaming/VideoSurface.cc \

Gus Grubba's avatar
Gus Grubba committed
630 631 632 633 634 635 636 637 638 639
contains (DEFINES, DISABLE_VIDEOSTREAMING) {
    message("Skipping support for video streaming (manual override from command line)")
    DEFINES -= DISABLE_VIDEOSTREAMING
# Otherwise the user can still disable this feature in the user_config.pri file.
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, DISABLE_VIDEOSTREAMING) {
    message("Skipping support for video streaming (manual override from user_config.pri)")
} else {
    include(src/VideoStreaming/VideoStreaming.pri)
}

640
#-------------------------------------------------------------------------------------
dogmaphobic's avatar
dogmaphobic committed
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662
# Android

AndroidBuild {
    include($$PWD/libs/qtandroidserialport/src/qtandroidserialport.pri)
    message("Adding Serial Java Classes")
    QT += androidextras
    ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
    OTHER_FILES += \
        $$PWD/android/AndroidManifest.xml \
        $$PWD/android/res/xml/device_filter.xml \
        $$PWD/android/src/com/hoho/android/usbserial/driver/CdcAcmSerialDriver.java \
        $$PWD/android/src/com/hoho/android/usbserial/driver/CommonUsbSerialDriver.java \
        $$PWD/android/src/com/hoho/android/usbserial/driver/Cp2102SerialDriver.java \
        $$PWD/android/src/com/hoho/android/usbserial/driver/FtdiSerialDriver.java \
        $$PWD/android/src/com/hoho/android/usbserial/driver/ProlificSerialDriver.java \
        $$PWD/android/src/com/hoho/android/usbserial/driver/UsbId.java \
        $$PWD/android/src/com/hoho/android/usbserial/driver/UsbSerialDriver.java \
        $$PWD/android/src/com/hoho/android/usbserial/driver/UsbSerialProber.java \
        $$PWD/android/src/com/hoho/android/usbserial/driver/UsbSerialRuntimeException.java \
        $$PWD/android/src/org/qgroundcontrol/qgchelper/UsbDeviceJNI.java \
        $$PWD/android/src/org/qgroundcontrol/qgchelper/UsbIoManager.java
}
663 664 665 666 667 668 669 670 671 672 673 674 675

#-------------------------------------------------------------------------------------
#
# Post link configuration
#

include(QGCSetup.pri)

#
# Installer targets
#

include(QGCInstaller.pri)
Daniel Agar's avatar
Daniel Agar committed
676 677 678 679 680 681 682 683

DISTFILES += \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradlew \
    android/res/values/libs.xml \
    android/build.gradle \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew.bat