QGCApplication.pro 21.2 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 154
    include/ui \
    src/input \
    src/lib/qmapcontrol \
    src/ui/mavlink \
    src/ui/param \
    src/ui/map3D \
    src/ui/mission \
    src/ui/designer \
    src/ui/configuration \
155
    src/ui/px4_configuration \
156
    src/ui/main \
dogmaphobic's avatar
dogmaphobic committed
157
    src/ui/toolbar \
dogmaphobic's avatar
dogmaphobic committed
158
    src/ui/flightdisplay \
159
    src/ui/mapdisplay \
160
    src/VehicleSetup \
Don Gagne's avatar
Don Gagne committed
161 162
    src/AutoPilotPlugins \
    src/QmlControls
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 172
    src/ui/SerialSettings.ui \
    src/ui/UASControl.ui \
    src/ui/UASList.ui \
    src/ui/UASInfo.ui \
    src/ui/Linechart.ui \
    src/ui/UASView.ui \
    src/ui/ParameterInterface.ui \
173
    src/ui/WaypointList.ui \
Lorenz Meier's avatar
Lorenz Meier committed
174 175 176 177 178 179 180 181 182 183 184 185
    src/ui/JoystickWidget.ui \
    src/ui/DebugConsole.ui \
    src/ui/HDDisplay.ui \
    src/ui/MAVLinkSettingsWidget.ui \
    src/ui/QGCSensorSettingsWidget.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 \
186
    src/ui/designer/QGCToolWidgetComboBox.ui \
Don Gagne's avatar
Don Gagne committed
187 188
    src/ui/designer/QGCTextLabel.ui \
    src/ui/designer/QGCXYPlot.ui \
Lorenz Meier's avatar
Lorenz Meier committed
189 190
    src/ui/QGCMAVLinkLogPlayer.ui \
    src/ui/QGCWaypointListMulti.ui \
191
    src/ui/QGCUASFileViewMulti.ui \
Don Gagne's avatar
Don Gagne committed
192
    src/ui/QGCTCPLinkConfiguration.ui \
Don Gagne's avatar
Don Gagne committed
193
    src/ui/SettingsDialog.ui \
Lorenz Meier's avatar
Lorenz Meier committed
194 195 196
    src/ui/map/QGCMapTool.ui \
    src/ui/map/QGCMapToolBar.ui \
    src/ui/QGCMAVLinkInspector.ui \
197 198
    src/ui/WaypointViewOnlyView.ui \
    src/ui/WaypointEditableView.ui \
Lorenz Meier's avatar
Lorenz Meier committed
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
    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 \
217
    src/ui/QGCHilXPlaneConfiguration.ui \
218
    src/ui/uas/UASQuickView.ui \
219
    src/ui/uas/UASQuickViewItemSelect.ui \
220
    src/ui/QGCTabbedInfoView.ui \
221
    src/ui/UASRawStatusView.ui \
222
    src/ui/uas/UASMessageView.ui \
223
    src/ui/JoystickButton.ui \
224
    src/ui/JoystickAxis.ui \
225
    src/ui/configuration/terminalconsole.ui \
226
    src/ui/configuration/SerialSettingsDialog.ui \
227
    src/ui/px4_configuration/PX4RCCalibration.ui \
Don Gagne's avatar
Don Gagne committed
228 229
    src/ui/QGCUASFileView.ui \
    src/QGCQmlWidgetHolder.ui \
Don Gagne's avatar
Don Gagne committed
230
    src/ui/QGCMapRCToParamDialog.ui \
231 232 233
    src/ui/QGCLinkConfiguration.ui \
    src/ui/QGCCommConfiguration.ui \
    src/ui/QGCUDPLinkConfiguration.ui
234

Don Gagne's avatar
Don Gagne committed
235 236
HEADERS += \
    src/MG.h \
Don Gagne's avatar
Don Gagne committed
237
    src/QGCApplication.h \
238
    src/QGCSingleton.h \
Lorenz Meier's avatar
Lorenz Meier committed
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
    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 \
260
    src/QGCConfig.h \
Lorenz Meier's avatar
Lorenz Meier committed
261 262 263 264
    src/ui/uas/UASView.h \
    src/ui/CameraView.h \
    src/comm/MAVLinkSimulationLink.h \
    src/comm/UDPLink.h \
Don Gagne's avatar
Don Gagne committed
265
    src/comm/TCPLink.h \
Lorenz Meier's avatar
Lorenz Meier committed
266 267
    src/ui/ParameterInterface.h \
    src/ui/WaypointList.h \
268
    src/Waypoint.h \
Lorenz Meier's avatar
Lorenz Meier committed
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
    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/QGCParamWidget.h \
    src/ui/QGCSensorSettingsWidget.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 \
292
    src/ui/designer/QGCToolWidgetComboBox.h \
Don Gagne's avatar
Don Gagne committed
293 294 295 296
    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
297 298 299 300 301
    src/ui/QGCMAVLinkLogPlayer.h \
    src/comm/MAVLinkSimulationWaypointPlanner.h \
    src/comm/MAVLinkSimulationMAV.h \
    src/uas/QGCMAVLinkUASFactory.h \
    src/ui/QGCWaypointListMulti.h \
302
    src/ui/QGCUASFileViewMulti.h \
Don Gagne's avatar
Don Gagne committed
303
    src/ui/QGCTCPLinkConfiguration.h \
Don Gagne's avatar
Don Gagne committed
304
    src/ui/SettingsDialog.h \
Lorenz Meier's avatar
Lorenz Meier committed
305 306 307 308 309 310 311 312 313 314
    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
315
    src/ui/WaypointEditableView.h \
Lorenz Meier's avatar
Lorenz Meier committed
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335
    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 \
336
    src/ui/QGCHilXPlaneConfiguration.h \
337
    src/ui/uas/UASQuickView.h \
338
    src/ui/uas/UASQuickViewItem.h \
339
    src/ui/linechart/ChartPlot.h \
340
    src/ui/uas/UASQuickViewItemSelect.h \
341
    src/ui/uas/UASQuickViewTextItem.h \
342
    src/ui/uas/UASQuickViewGaugeItem.h \
343
    src/ui/QGCTabbedInfoView.h \
344
    src/ui/UASRawStatusView.h \
345
    src/ui/PrimaryFlightDisplay.h \
346
    src/ui/uas/UASMessageView.h \
347
    src/ui/JoystickButton.h \
348
    src/ui/JoystickAxis.h \
349 350 351
    src/ui/configuration/console.h \
    src/ui/configuration/SerialSettingsDialog.h \
    src/ui/configuration/terminalconsole.h \
352
    src/ui/configuration/ApmHighlighter.h \
353
    src/uas/UASParameterDataModel.h \
354
    src/uas/UASParameterCommsMgr.h \
Lorenz Meier's avatar
Lorenz Meier committed
355
    src/ui/QGCPendingParamWidget.h \
356
    src/ui/QGCBaseParamWidget.h \
357
    src/ui/px4_configuration/PX4RCCalibration.h \
Don Gagne's avatar
Don Gagne committed
358
    src/ui/px4_configuration/RCValueWidget.h \
359
    src/uas/UASManagerInterface.h \
360
    src/uas/QGCUASParamManagerInterface.h \
361
    src/uas/QGCUASFileManager.h \
362
    src/ui/QGCUASFileView.h \
363
    src/CmdLineOptParser.h \
Don Gagne's avatar
Don Gagne committed
364
    src/QGCFileDialog.h \
365
    src/QGCMessageBox.h \
366
    src/QGCComboBox.h \
367
    src/QGCTemporaryFile.h \
Lorenz Meier's avatar
Lorenz Meier committed
368
    src/audio/QGCAudioWorker.h \
369 370
    src/QGCQuickWidget.h \
    src/QGCPalette.h \
Don Gagne's avatar
Don Gagne committed
371
    src/QGCQmlWidgetHolder.h \
372
    src/ui/QGCParamTreeWidget.h \
373 374
    src/ui/QGCMapRCToParamDialog.h \
    src/QGCDockWidget.h \
375 376 377
    src/ui/QGCLinkConfiguration.h \
    src/comm/LinkConfiguration.h \
    src/ui/QGCCommConfiguration.h \
378
    src/ui/QGCUDPLinkConfiguration.h \
dogmaphobic's avatar
dogmaphobic committed
379
    src/uas/UASMessageHandler.h \
Don Gagne's avatar
Don Gagne committed
380
    src/ui/toolbar/MainToolBar.h \
381
    src/QmlControls/ScreenTools.h \
dogmaphobic's avatar
dogmaphobic committed
382
    src/QGCLoggingCategory.h \
383 384
    src/ui/flightdisplay/QGCFlightDisplay.h \
    src/ui/mapdisplay/QGCMapDisplay.h
Lorenz Meier's avatar
Lorenz Meier committed
385

Don Gagne's avatar
Don Gagne committed
386
SOURCES += \
Don Gagne's avatar
Don Gagne committed
387
    src/main.cc \
Don Gagne's avatar
Don Gagne committed
388
    src/QGCApplication.cc \
389
    src/QGCSingleton.cc \
Lorenz Meier's avatar
Lorenz Meier committed
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
    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
412
    src/comm/TCPLink.cc \
Lorenz Meier's avatar
Lorenz Meier committed
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437
    src/ui/ParameterInterface.cc \
    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/QGCParamWidget.cc \
    src/ui/QGCSensorSettingsWidget.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 \
438
    src/ui/designer/QGCToolWidgetComboBox.cc \
Don Gagne's avatar
Don Gagne committed
439 440 441 442
    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
443 444 445 446 447
    src/ui/QGCMAVLinkLogPlayer.cc \
    src/comm/MAVLinkSimulationWaypointPlanner.cc \
    src/comm/MAVLinkSimulationMAV.cc \
    src/uas/QGCMAVLinkUASFactory.cc \
    src/ui/QGCWaypointListMulti.cc \
448
    src/ui/QGCUASFileViewMulti.cc \
Don Gagne's avatar
Don Gagne committed
449
    src/ui/QGCTCPLinkConfiguration.cc \
Don Gagne's avatar
Don Gagne committed
450
    src/ui/SettingsDialog.cc \
Lorenz Meier's avatar
Lorenz Meier committed
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479
    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 \
480
    src/ui/QGCHilXPlaneConfiguration.cc \
481
    src/ui/uas/UASQuickViewItem.cc \
482
    src/ui/uas/UASQuickView.cc \
483
    src/ui/linechart/ChartPlot.cc \
484
    src/ui/uas/UASQuickViewTextItem.cc \
485
    src/ui/uas/UASQuickViewGaugeItem.cc \
486
    src/ui/uas/UASQuickViewItemSelect.cc \
487
    src/ui/QGCTabbedInfoView.cpp \
488
    src/ui/UASRawStatusView.cpp \
489
    src/ui/PrimaryFlightDisplay.cc \
490
    src/ui/JoystickButton.cc \
491
    src/ui/JoystickAxis.cc \
492
    src/ui/uas/UASMessageView.cc \
493 494 495
    src/ui/configuration/terminalconsole.cpp \
    src/ui/configuration/console.cpp \
    src/ui/configuration/SerialSettingsDialog.cc \
496
    src/ui/configuration/ApmHighlighter.cc \
497
    src/uas/UASParameterDataModel.cc \
498
    src/uas/UASParameterCommsMgr.cc \
Lorenz Meier's avatar
Lorenz Meier committed
499
    src/ui/QGCPendingParamWidget.cc \
500
    src/ui/QGCBaseParamWidget.cc \
501
    src/ui/px4_configuration/PX4RCCalibration.cc \
Don Gagne's avatar
Don Gagne committed
502
    src/ui/px4_configuration/RCValueWidget.cc \
503
    src/uas/QGCUASFileManager.cc \
504
    src/ui/QGCUASFileView.cc \
505
    src/CmdLineOptParser.cc \
506
    src/QGCFileDialog.cc \
507
    src/QGCComboBox.cc \
508
    src/QGCTemporaryFile.cc \
Lorenz Meier's avatar
Lorenz Meier committed
509
    src/audio/QGCAudioWorker.cpp \
510
    src/QGCQuickWidget.cc \
511
    src/QGCPalette.cc \
Don Gagne's avatar
Don Gagne committed
512
    src/QGCQmlWidgetHolder.cpp \
513
    src/ui/QGCParamTreeWidget.cpp \
514 515
    src/ui/QGCMapRCToParamDialog.cpp \
    src/QGCDockWidget.cc \
516 517 518
    src/ui/QGCLinkConfiguration.cc \
    src/comm/LinkConfiguration.cc \
    src/ui/QGCCommConfiguration.cc \
519
    src/ui/QGCUDPLinkConfiguration.cc \
dogmaphobic's avatar
dogmaphobic committed
520
    src/uas/UASMessageHandler.cc \
Don Gagne's avatar
Don Gagne committed
521
    src/ui/toolbar/MainToolBar.cc \
522
    src/QmlControls/ScreenTools.cc \
dogmaphobic's avatar
dogmaphobic committed
523
    src/QGCLoggingCategory.cc \
524 525
    src/ui/flightdisplay/QGCFlightDisplay.cc \
    src/ui/mapdisplay/QGCMapDisplay.cc
526 527 528

#
# Unit Test specific configuration goes here
529 530
#
# We have to special case Windows debug_and_release builds because you can't have files
531 532
# 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
533 534 535 536 537
# qmake with CONFIG-=debug_and_release CONFIG+=release.
#

DebugBuild|WindowsDebugAndRelease {

538 539 540 541
INCLUDEPATH += \
	src/qgcunittest

HEADERS += \
Don Gagne's avatar
Don Gagne committed
542 543
    src/qgcunittest/UnitTest.h \
    src/qgcunittest/MessageBoxTest.h \
544
    src/qgcunittest/FileDialogTest.h \
545 546
    src/qgcunittest/MockLink.h \
    src/qgcunittest/MockLinkMissionItemHandler.h \
547 548 549 550 551 552 553 554
	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
555
	src/qgcunittest/TCPLoopBackServer.h \
556
	src/qgcunittest/QGCUASFileManagerTest.h \
Don Gagne's avatar
Don Gagne committed
557
    src/qgcunittest/PX4RCCalibrationTest.h \
Don Gagne's avatar
Don Gagne committed
558
    src/qgcunittest/LinkManagerTest.h \
559
    src/qgcunittest/MainWindowTest.h \
Don Gagne's avatar
Don Gagne committed
560
    src/qgcunittest/MavlinkLogTest.h \
561 562
    src/FactSystem/FactSystemTestBase.h \
    src/FactSystem/FactSystemTestPX4.h \
Don Gagne's avatar
Don Gagne committed
563 564
    src/FactSystem/FactSystemTestGeneric.h \
    src/QmlControls/QmlTestWidget.h \
565
    src/VehicleSetup/SetupViewTest.h \
566 567

SOURCES += \
Don Gagne's avatar
Don Gagne committed
568 569
    src/qgcunittest/UnitTest.cc \
    src/qgcunittest/MessageBoxTest.cc \
570
    src/qgcunittest/FileDialogTest.cc \
571 572
    src/qgcunittest/MockLink.cc \
    src/qgcunittest/MockLinkMissionItemHandler.cc \
573 574 575 576 577 578 579
	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
580
	src/qgcunittest/TCPLoopBackServer.cc \
581
	src/qgcunittest/QGCUASFileManagerTest.cc \
Don Gagne's avatar
Don Gagne committed
582
    src/qgcunittest/PX4RCCalibrationTest.cc \
Don Gagne's avatar
Don Gagne committed
583
    src/qgcunittest/LinkManagerTest.cc \
584
    src/qgcunittest/MainWindowTest.cc \
Don Gagne's avatar
Don Gagne committed
585
    src/qgcunittest/MavlinkLogTest.cc \
586 587
    src/FactSystem/FactSystemTestBase.cc \
    src/FactSystem/FactSystemTestPX4.cc \
Don Gagne's avatar
Don Gagne committed
588 589
    src/FactSystem/FactSystemTestGeneric.cc \
    src/QmlControls/QmlTestWidget.cc \
590
    src/VehicleSetup/SetupViewTest.cc \
Don Gagne's avatar
Don Gagne committed
591

592
}
593 594 595 596

#
# AutoPilot Plugin Support
#
597 598 599 600

INCLUDEPATH += \
    src/VehicleSetup

601
FORMS += \
Don Gagne's avatar
Don Gagne committed
602
    src/VehicleSetup/SetupView.ui \
603 604 605 606

HEADERS+= \
    src/VehicleSetup/SetupView.h \
    src/VehicleSetup/VehicleComponent.h \
607
    src/VehicleSetup/FirmwareUpgradeController.h \
Don Gagne's avatar
Don Gagne committed
608
    src/VehicleSetup/ParameterEditorController.h \
609 610
    src/VehicleSetup/PX4Bootloader.h \
    src/VehicleSetup/PX4FirmwareUpgradeThread.h \
Don Gagne's avatar
Don Gagne committed
611
    src/AutoPilotPlugins/AutoPilotPluginManager.h \
612 613
    src/AutoPilotPlugins/AutoPilotPlugin.h \
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.h \
614
    src/AutoPilotPlugins/Generic/GenericParameterFacts.h \
615 616 617 618
    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
619
    src/AutoPilotPlugins/PX4/FlightModesComponentController.h \
620
    src/AutoPilotPlugins/PX4/AirframeComponent.h \
621 622
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.h \
    src/AutoPilotPlugins/PX4/AirframeComponentController.h \
Don Gagne's avatar
Don Gagne committed
623
    src/AutoPilotPlugins/PX4/SensorsComponent.h \
624
    src/AutoPilotPlugins/PX4/SensorsComponentController.h \
Don Gagne's avatar
Don Gagne committed
625
    src/AutoPilotPlugins/PX4/SafetyComponent.h \
dogmaphobic's avatar
dogmaphobic committed
626
    src/AutoPilotPlugins/PX4/PowerComponent.h \
Don Gagne's avatar
Don Gagne committed
627
    src/AutoPilotPlugins/PX4/PX4ParameterFacts.h \
628 629 630 631

SOURCES += \
    src/VehicleSetup/SetupView.cc \
    src/VehicleSetup/VehicleComponent.cc \
632
    src/VehicleSetup/FirmwareUpgradeController.cc \
Don Gagne's avatar
Don Gagne committed
633
    src/VehicleSetup/ParameterEditorController.cc \
634 635
    src/VehicleSetup/PX4Bootloader.cc \
    src/VehicleSetup/PX4FirmwareUpgradeThread.cc \
Don Gagne's avatar
Don Gagne committed
636
    src/AutoPilotPlugins/AutoPilotPluginManager.cc \
637
    src/AutoPilotPlugins/AutoPilotPlugin.cc \
638
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.cc \
639
    src/AutoPilotPlugins/Generic/GenericParameterFacts.cc \
640 641 642 643
    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
644
    src/AutoPilotPlugins/PX4/FlightModesComponentController.cc \
645
    src/AutoPilotPlugins/PX4/AirframeComponent.cc \
646 647
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.cc \
    src/AutoPilotPlugins/PX4/AirframeComponentController.cc \
Don Gagne's avatar
Don Gagne committed
648
    src/AutoPilotPlugins/PX4/SensorsComponent.cc \
649
    src/AutoPilotPlugins/PX4/SensorsComponentController.cc \
Don Gagne's avatar
Don Gagne committed
650
    src/AutoPilotPlugins/PX4/SafetyComponent.cc \
dogmaphobic's avatar
dogmaphobic committed
651
    src/AutoPilotPlugins/PX4/PowerComponent.cc \
Don Gagne's avatar
Don Gagne committed
652 653 654 655 656 657 658 659 660 661
    src/AutoPilotPlugins/PX4/PX4ParameterFacts.cc \

# Fact System code

INCLUDEPATH += \
    src/FactSystem

HEADERS += \
    src/FactSystem/FactSystem.h \
    src/FactSystem/Fact.h \
662
    src/FactSystem/FactBinder.h \
Don Gagne's avatar
Don Gagne committed
663 664
    src/FactSystem/FactMetaData.h \
    src/FactSystem/FactValidator.h \
665
    src/FactSystem/ParameterLoader.h \
Don Gagne's avatar
Don Gagne committed
666 667 668 669

SOURCES += \
    src/FactSystem/FactSystem.cc \
    src/FactSystem/Fact.cc \
670
    src/FactSystem/FactBinder.cc \
Don Gagne's avatar
Don Gagne committed
671 672
    src/FactSystem/FactMetaData.cc \
    src/FactSystem/FactValidator.cc \
673
    src/FactSystem/ParameterLoader.cc \