QGCApplication.pro 20.9 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)
Don Gagne's avatar
Don Gagne committed
21

22
TARGET = qgroundcontrol
dogmaphobic's avatar
dogmaphobic committed
23

24 25 26 27 28 29
# 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)))
}

30 31
LinuxBuild {
    CONFIG += link_pkgconfig
Don Gagne's avatar
Don Gagne committed
32
}
33

Don Gagne's avatar
Don Gagne committed
34
message(BASEDIR $$BASEDIR DESTDIR $$DESTDIR TARGET $$TARGET)
Lorenz Meier's avatar
Lorenz Meier committed
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

Don Gagne's avatar
Don Gagne committed
41
LinuxBuild|MacBuild {
42
    PRE_TARGETDEPS += $${LOCATION_PLUGIN_DESTDIR}/lib$${LOCATION_PLUGIN_NAME}.a
43 44 45
}

WindowsBuild {
Don Gagne's avatar
Don Gagne committed
46
    PRE_TARGETDEPS += $${LOCATION_PLUGIN_DESTDIR}/$${LOCATION_PLUGIN_NAME}.lib
47 48
}

Lorenz Meier's avatar
Lorenz Meier committed
49
# Qt configuration
50

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

Lorenz Meier's avatar
Lorenz Meier committed
54 55 56 57
QT += network \
    opengl \
    svg \
    xml \
58 59 60
    concurrent \
    widgets \
    gui \
61
    serialport \
62
    sql \
63
    printsupport \
Don Gagne's avatar
Don Gagne committed
64
    qml \
65
    quick \
66 67 68
    quickwidgets \
    location \
    positioning
69 70 71 72

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

74 75
#  testlib is needed even in release flavor for QSignalSpy support
QT += testlib
Don Gagne's avatar
Don Gagne committed
76

Don Gagne's avatar
Don Gagne committed
77 78 79
#
# OS Specific settings
#
80

Don Gagne's avatar
Don Gagne committed
81 82
MacBuild {
    QMAKE_INFO_PLIST = Custom-Info.plist
Don Gagne's avatar
Don Gagne committed
83
    ICON = $$BASEDIR/resources/icons/macx.icns
84
    QT += quickwidgets
Don Gagne's avatar
Don Gagne committed
85
}
86

Don Gagne's avatar
Don Gagne committed
87
LinuxBuild {
88
    CONFIG += qesp_linux_udev
Don Gagne's avatar
Don Gagne committed
89 90 91 92 93
}

WindowsBuild {
	RC_FILE = $$BASEDIR/qgroundcontrol.rc
}
Lorenz Meier's avatar
Lorenz Meier committed
94

Don Gagne's avatar
Don Gagne committed
95
#
Bryant's avatar
Bryant committed
96
# Build-specific settings
Don Gagne's avatar
Don Gagne committed
97
#
Lorenz Meier's avatar
Lorenz Meier committed
98

Don Gagne's avatar
Don Gagne committed
99 100
DebugBuild {
    CONFIG += console
Lorenz Meier's avatar
Lorenz Meier committed
101 102
}

103 104
# qextserialport should not be used by general QGroundControl code. Use QSerialPort instead. This is only
# here to support special case Firmware Upgrade code.
105 106
include(libs/qextserialport/src/qextserialport.pri)

Don Gagne's avatar
Don Gagne committed
107 108 109
#
# External library configuration
#
110

Don Gagne's avatar
Don Gagne committed
111
include(QGCExternalLibs.pri)
112

Don Gagne's avatar
Don Gagne committed
113 114 115
#
# Post link configuration
#
116

Don Gagne's avatar
Don Gagne committed
117
include(QGCSetup.pri)
118

119 120 121 122 123 124
#
# Installer targets
#

include(QGCInstaller.pri)

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

Don Gagne's avatar
Don Gagne committed
129
RESOURCES += qgroundcontrol.qrc
Bill Bonney's avatar
Bill Bonney committed
130

Don Gagne's avatar
Don Gagne committed
131 132
DEPENDPATH += \
    . \
Bill Bonney's avatar
Bill Bonney committed
133 134 135
    plugins

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

Don Gagne's avatar
Don Gagne committed
137 138 139 140 141 142 143 144
INCLUDEPATH += \
    src \
    src/ui \
    src/ui/linechart \
    src/ui/uas \
    src/ui/map \
    src/uas \
    src/comm \
145
    src/audio \
Don Gagne's avatar
Don Gagne committed
146 147 148 149 150 151 152 153
    include/ui \
    src/input \
    src/lib/qmapcontrol \
    src/ui/mavlink \
    src/ui/map3D \
    src/ui/mission \
    src/ui/designer \
    src/ui/configuration \
154
    src/ui/px4_configuration \
155
    src/ui/main \
dogmaphobic's avatar
dogmaphobic committed
156
    src/ui/toolbar \
dogmaphobic's avatar
dogmaphobic committed
157
    src/ui/flightdisplay \
158
    src/ui/mapdisplay \
159
    src/VehicleSetup \
Don Gagne's avatar
Don Gagne committed
160
    src/AutoPilotPlugins \
161 162
    src/QmlControls \
    src/ViewWidgets
Lorenz Meier's avatar
Lorenz Meier committed
163

Don Gagne's avatar
Don Gagne committed
164 165
FORMS += \
    src/ui/MainWindow.ui \
Lorenz Meier's avatar
Lorenz Meier committed
166 167 168 169 170 171
    src/ui/SerialSettings.ui \
    src/ui/UASControl.ui \
    src/ui/UASList.ui \
    src/ui/UASInfo.ui \
    src/ui/Linechart.ui \
    src/ui/UASView.ui \
172
    src/ui/WaypointList.ui \
Lorenz Meier's avatar
Lorenz Meier committed
173 174 175 176 177 178 179 180 181 182 183
    src/ui/JoystickWidget.ui \
    src/ui/DebugConsole.ui \
    src/ui/HDDisplay.ui \
    src/ui/MAVLinkSettingsWidget.ui \
    src/ui/QGCDataPlot2D.ui \
    src/ui/QMap3D.ui \
    src/ui/uas/QGCUnconnectedInfoWidget.ui \
    src/ui/designer/QGCToolWidget.ui \
    src/ui/designer/QGCParamSlider.ui \
    src/ui/designer/QGCActionButton.ui \
    src/ui/designer/QGCCommandButton.ui \
184
    src/ui/designer/QGCToolWidgetComboBox.ui \
Don Gagne's avatar
Don Gagne committed
185 186
    src/ui/designer/QGCTextLabel.ui \
    src/ui/designer/QGCXYPlot.ui \
Lorenz Meier's avatar
Lorenz Meier committed
187 188
    src/ui/QGCMAVLinkLogPlayer.ui \
    src/ui/QGCWaypointListMulti.ui \
189
    src/ui/QGCUASFileViewMulti.ui \
Don Gagne's avatar
Don Gagne committed
190
    src/ui/QGCTCPLinkConfiguration.ui \
Don Gagne's avatar
Don Gagne committed
191
    src/ui/SettingsDialog.ui \
Lorenz Meier's avatar
Lorenz Meier committed
192 193 194
    src/ui/map/QGCMapTool.ui \
    src/ui/map/QGCMapToolBar.ui \
    src/ui/QGCMAVLinkInspector.ui \
195 196
    src/ui/WaypointViewOnlyView.ui \
    src/ui/WaypointEditableView.ui \
Lorenz Meier's avatar
Lorenz Meier committed
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
    src/ui/mavlink/QGCMAVLinkMessageSender.ui \
    src/ui/QGCPluginHost.ui \
    src/ui/mission/QGCMissionOther.ui \
    src/ui/mission/QGCMissionNavWaypoint.ui \
    src/ui/mission/QGCMissionDoJump.ui \
    src/ui/mission/QGCMissionConditionDelay.ui \
    src/ui/mission/QGCMissionNavLoiterUnlim.ui \
    src/ui/mission/QGCMissionNavLoiterTurns.ui \
    src/ui/mission/QGCMissionNavLoiterTime.ui \
    src/ui/mission/QGCMissionNavReturnToLaunch.ui \
    src/ui/mission/QGCMissionNavLand.ui \
    src/ui/mission/QGCMissionNavTakeoff.ui \
    src/ui/mission/QGCMissionNavSweep.ui \
    src/ui/mission/QGCMissionDoStartSearch.ui \
    src/ui/mission/QGCMissionDoFinishSearch.ui \
    src/ui/QGCHilConfiguration.ui \
    src/ui/QGCHilFlightGearConfiguration.ui \
    src/ui/QGCHilJSBSimConfiguration.ui \
215
    src/ui/QGCHilXPlaneConfiguration.ui \
216
    src/ui/uas/UASQuickView.ui \
217
    src/ui/uas/UASQuickViewItemSelect.ui \
218
    src/ui/QGCTabbedInfoView.ui \
219
    src/ui/UASRawStatusView.ui \
220
    src/ui/uas/UASMessageView.ui \
221
    src/ui/JoystickButton.ui \
222
    src/ui/JoystickAxis.ui \
223
    src/ui/configuration/terminalconsole.ui \
224
    src/ui/configuration/SerialSettingsDialog.ui \
225
    src/ui/px4_configuration/PX4RCCalibration.ui \
Don Gagne's avatar
Don Gagne committed
226 227
    src/ui/QGCUASFileView.ui \
    src/QGCQmlWidgetHolder.ui \
Don Gagne's avatar
Don Gagne committed
228
    src/ui/QGCMapRCToParamDialog.ui \
229 230 231
    src/ui/QGCLinkConfiguration.ui \
    src/ui/QGCCommConfiguration.ui \
    src/ui/QGCUDPLinkConfiguration.ui
232

Don Gagne's avatar
Don Gagne committed
233 234
HEADERS += \
    src/MG.h \
Don Gagne's avatar
Don Gagne committed
235
    src/QGCApplication.h \
236
    src/QGCSingleton.h \
Lorenz Meier's avatar
Lorenz Meier committed
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
    src/uas/UASInterface.h \
    src/uas/UAS.h \
    src/uas/UASManager.h \
    src/comm/LinkManager.h \
    src/comm/LinkInterface.h \
    src/comm/SerialLink.h \
    src/comm/ProtocolInterface.h \
    src/comm/MAVLinkProtocol.h \
    src/comm/QGCFlightGearLink.h \
    src/comm/QGCJSBSimLink.h \
    src/comm/QGCXPlaneLink.h \
    src/ui/SerialConfigurationWindow.h \
    src/ui/MainWindow.h \
    src/ui/uas/UASControlWidget.h \
    src/ui/uas/UASListWidget.h \
    src/ui/uas/UASInfoWidget.h \
    src/ui/HUD.h \
    src/ui/linechart/LinechartWidget.h \
    src/ui/linechart/LinechartPlot.h \
    src/ui/linechart/Scrollbar.h \
    src/ui/linechart/ScrollZoomer.h \
258
    src/QGCConfig.h \
Lorenz Meier's avatar
Lorenz Meier committed
259 260 261 262
    src/ui/uas/UASView.h \
    src/ui/CameraView.h \
    src/comm/MAVLinkSimulationLink.h \
    src/comm/UDPLink.h \
Don Gagne's avatar
Don Gagne committed
263
    src/comm/TCPLink.h \
264
    src/ViewWidgets/ParameterEditorWidget.h \
Lorenz Meier's avatar
Lorenz Meier committed
265
    src/ui/WaypointList.h \
266
    src/Waypoint.h \
Lorenz Meier's avatar
Lorenz Meier committed
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
    src/input/JoystickInput.h \
    src/ui/JoystickWidget.h \
    src/ui/DebugConsole.h \
    src/ui/HDDisplay.h \
    src/ui/MAVLinkSettingsWidget.h \
    src/GAudioOutput.h \
    src/LogCompressor.h \
    src/ui/linechart/Linecharts.h \
    src/uas/UASWaypointManager.h \
    src/ui/HSIDisplay.h \
    src/QGC.h \
    src/ui/QGCDataPlot2D.h \
    src/ui/linechart/IncrementalPlot.h \
    src/comm/QGCMAVLink.h \
    src/ui/QGCMainWindowAPConfigurator.h \
    src/comm/MAVLinkSwarmSimulationLink.h \
    src/ui/uas/QGCUnconnectedInfoWidget.h \
    src/ui/designer/QGCToolWidget.h \
    src/ui/designer/QGCParamSlider.h \
    src/ui/designer/QGCCommandButton.h \
    src/ui/designer/QGCToolWidgetItem.h \
288
    src/ui/designer/QGCToolWidgetComboBox.h \
Don Gagne's avatar
Don Gagne committed
289 290 291 292
    src/ui/designer/QGCTextLabel.h \
    src/ui/designer/QGCRadioChannelDisplay.h \
    src/ui/designer/QGCXYPlot.h \
    src/ui/designer/RCChannelWidget.h \
Lorenz Meier's avatar
Lorenz Meier committed
293 294 295 296 297
    src/ui/QGCMAVLinkLogPlayer.h \
    src/comm/MAVLinkSimulationWaypointPlanner.h \
    src/comm/MAVLinkSimulationMAV.h \
    src/uas/QGCMAVLinkUASFactory.h \
    src/ui/QGCWaypointListMulti.h \
298
    src/ui/QGCUASFileViewMulti.h \
Don Gagne's avatar
Don Gagne committed
299
    src/ui/QGCTCPLinkConfiguration.h \
Don Gagne's avatar
Don Gagne committed
300
    src/ui/SettingsDialog.h \
Lorenz Meier's avatar
Lorenz Meier committed
301 302 303 304 305 306 307 308 309 310
    src/uas/QGCUASParamManager.h \
    src/ui/map/QGCMapWidget.h \
    src/ui/map/MAV2DIcon.h \
    src/ui/map/Waypoint2DIcon.h \
    src/ui/map/QGCMapTool.h \
    src/ui/map/QGCMapToolBar.h \
    src/QGCGeo.h \
    src/ui/QGCMAVLinkInspector.h \
    src/ui/MAVLinkDecoder.h \
    src/ui/WaypointViewOnlyView.h \
Lorenz Meier's avatar
Lorenz Meier committed
311
    src/ui/WaypointEditableView.h \
Lorenz Meier's avatar
Lorenz Meier committed
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331
    src/ui/QGCRGBDView.h \
    src/ui/mavlink/QGCMAVLinkMessageSender.h \
    src/ui/QGCPluginHost.h \
    src/ui/mission/QGCMissionOther.h \
    src/ui/mission/QGCMissionNavWaypoint.h \
    src/ui/mission/QGCMissionDoJump.h \
    src/ui/mission/QGCMissionConditionDelay.h \
    src/ui/mission/QGCMissionNavLoiterUnlim.h \
    src/ui/mission/QGCMissionNavLoiterTurns.h \
    src/ui/mission/QGCMissionNavLoiterTime.h \
    src/ui/mission/QGCMissionNavReturnToLaunch.h \
    src/ui/mission/QGCMissionNavLand.h \
    src/ui/mission/QGCMissionNavTakeoff.h \
    src/ui/mission/QGCMissionNavSweep.h \
    src/ui/mission/QGCMissionDoStartSearch.h \
    src/ui/mission/QGCMissionDoFinishSearch.h \
    src/comm/QGCHilLink.h \
    src/ui/QGCHilConfiguration.h \
    src/ui/QGCHilFlightGearConfiguration.h \
    src/ui/QGCHilJSBSimConfiguration.h \
332
    src/ui/QGCHilXPlaneConfiguration.h \
333
    src/ui/uas/UASQuickView.h \
334
    src/ui/uas/UASQuickViewItem.h \
335
    src/ui/linechart/ChartPlot.h \
336
    src/ui/uas/UASQuickViewItemSelect.h \
337
    src/ui/uas/UASQuickViewTextItem.h \
338
    src/ui/uas/UASQuickViewGaugeItem.h \
339
    src/ui/QGCTabbedInfoView.h \
340
    src/ui/UASRawStatusView.h \
341
    src/ui/PrimaryFlightDisplay.h \
342
    src/ui/uas/UASMessageView.h \
343
    src/ui/JoystickButton.h \
344
    src/ui/JoystickAxis.h \
345 346 347
    src/ui/configuration/console.h \
    src/ui/configuration/SerialSettingsDialog.h \
    src/ui/configuration/terminalconsole.h \
348
    src/ui/configuration/ApmHighlighter.h \
349
    src/uas/UASParameterDataModel.h \
350
    src/uas/UASParameterCommsMgr.h \
351
    src/ui/px4_configuration/PX4RCCalibration.h \
Don Gagne's avatar
Don Gagne committed
352
    src/ui/px4_configuration/RCValueWidget.h \
353
    src/uas/UASManagerInterface.h \
354
    src/uas/QGCUASParamManagerInterface.h \
355
    src/uas/QGCUASFileManager.h \
356
    src/ui/QGCUASFileView.h \
357
    src/CmdLineOptParser.h \
Don Gagne's avatar
Don Gagne committed
358
    src/QGCFileDialog.h \
359
    src/QGCMessageBox.h \
360
    src/QGCComboBox.h \
361
    src/QGCTemporaryFile.h \
Lorenz Meier's avatar
Lorenz Meier committed
362
    src/audio/QGCAudioWorker.h \
363 364
    src/QGCQuickWidget.h \
    src/QGCPalette.h \
Don Gagne's avatar
Don Gagne committed
365
    src/QGCQmlWidgetHolder.h \
366 367
    src/ui/QGCMapRCToParamDialog.h \
    src/QGCDockWidget.h \
368 369 370
    src/ui/QGCLinkConfiguration.h \
    src/comm/LinkConfiguration.h \
    src/ui/QGCCommConfiguration.h \
371
    src/ui/QGCUDPLinkConfiguration.h \
dogmaphobic's avatar
dogmaphobic committed
372
    src/uas/UASMessageHandler.h \
Don Gagne's avatar
Don Gagne committed
373
    src/ui/toolbar/MainToolBar.h \
374
    src/QmlControls/ScreenTools.h \
375
    src/QmlControls/ParameterEditorController.h \
dogmaphobic's avatar
dogmaphobic committed
376
    src/QGCLoggingCategory.h \
377
    src/ui/flightdisplay/QGCFlightDisplay.h \
378 379
    src/ui/mapdisplay/QGCMapDisplay.h \
    src/ViewWidgets/ViewWidgetController.h \
Lorenz Meier's avatar
Lorenz Meier committed
380

Don Gagne's avatar
Don Gagne committed
381
SOURCES += \
Don Gagne's avatar
Don Gagne committed
382
    src/main.cc \
Don Gagne's avatar
Don Gagne committed
383
    src/QGCApplication.cc \
384
    src/QGCSingleton.cc \
Lorenz Meier's avatar
Lorenz Meier committed
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406
    src/uas/UASManager.cc \
    src/uas/UAS.cc \
    src/comm/LinkManager.cc \
    src/comm/SerialLink.cc \
    src/comm/MAVLinkProtocol.cc \
    src/comm/QGCFlightGearLink.cc \
    src/comm/QGCJSBSimLink.cc \
    src/comm/QGCXPlaneLink.cc \
    src/ui/SerialConfigurationWindow.cc \
    src/ui/MainWindow.cc \
    src/ui/uas/UASControlWidget.cc \
    src/ui/uas/UASListWidget.cc \
    src/ui/uas/UASInfoWidget.cc \
    src/ui/HUD.cc \
    src/ui/linechart/LinechartWidget.cc \
    src/ui/linechart/LinechartPlot.cc \
    src/ui/linechart/Scrollbar.cc \
    src/ui/linechart/ScrollZoomer.cc \
    src/ui/uas/UASView.cc \
    src/ui/CameraView.cc \
    src/comm/MAVLinkSimulationLink.cc \
    src/comm/UDPLink.cc \
Don Gagne's avatar
Don Gagne committed
407
    src/comm/TCPLink.cc \
408
    src/ViewWidgets/ParameterEditorWidget.cc \
Lorenz Meier's avatar
Lorenz Meier committed
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430
    src/ui/WaypointList.cc \
    src/Waypoint.cc \
    src/input/JoystickInput.cc \
    src/ui/JoystickWidget.cc \
    src/ui/DebugConsole.cc \
    src/ui/HDDisplay.cc \
    src/ui/MAVLinkSettingsWidget.cc \
    src/GAudioOutput.cc \
    src/LogCompressor.cc \
    src/ui/linechart/Linecharts.cc \
    src/uas/UASWaypointManager.cc \
    src/ui/HSIDisplay.cc \
    src/QGC.cc \
    src/ui/QGCDataPlot2D.cc \
    src/ui/linechart/IncrementalPlot.cc \
    src/ui/QGCMainWindowAPConfigurator.cc \
    src/comm/MAVLinkSwarmSimulationLink.cc \
    src/ui/uas/QGCUnconnectedInfoWidget.cc \
    src/ui/designer/QGCToolWidget.cc \
    src/ui/designer/QGCParamSlider.cc \
    src/ui/designer/QGCCommandButton.cc \
    src/ui/designer/QGCToolWidgetItem.cc \
431
    src/ui/designer/QGCToolWidgetComboBox.cc \
Don Gagne's avatar
Don Gagne committed
432 433 434 435
    src/ui/designer/QGCTextLabel.cc \
    src/ui/designer/QGCRadioChannelDisplay.cpp \
    src/ui/designer/QGCXYPlot.cc \
    src/ui/designer/RCChannelWidget.cc \
Lorenz Meier's avatar
Lorenz Meier committed
436 437 438 439 440
    src/ui/QGCMAVLinkLogPlayer.cc \
    src/comm/MAVLinkSimulationWaypointPlanner.cc \
    src/comm/MAVLinkSimulationMAV.cc \
    src/uas/QGCMAVLinkUASFactory.cc \
    src/ui/QGCWaypointListMulti.cc \
441
    src/ui/QGCUASFileViewMulti.cc \
Don Gagne's avatar
Don Gagne committed
442
    src/ui/QGCTCPLinkConfiguration.cc \
Don Gagne's avatar
Don Gagne committed
443
    src/ui/SettingsDialog.cc \
Lorenz Meier's avatar
Lorenz Meier committed
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472
    src/uas/QGCUASParamManager.cc \
    src/ui/map/QGCMapWidget.cc \
    src/ui/map/MAV2DIcon.cc \
    src/ui/map/Waypoint2DIcon.cc \
    src/ui/map/QGCMapTool.cc \
    src/ui/map/QGCMapToolBar.cc \
    src/ui/QGCMAVLinkInspector.cc \
    src/ui/MAVLinkDecoder.cc \
    src/ui/WaypointViewOnlyView.cc \
    src/ui/WaypointEditableView.cc \
    src/ui/QGCRGBDView.cc \
    src/ui/mavlink/QGCMAVLinkMessageSender.cc \
    src/ui/QGCPluginHost.cc \
    src/ui/mission/QGCMissionOther.cc \
    src/ui/mission/QGCMissionNavWaypoint.cc \
    src/ui/mission/QGCMissionDoJump.cc \
    src/ui/mission/QGCMissionConditionDelay.cc \
    src/ui/mission/QGCMissionNavLoiterUnlim.cc \
    src/ui/mission/QGCMissionNavLoiterTurns.cc \
    src/ui/mission/QGCMissionNavLoiterTime.cc \
    src/ui/mission/QGCMissionNavReturnToLaunch.cc \
    src/ui/mission/QGCMissionNavLand.cc \
    src/ui/mission/QGCMissionNavTakeoff.cc \
    src/ui/mission/QGCMissionNavSweep.cc \
    src/ui/mission/QGCMissionDoStartSearch.cc \
    src/ui/mission/QGCMissionDoFinishSearch.cc \
    src/ui/QGCHilConfiguration.cc \
    src/ui/QGCHilFlightGearConfiguration.cc \
    src/ui/QGCHilJSBSimConfiguration.cc \
473
    src/ui/QGCHilXPlaneConfiguration.cc \
474
    src/ui/uas/UASQuickViewItem.cc \
475
    src/ui/uas/UASQuickView.cc \
476
    src/ui/linechart/ChartPlot.cc \
477
    src/ui/uas/UASQuickViewTextItem.cc \
478
    src/ui/uas/UASQuickViewGaugeItem.cc \
479
    src/ui/uas/UASQuickViewItemSelect.cc \
480
    src/ui/QGCTabbedInfoView.cpp \
481
    src/ui/UASRawStatusView.cpp \
482
    src/ui/PrimaryFlightDisplay.cc \
483
    src/ui/JoystickButton.cc \
484
    src/ui/JoystickAxis.cc \
485
    src/ui/uas/UASMessageView.cc \
486 487 488
    src/ui/configuration/terminalconsole.cpp \
    src/ui/configuration/console.cpp \
    src/ui/configuration/SerialSettingsDialog.cc \
489
    src/ui/configuration/ApmHighlighter.cc \
490
    src/uas/UASParameterDataModel.cc \
491
    src/uas/UASParameterCommsMgr.cc \
492
    src/ui/px4_configuration/PX4RCCalibration.cc \
Don Gagne's avatar
Don Gagne committed
493
    src/ui/px4_configuration/RCValueWidget.cc \
494
    src/uas/QGCUASFileManager.cc \
495
    src/ui/QGCUASFileView.cc \
496
    src/CmdLineOptParser.cc \
497
    src/QGCFileDialog.cc \
498
    src/QGCComboBox.cc \
499
    src/QGCTemporaryFile.cc \
Lorenz Meier's avatar
Lorenz Meier committed
500
    src/audio/QGCAudioWorker.cpp \
501
    src/QGCQuickWidget.cc \
502
    src/QGCPalette.cc \
Don Gagne's avatar
Don Gagne committed
503
    src/QGCQmlWidgetHolder.cpp \
504 505
    src/ui/QGCMapRCToParamDialog.cpp \
    src/QGCDockWidget.cc \
506 507 508
    src/ui/QGCLinkConfiguration.cc \
    src/comm/LinkConfiguration.cc \
    src/ui/QGCCommConfiguration.cc \
509
    src/ui/QGCUDPLinkConfiguration.cc \
dogmaphobic's avatar
dogmaphobic committed
510
    src/uas/UASMessageHandler.cc \
Don Gagne's avatar
Don Gagne committed
511
    src/ui/toolbar/MainToolBar.cc \
512
    src/QmlControls/ScreenTools.cc \
513
    src/QmlControls/ParameterEditorController.cc \
dogmaphobic's avatar
dogmaphobic committed
514
    src/QGCLoggingCategory.cc \
515
    src/ui/flightdisplay/QGCFlightDisplay.cc \
516 517
    src/ui/mapdisplay/QGCMapDisplay.cc \
    src/ViewWidgets/ViewWidgetController.cc \
518 519 520

#
# Unit Test specific configuration goes here
521 522
#
# We have to special case Windows debug_and_release builds because you can't have files
523 524
# 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
525 526 527 528 529
# qmake with CONFIG-=debug_and_release CONFIG+=release.
#

DebugBuild|WindowsDebugAndRelease {

530 531 532 533
INCLUDEPATH += \
	src/qgcunittest

HEADERS += \
Don Gagne's avatar
Don Gagne committed
534 535
    src/qgcunittest/UnitTest.h \
    src/qgcunittest/MessageBoxTest.h \
536
    src/qgcunittest/FileDialogTest.h \
537 538
    src/qgcunittest/MockLink.h \
    src/qgcunittest/MockLinkMissionItemHandler.h \
539 540 541 542 543 544 545 546
	src/qgcunittest/MockUASManager.h \
	src/qgcunittest/MockUAS.h \
	src/qgcunittest/MockQGCUASParamManager.h \
	src/qgcunittest/MockMavlinkInterface.h \
	src/qgcunittest/MockMavlinkFileServer.h \
	src/qgcunittest/MultiSignalSpy.h \
	src/qgcunittest/FlightGearTest.h \
	src/qgcunittest/TCPLinkTest.h \
Don Gagne's avatar
Don Gagne committed
547
	src/qgcunittest/TCPLoopBackServer.h \
548
	src/qgcunittest/QGCUASFileManagerTest.h \
Don Gagne's avatar
Don Gagne committed
549
    src/qgcunittest/PX4RCCalibrationTest.h \
Don Gagne's avatar
Don Gagne committed
550
    src/qgcunittest/LinkManagerTest.h \
551
    src/qgcunittest/MainWindowTest.h \
Don Gagne's avatar
Don Gagne committed
552
    src/qgcunittest/MavlinkLogTest.h \
553 554
    src/FactSystem/FactSystemTestBase.h \
    src/FactSystem/FactSystemTestPX4.h \
Don Gagne's avatar
Don Gagne committed
555 556
    src/FactSystem/FactSystemTestGeneric.h \
    src/QmlControls/QmlTestWidget.h \
557
    src/VehicleSetup/SetupViewTest.h \
558 559

SOURCES += \
Don Gagne's avatar
Don Gagne committed
560 561
    src/qgcunittest/UnitTest.cc \
    src/qgcunittest/MessageBoxTest.cc \
562
    src/qgcunittest/FileDialogTest.cc \
563 564
    src/qgcunittest/MockLink.cc \
    src/qgcunittest/MockLinkMissionItemHandler.cc \
565 566 567 568 569 570 571
	src/qgcunittest/MockUASManager.cc \
	src/qgcunittest/MockUAS.cc \
	src/qgcunittest/MockQGCUASParamManager.cc \
	src/qgcunittest/MockMavlinkFileServer.cc \
	src/qgcunittest/MultiSignalSpy.cc \
	src/qgcunittest/FlightGearTest.cc \
	src/qgcunittest/TCPLinkTest.cc \
Don Gagne's avatar
Don Gagne committed
572
	src/qgcunittest/TCPLoopBackServer.cc \
573
	src/qgcunittest/QGCUASFileManagerTest.cc \
Don Gagne's avatar
Don Gagne committed
574
    src/qgcunittest/PX4RCCalibrationTest.cc \
Don Gagne's avatar
Don Gagne committed
575
    src/qgcunittest/LinkManagerTest.cc \
576
    src/qgcunittest/MainWindowTest.cc \
Don Gagne's avatar
Don Gagne committed
577
    src/qgcunittest/MavlinkLogTest.cc \
578 579
    src/FactSystem/FactSystemTestBase.cc \
    src/FactSystem/FactSystemTestPX4.cc \
Don Gagne's avatar
Don Gagne committed
580 581
    src/FactSystem/FactSystemTestGeneric.cc \
    src/QmlControls/QmlTestWidget.cc \
582
    src/VehicleSetup/SetupViewTest.cc \
Don Gagne's avatar
Don Gagne committed
583

584
}
585 586 587 588

#
# AutoPilot Plugin Support
#
589 590 591 592

INCLUDEPATH += \
    src/VehicleSetup

593
FORMS += \
Don Gagne's avatar
Don Gagne committed
594
    src/VehicleSetup/SetupView.ui \
595 596 597 598

HEADERS+= \
    src/VehicleSetup/SetupView.h \
    src/VehicleSetup/VehicleComponent.h \
599 600 601
    src/VehicleSetup/FirmwareUpgradeController.h \
    src/VehicleSetup/PX4Bootloader.h \
    src/VehicleSetup/PX4FirmwareUpgradeThread.h \
Don Gagne's avatar
Don Gagne committed
602
    src/AutoPilotPlugins/AutoPilotPluginManager.h \
603 604
    src/AutoPilotPlugins/AutoPilotPlugin.h \
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.h \
605
    src/AutoPilotPlugins/Generic/GenericParameterFacts.h \
606 607 608 609
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.h \
    src/AutoPilotPlugins/PX4/PX4Component.h \
    src/AutoPilotPlugins/PX4/RadioComponent.h \
    src/AutoPilotPlugins/PX4/FlightModesComponent.h \
Don Gagne's avatar
Don Gagne committed
610
    src/AutoPilotPlugins/PX4/FlightModesComponentController.h \
611
    src/AutoPilotPlugins/PX4/AirframeComponent.h \
612 613
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.h \
    src/AutoPilotPlugins/PX4/AirframeComponentController.h \
Don Gagne's avatar
Don Gagne committed
614
    src/AutoPilotPlugins/PX4/SensorsComponent.h \
615
    src/AutoPilotPlugins/PX4/SensorsComponentController.h \
Don Gagne's avatar
Don Gagne committed
616
    src/AutoPilotPlugins/PX4/SafetyComponent.h \
dogmaphobic's avatar
dogmaphobic committed
617
    src/AutoPilotPlugins/PX4/PowerComponent.h \
618
    src/AutoPilotPlugins/PX4/PX4ParameterLoader.h \
619 620 621 622

SOURCES += \
    src/VehicleSetup/SetupView.cc \
    src/VehicleSetup/VehicleComponent.cc \
623 624 625
    src/VehicleSetup/FirmwareUpgradeController.cc \
    src/VehicleSetup/PX4Bootloader.cc \
    src/VehicleSetup/PX4FirmwareUpgradeThread.cc \
Don Gagne's avatar
Don Gagne committed
626
    src/AutoPilotPlugins/AutoPilotPluginManager.cc \
627
    src/AutoPilotPlugins/AutoPilotPlugin.cc \
628
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.cc \
629
    src/AutoPilotPlugins/Generic/GenericParameterFacts.cc \
630 631 632 633
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc \
    src/AutoPilotPlugins/PX4/PX4Component.cc \
    src/AutoPilotPlugins/PX4/RadioComponent.cc \
    src/AutoPilotPlugins/PX4/FlightModesComponent.cc \
Don Gagne's avatar
Don Gagne committed
634
    src/AutoPilotPlugins/PX4/FlightModesComponentController.cc \
635
    src/AutoPilotPlugins/PX4/AirframeComponent.cc \
636 637
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.cc \
    src/AutoPilotPlugins/PX4/AirframeComponentController.cc \
Don Gagne's avatar
Don Gagne committed
638
    src/AutoPilotPlugins/PX4/SensorsComponent.cc \
639
    src/AutoPilotPlugins/PX4/SensorsComponentController.cc \
Don Gagne's avatar
Don Gagne committed
640
    src/AutoPilotPlugins/PX4/SafetyComponent.cc \
dogmaphobic's avatar
dogmaphobic committed
641
    src/AutoPilotPlugins/PX4/PowerComponent.cc \
642
    src/AutoPilotPlugins/PX4/PX4ParameterLoader.cc \
Don Gagne's avatar
Don Gagne committed
643 644 645 646 647 648 649 650 651

# Fact System code

INCLUDEPATH += \
    src/FactSystem

HEADERS += \
    src/FactSystem/FactSystem.h \
    src/FactSystem/Fact.h \
652
    src/FactSystem/FactBinder.h \
Don Gagne's avatar
Don Gagne committed
653 654
    src/FactSystem/FactMetaData.h \
    src/FactSystem/FactValidator.h \
655
    src/FactSystem/ParameterLoader.h \
Don Gagne's avatar
Don Gagne committed
656 657 658 659

SOURCES += \
    src/FactSystem/FactSystem.cc \
    src/FactSystem/Fact.cc \
660
    src/FactSystem/FactBinder.cc \
Don Gagne's avatar
Don Gagne committed
661 662
    src/FactSystem/FactMetaData.cc \
    src/FactSystem/FactValidator.cc \
663
    src/FactSystem/ParameterLoader.cc \