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)
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|AndroidBuild {
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
QT += network \
55 56
    concurrent \
    gui \
dogmaphobic's avatar
dogmaphobic committed
57 58 59
    location \
    opengl \
    positioning \
60
    printsupport \
Don Gagne's avatar
Don Gagne committed
61
    qml \
62
    quick \
63
    quickwidgets \
dogmaphobic's avatar
dogmaphobic committed
64 65 66 67
    sql \
    svg \
    widgets \
    xml \
68

dogmaphobic's avatar
dogmaphobic committed
69 70 71 72
!AndroidBuild {
    QT += serialport
}

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
Don Gagne's avatar
Don Gagne committed
86
    ICON = $$BASEDIR/resources/icons/macx.icns
87
    QT += quickwidgets
Don Gagne's avatar
Don Gagne committed
88
}
89

Don Gagne's avatar
Don Gagne committed
90
LinuxBuild {
91
    CONFIG += qesp_linux_udev
Don Gagne's avatar
Don Gagne committed
92 93 94 95 96
}

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

Don Gagne's avatar
Don Gagne committed
98
#
Bryant's avatar
Bryant committed
99
# Build-specific settings
Don Gagne's avatar
Don Gagne committed
100
#
Lorenz Meier's avatar
Lorenz Meier committed
101

Don Gagne's avatar
Don Gagne committed
102 103
DebugBuild {
    CONFIG += console
Lorenz Meier's avatar
Lorenz Meier committed
104 105
}

106
!AndroidBuild {
107 108
# qextserialport should not be used by general QGroundControl code. Use QSerialPort instead. This is only
# here to support special case Firmware Upgrade code.
109
include(libs/qextserialport/src/qextserialport.pri)
110
}
111

Don Gagne's avatar
Don Gagne committed
112 113 114
#
# External library configuration
#
115

Don Gagne's avatar
Don Gagne committed
116
include(QGCExternalLibs.pri)
117

Don Gagne's avatar
Don Gagne committed
118 119 120
#
# Post link configuration
#
121

Don Gagne's avatar
Don Gagne committed
122
include(QGCSetup.pri)
123

124 125 126 127 128 129
#
# Installer targets
#

include(QGCInstaller.pri)

Don Gagne's avatar
Don Gagne committed
130 131 132
#
# Main QGroundControl portion of project file
#
133

Don Gagne's avatar
Don Gagne committed
134
RESOURCES += qgroundcontrol.qrc
Bill Bonney's avatar
Bill Bonney committed
135

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

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

Don Gagne's avatar
Don Gagne committed
142
INCLUDEPATH += \
dogmaphobic's avatar
dogmaphobic committed
143
    include/ui \
Don Gagne's avatar
Don Gagne committed
144
    src \
145
    src/audio \
dogmaphobic's avatar
dogmaphobic committed
146 147
    src/AutoPilotPlugins \
    src/comm \
Don Gagne's avatar
Don Gagne committed
148 149
    src/input \
    src/lib/qmapcontrol \
dogmaphobic's avatar
dogmaphobic committed
150 151 152 153 154 155 156 157 158
    src/QmlControls \
    src/uas \
    src/ui \
    src/ui/configuration \
    src/ui/flightdisplay \
    src/ui/linechart \
    src/ui/map \
    src/ui/mapdisplay \
    src/ui/mavlink \
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 168 169
    src/QGCQmlWidgetHolder.ui \
    src/ui/configuration/SerialSettingsDialog.ui \
    src/ui/configuration/terminalconsole.ui \
Lorenz Meier's avatar
Lorenz Meier committed
170
    src/ui/DebugConsole.ui \
dogmaphobic's avatar
dogmaphobic committed
171 172 173
    src/ui/HDDisplay.ui \
    src/ui/Linechart.ui \
    src/ui/MainWindow.ui \
Lorenz Meier's avatar
Lorenz Meier committed
174 175 176
    src/ui/map/QGCMapTool.ui \
    src/ui/map/QGCMapToolBar.ui \
    src/ui/mavlink/QGCMAVLinkMessageSender.ui \
dogmaphobic's avatar
dogmaphobic committed
177
    src/ui/MAVLinkSettingsWidget.ui \
Lorenz Meier's avatar
Lorenz Meier committed
178
    src/ui/mission/QGCMissionConditionDelay.ui \
dogmaphobic's avatar
dogmaphobic committed
179 180 181 182
    src/ui/mission/QGCMissionDoFinishSearch.ui \
    src/ui/mission/QGCMissionDoJump.ui \
    src/ui/mission/QGCMissionDoStartSearch.ui \
    src/ui/mission/QGCMissionNavLand.ui \
Lorenz Meier's avatar
Lorenz Meier committed
183
    src/ui/mission/QGCMissionNavLoiterTime.ui \
dogmaphobic's avatar
dogmaphobic committed
184 185
    src/ui/mission/QGCMissionNavLoiterTurns.ui \
    src/ui/mission/QGCMissionNavLoiterUnlim.ui \
Lorenz Meier's avatar
Lorenz Meier committed
186 187
    src/ui/mission/QGCMissionNavReturnToLaunch.ui \
    src/ui/mission/QGCMissionNavSweep.ui \
dogmaphobic's avatar
dogmaphobic committed
188 189 190 191 192 193
    src/ui/mission/QGCMissionNavTakeoff.ui \
    src/ui/mission/QGCMissionNavWaypoint.ui \
    src/ui/mission/QGCMissionOther.ui \
    src/ui/px4_configuration/PX4RCCalibration.ui \
    src/ui/QGCCommConfiguration.ui \
    src/ui/QGCDataPlot2D.ui \
Lorenz Meier's avatar
Lorenz Meier committed
194 195 196
    src/ui/QGCHilConfiguration.ui \
    src/ui/QGCHilFlightGearConfiguration.ui \
    src/ui/QGCHilJSBSimConfiguration.ui \
197
    src/ui/QGCHilXPlaneConfiguration.ui \
dogmaphobic's avatar
dogmaphobic committed
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
    src/ui/QGCLinkConfiguration.ui \
    src/ui/QGCMapRCToParamDialog.ui \
    src/ui/QGCMAVLinkInspector.ui \
    src/ui/QGCMAVLinkLogPlayer.ui \
    src/ui/QGCPluginHost.ui \
    src/ui/QGCTabbedInfoView.ui \
    src/ui/QGCTCPLinkConfiguration.ui \
    src/ui/QGCUASFileView.ui \
    src/ui/QGCUASFileViewMulti.ui \
    src/ui/QGCUDPLinkConfiguration.ui \
    src/ui/QGCWaypointListMulti.ui \
    src/ui/SerialSettings.ui \
    src/ui/SettingsDialog.ui \
    src/ui/uas/QGCUnconnectedInfoWidget.ui \
    src/ui/uas/UASMessageView.ui \
213
    src/ui/uas/UASQuickView.ui \
214
    src/ui/uas/UASQuickViewItemSelect.ui \
dogmaphobic's avatar
dogmaphobic committed
215 216 217
    src/ui/UASControl.ui \
    src/ui/UASInfo.ui \
    src/ui/UASList.ui \
218
    src/ui/UASRawStatusView.ui \
dogmaphobic's avatar
dogmaphobic committed
219 220 221 222
    src/ui/UASView.ui \
    src/ui/WaypointEditableView.ui \
    src/ui/WaypointList.ui \
    src/ui/WaypointViewOnlyView.ui \
223

dogmaphobic's avatar
dogmaphobic committed
224 225 226 227 228 229 230
!AndroidBuild {
FORMS += \
    src/ui/JoystickButton.ui \
    src/ui/JoystickAxis.ui \
    src/ui/JoystickWidget.ui
}

Don Gagne's avatar
Don Gagne committed
231
HEADERS += \
dogmaphobic's avatar
dogmaphobic committed
232 233 234
    src/audio/QGCAudioWorker.h \
    src/CmdLineOptParser.h \
    src/comm/LinkConfiguration.h \
Lorenz Meier's avatar
Lorenz Meier committed
235
    src/comm/LinkInterface.h \
dogmaphobic's avatar
dogmaphobic committed
236
    src/comm/LinkManager.h \
Lorenz Meier's avatar
Lorenz Meier committed
237
    src/comm/MAVLinkProtocol.h \
dogmaphobic's avatar
dogmaphobic committed
238 239 240 241 242
    src/comm/MAVLinkSimulationLink.h \
    src/comm/MAVLinkSimulationMAV.h \
    src/comm/MAVLinkSimulationWaypointPlanner.h \
    src/comm/MAVLinkSwarmSimulationLink.h \
    src/comm/ProtocolInterface.h \
Lorenz Meier's avatar
Lorenz Meier committed
243
    src/comm/QGCFlightGearLink.h \
dogmaphobic's avatar
dogmaphobic committed
244
    src/comm/QGCHilLink.h \
Lorenz Meier's avatar
Lorenz Meier committed
245
    src/comm/QGCJSBSimLink.h \
dogmaphobic's avatar
dogmaphobic committed
246
    src/comm/QGCMAVLink.h \
Lorenz Meier's avatar
Lorenz Meier committed
247
    src/comm/QGCXPlaneLink.h \
dogmaphobic's avatar
dogmaphobic committed
248
    src/comm/SerialLink.h \
Don Gagne's avatar
Don Gagne committed
249
    src/comm/TCPLink.h \
dogmaphobic's avatar
dogmaphobic committed
250
    src/comm/UDPLink.h \
Lorenz Meier's avatar
Lorenz Meier committed
251 252
    src/GAudioOutput.h \
    src/LogCompressor.h \
dogmaphobic's avatar
dogmaphobic committed
253
    src/MG.h \
Lorenz Meier's avatar
Lorenz Meier committed
254
    src/QGC.h \
dogmaphobic's avatar
dogmaphobic committed
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
    src/QGCApplication.h \
    src/QGCComboBox.h \
    src/QGCConfig.h \
    src/QGCDockWidget.h \
    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 \
    src/QmlControls/ParameterEditorController.h \
    src/QmlControls/ScreenTools.h \
    src/uas/QGCMAVLinkUASFactory.h \
    src/uas/QGCUASFileManager.h \
    src/uas/UAS.h \
    src/uas/UASInterface.h \
    src/uas/UASManager.h \
    src/uas/UASManagerInterface.h \
    src/uas/UASMessageHandler.h \
    src/uas/UASWaypointManager.h \
    src/ui/configuration/ApmHighlighter.h \
    src/ui/configuration/console.h \
    src/ui/configuration/SerialSettingsDialog.h \
    src/ui/configuration/terminalconsole.h \
    src/ui/DebugConsole.h \
    src/ui/flightdisplay/QGCFlightDisplay.h \
    src/ui/HDDisplay.h \
    src/ui/HSIDisplay.h \
    src/ui/HUD.h \
    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 \
    src/ui/MainWindow.h \
    src/ui/map/MAV2DIcon.h \
    src/ui/map/QGCMapTool.h \
    src/ui/map/QGCMapToolBar.h \
    src/ui/map/QGCMapWidget.h \
    src/ui/map/Waypoint2DIcon.h \
    src/ui/mapdisplay/QGCMapDisplay.h \
    src/ui/mavlink/QGCMAVLinkMessageSender.h \
    src/ui/MAVLinkDecoder.h \
    src/ui/MAVLinkSettingsWidget.h \
Lorenz Meier's avatar
Lorenz Meier committed
304
    src/ui/mission/QGCMissionConditionDelay.h \
dogmaphobic's avatar
dogmaphobic committed
305 306 307 308
    src/ui/mission/QGCMissionDoFinishSearch.h \
    src/ui/mission/QGCMissionDoJump.h \
    src/ui/mission/QGCMissionDoStartSearch.h \
    src/ui/mission/QGCMissionNavLand.h \
Lorenz Meier's avatar
Lorenz Meier committed
309
    src/ui/mission/QGCMissionNavLoiterTime.h \
dogmaphobic's avatar
dogmaphobic committed
310 311
    src/ui/mission/QGCMissionNavLoiterTurns.h \
    src/ui/mission/QGCMissionNavLoiterUnlim.h \
Lorenz Meier's avatar
Lorenz Meier committed
312 313
    src/ui/mission/QGCMissionNavReturnToLaunch.h \
    src/ui/mission/QGCMissionNavSweep.h \
dogmaphobic's avatar
dogmaphobic committed
314 315 316 317 318 319 320
    src/ui/mission/QGCMissionNavTakeoff.h \
    src/ui/mission/QGCMissionNavWaypoint.h \
    src/ui/mission/QGCMissionOther.h \
    src/ui/px4_configuration/PX4RCCalibration.h \
    src/ui/px4_configuration/RCValueWidget.h \
    src/ui/QGCCommConfiguration.h \
    src/ui/QGCDataPlot2D.h \
Lorenz Meier's avatar
Lorenz Meier committed
321 322 323
    src/ui/QGCHilConfiguration.h \
    src/ui/QGCHilFlightGearConfiguration.h \
    src/ui/QGCHilJSBSimConfiguration.h \
324
    src/ui/QGCHilXPlaneConfiguration.h \
dogmaphobic's avatar
dogmaphobic committed
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
    src/ui/QGCLinkConfiguration.h \
    src/ui/QGCMainWindowAPConfigurator.h \
    src/ui/QGCMapRCToParamDialog.h \
    src/ui/QGCMAVLinkInspector.h \
    src/ui/QGCMAVLinkLogPlayer.h \
    src/ui/QGCPluginHost.h \
    src/ui/QGCRGBDView.h \
    src/ui/QGCTabbedInfoView.h \
    src/ui/QGCTCPLinkConfiguration.h \
    src/ui/QGCUASFileView.h \
    src/ui/QGCUASFileViewMulti.h \
    src/ui/QGCUDPLinkConfiguration.h \
    src/ui/QGCWaypointListMulti.h \
    src/ui/SerialConfigurationWindow.h \
    src/ui/SettingsDialog.h \
    src/ui/toolbar/MainToolBar.h \
    src/ui/uas/QGCUnconnectedInfoWidget.h \
    src/ui/uas/UASControlWidget.h \
    src/ui/uas/UASInfoWidget.h \
    src/ui/uas/UASListWidget.h \
    src/ui/uas/UASMessageView.h \
346
    src/ui/uas/UASQuickView.h \
dogmaphobic's avatar
dogmaphobic committed
347
    src/ui/uas/UASQuickViewGaugeItem.h \
348
    src/ui/uas/UASQuickViewItem.h \
349
    src/ui/uas/UASQuickViewItemSelect.h \
350
    src/ui/uas/UASQuickViewTextItem.h \
dogmaphobic's avatar
dogmaphobic committed
351
    src/ui/uas/UASView.h \
352
    src/ui/UASRawStatusView.h \
dogmaphobic's avatar
dogmaphobic committed
353 354 355 356
    src/ui/WaypointEditableView.h \
    src/ui/WaypointList.h \
    src/ui/WaypointViewOnlyView.h \
    src/ViewWidgets/ParameterEditorWidget.h \
Don Gagne's avatar
Don Gagne committed
357 358
    src/ViewWidgets/CustomCommandWidget.h \
    src/ViewWidgets/CustomCommandWidgetController.h \
359
    src/ViewWidgets/ViewWidgetController.h \
dogmaphobic's avatar
dogmaphobic committed
360
    src/Waypoint.h \
Lorenz Meier's avatar
Lorenz Meier committed
361

362 363 364 365 366 367
DebugBuild {
HEADERS += \
    src/comm/MockLink.h \
    src/comm/MockLinkMissionItemHandler.h
}

dogmaphobic's avatar
dogmaphobic committed
368 369 370 371 372 373 374 375 376
!AndroidBuild {
HEADERS += \
    src/input/JoystickInput.h \
    src/ui/JoystickAxis.h \
    src/ui/JoystickButton.h \
    src/ui/JoystickWidget.h \
    src/ui/CameraView.h \
}

Don Gagne's avatar
Don Gagne committed
377
SOURCES += \
dogmaphobic's avatar
dogmaphobic committed
378 379 380
    src/audio/QGCAudioWorker.cpp \
    src/CmdLineOptParser.cc \
    src/comm/LinkConfiguration.cc \
Lorenz Meier's avatar
Lorenz Meier committed
381 382
    src/comm/LinkManager.cc \
    src/comm/MAVLinkProtocol.cc \
dogmaphobic's avatar
dogmaphobic committed
383 384 385 386
    src/comm/MAVLinkSimulationLink.cc \
    src/comm/MAVLinkSimulationMAV.cc \
    src/comm/MAVLinkSimulationWaypointPlanner.cc \
    src/comm/MAVLinkSwarmSimulationLink.cc \
Lorenz Meier's avatar
Lorenz Meier committed
387 388 389
    src/comm/QGCFlightGearLink.cc \
    src/comm/QGCJSBSimLink.cc \
    src/comm/QGCXPlaneLink.cc \
dogmaphobic's avatar
dogmaphobic committed
390
    src/comm/SerialLink.cc \
Don Gagne's avatar
Don Gagne committed
391
    src/comm/TCPLink.cc \
dogmaphobic's avatar
dogmaphobic committed
392
    src/comm/UDPLink.cc \
Lorenz Meier's avatar
Lorenz Meier committed
393 394
    src/GAudioOutput.cc \
    src/LogCompressor.cc \
dogmaphobic's avatar
dogmaphobic committed
395
    src/main.cc \
Lorenz Meier's avatar
Lorenz Meier committed
396
    src/QGC.cc \
dogmaphobic's avatar
dogmaphobic committed
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431
    src/QGCApplication.cc \
    src/QGCComboBox.cc \
    src/QGCDockWidget.cc \
    src/QGCFileDialog.cc \
    src/QGCLoggingCategory.cc \
    src/QGCPalette.cc \
    src/QGCQmlWidgetHolder.cpp \
    src/QGCQuickWidget.cc \
    src/QGCSingleton.cc \
    src/QGCTemporaryFile.cc \
    src/QmlControls/ParameterEditorController.cc \
    src/QmlControls/ScreenTools.cc \
    src/uas/QGCMAVLinkUASFactory.cc \
    src/uas/QGCUASFileManager.cc \
    src/uas/UAS.cc \
    src/uas/UASManager.cc \
    src/uas/UASMessageHandler.cc \
    src/uas/UASWaypointManager.cc \
    src/ui/configuration/ApmHighlighter.cc \
    src/ui/configuration/console.cpp \
    src/ui/configuration/SerialSettingsDialog.cc \
    src/ui/configuration/terminalconsole.cpp \
    src/ui/DebugConsole.cc \
    src/ui/flightdisplay/QGCFlightDisplay.cc \
    src/ui/HDDisplay.cc \
    src/ui/HSIDisplay.cc \
    src/ui/HUD.cc \
    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 \
    src/ui/MainWindow.cc \
Lorenz Meier's avatar
Lorenz Meier committed
432 433 434
    src/ui/map/MAV2DIcon.cc \
    src/ui/map/QGCMapTool.cc \
    src/ui/map/QGCMapToolBar.cc \
dogmaphobic's avatar
dogmaphobic committed
435 436 437
    src/ui/map/QGCMapWidget.cc \
    src/ui/map/Waypoint2DIcon.cc \
    src/ui/mapdisplay/QGCMapDisplay.cc \
Lorenz Meier's avatar
Lorenz Meier committed
438
    src/ui/mavlink/QGCMAVLinkMessageSender.cc \
dogmaphobic's avatar
dogmaphobic committed
439 440
    src/ui/MAVLinkDecoder.cc \
    src/ui/MAVLinkSettingsWidget.cc \
Lorenz Meier's avatar
Lorenz Meier committed
441
    src/ui/mission/QGCMissionConditionDelay.cc \
dogmaphobic's avatar
dogmaphobic committed
442 443 444 445
    src/ui/mission/QGCMissionDoFinishSearch.cc \
    src/ui/mission/QGCMissionDoJump.cc \
    src/ui/mission/QGCMissionDoStartSearch.cc \
    src/ui/mission/QGCMissionNavLand.cc \
Lorenz Meier's avatar
Lorenz Meier committed
446
    src/ui/mission/QGCMissionNavLoiterTime.cc \
dogmaphobic's avatar
dogmaphobic committed
447 448
    src/ui/mission/QGCMissionNavLoiterTurns.cc \
    src/ui/mission/QGCMissionNavLoiterUnlim.cc \
Lorenz Meier's avatar
Lorenz Meier committed
449 450
    src/ui/mission/QGCMissionNavReturnToLaunch.cc \
    src/ui/mission/QGCMissionNavSweep.cc \
dogmaphobic's avatar
dogmaphobic committed
451 452 453 454 455 456 457
    src/ui/mission/QGCMissionNavTakeoff.cc \
    src/ui/mission/QGCMissionNavWaypoint.cc \
    src/ui/mission/QGCMissionOther.cc \
    src/ui/px4_configuration/PX4RCCalibration.cc \
    src/ui/px4_configuration/RCValueWidget.cc \
    src/ui/QGCCommConfiguration.cc \
    src/ui/QGCDataPlot2D.cc \
Lorenz Meier's avatar
Lorenz Meier committed
458 459 460
    src/ui/QGCHilConfiguration.cc \
    src/ui/QGCHilFlightGearConfiguration.cc \
    src/ui/QGCHilJSBSimConfiguration.cc \
461
    src/ui/QGCHilXPlaneConfiguration.cc \
dogmaphobic's avatar
dogmaphobic committed
462 463 464 465 466 467 468
    src/ui/QGCLinkConfiguration.cc \
    src/ui/QGCMainWindowAPConfigurator.cc \
    src/ui/QGCMapRCToParamDialog.cpp \
    src/ui/QGCMAVLinkInspector.cc \
    src/ui/QGCMAVLinkLogPlayer.cc \
    src/ui/QGCPluginHost.cc \
    src/ui/QGCRGBDView.cc \
469
    src/ui/QGCTabbedInfoView.cpp \
dogmaphobic's avatar
dogmaphobic committed
470
    src/ui/QGCTCPLinkConfiguration.cc \
471
    src/ui/QGCUASFileView.cc \
dogmaphobic's avatar
dogmaphobic committed
472
    src/ui/QGCUASFileViewMulti.cc \
473
    src/ui/QGCUDPLinkConfiguration.cc \
dogmaphobic's avatar
dogmaphobic committed
474 475 476
    src/ui/QGCWaypointListMulti.cc \
    src/ui/SerialConfigurationWindow.cc \
    src/ui/SettingsDialog.cc \
Don Gagne's avatar
Don Gagne committed
477
    src/ui/toolbar/MainToolBar.cc \
dogmaphobic's avatar
dogmaphobic committed
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493
    src/ui/uas/QGCUnconnectedInfoWidget.cc \
    src/ui/uas/UASControlWidget.cc \
    src/ui/uas/UASInfoWidget.cc \
    src/ui/uas/UASListWidget.cc \
    src/ui/uas/UASMessageView.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/uas/UASView.cc \
    src/ui/UASRawStatusView.cpp \
    src/ui/WaypointEditableView.cc \
    src/ui/WaypointList.cc \
    src/ui/WaypointViewOnlyView.cc \
    src/ViewWidgets/ParameterEditorWidget.cc \
Don Gagne's avatar
Don Gagne committed
494 495
    src/ViewWidgets/CustomCommandWidget.cc \
    src/ViewWidgets/CustomCommandWidgetController.cc \
496
    src/ViewWidgets/ViewWidgetController.cc \
dogmaphobic's avatar
dogmaphobic committed
497
    src/Waypoint.cc \
498

499 500 501 502 503 504
DebugBuild {
SOURCES += \
    src/comm/MockLink.cc \
    src/comm/MockLinkMissionItemHandler.cc
}

dogmaphobic's avatar
dogmaphobic committed
505 506 507 508 509 510 511 512 513
!AndroidBuild {
SOURCES += \
    src/input/JoystickInput.cc \
    src/ui/JoystickAxis.cc \
    src/ui/JoystickButton.cc \
    src/ui/JoystickWidget.cc \
    src/ui/CameraView.cc 
}

514 515
#
# Unit Test specific configuration goes here
516 517
#
# We have to special case Windows debug_and_release builds because you can't have files
518 519
# 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
520 521 522 523 524
# qmake with CONFIG-=debug_and_release CONFIG+=release.
#

DebugBuild|WindowsDebugAndRelease {

dogmaphobic's avatar
dogmaphobic committed
525 526 527 528 529
HEADERS += src/QmlControls/QmlTestWidget.h
SOURCES += src/QmlControls/QmlTestWidget.cc

!AndroidBuild {

530 531 532 533
INCLUDEPATH += \
	src/qgcunittest

HEADERS += \
dogmaphobic's avatar
dogmaphobic committed
534 535 536 537 538 539 540 541 542
    src/qgcunittest/FlightGearTest.h \
    src/qgcunittest/MockMavlinkFileServer.h \
    src/qgcunittest/MockMavlinkInterface.h \
    src/qgcunittest/MultiSignalSpy.h \
    src/qgcunittest/TCPLinkTest.h \
    src/qgcunittest/TCPLoopBackServer.h \
    src/FactSystem/FactSystemTestBase.h \
    src/FactSystem/FactSystemTestGeneric.h \
    src/FactSystem/FactSystemTestPX4.h \
543
    src/qgcunittest/FileDialogTest.h \
Don Gagne's avatar
Don Gagne committed
544
    src/qgcunittest/LinkManagerTest.h \
545
    src/qgcunittest/MainWindowTest.h \
Don Gagne's avatar
Don Gagne committed
546
    src/qgcunittest/MavlinkLogTest.h \
dogmaphobic's avatar
dogmaphobic committed
547 548 549
    src/qgcunittest/MessageBoxTest.h \
    src/qgcunittest/PX4RCCalibrationTest.h \
    src/qgcunittest/UnitTest.h \
550
    src/VehicleSetup/SetupViewTest.h \
551 552

SOURCES += \
dogmaphobic's avatar
dogmaphobic committed
553 554 555 556 557 558 559 560
    src/qgcunittest/FlightGearTest.cc \
    src/qgcunittest/MockMavlinkFileServer.cc \
    src/qgcunittest/MultiSignalSpy.cc \
    src/qgcunittest/TCPLinkTest.cc \
    src/qgcunittest/TCPLoopBackServer.cc \
    src/FactSystem/FactSystemTestBase.cc \
    src/FactSystem/FactSystemTestGeneric.cc \
    src/FactSystem/FactSystemTestPX4.cc \
561
    src/qgcunittest/FileDialogTest.cc \
Don Gagne's avatar
Don Gagne committed
562
    src/qgcunittest/LinkManagerTest.cc \
563
    src/qgcunittest/MainWindowTest.cc \
Don Gagne's avatar
Don Gagne committed
564
    src/qgcunittest/MavlinkLogTest.cc \
dogmaphobic's avatar
dogmaphobic committed
565 566 567
    src/qgcunittest/MessageBoxTest.cc \
    src/qgcunittest/PX4RCCalibrationTest.cc \
    src/qgcunittest/UnitTest.cc \
568
    src/VehicleSetup/SetupViewTest.cc \
Don Gagne's avatar
Don Gagne committed
569

dogmaphobic's avatar
dogmaphobic committed
570 571
} # DebugBuild|WindowsDebugAndRelease
} # AndroidBuild
572 573 574 575

#
# AutoPilot Plugin Support
#
576 577 578 579

INCLUDEPATH += \
    src/VehicleSetup

580
FORMS += \
Don Gagne's avatar
Don Gagne committed
581
    src/VehicleSetup/SetupView.ui \
582 583 584

HEADERS+= \
    src/AutoPilotPlugins/AutoPilotPlugin.h \
dogmaphobic's avatar
dogmaphobic committed
585
    src/AutoPilotPlugins/AutoPilotPluginManager.h \
586
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.h \
587
    src/AutoPilotPlugins/Generic/GenericParameterFacts.h \
588
    src/AutoPilotPlugins/PX4/AirframeComponent.h \
589 590
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.h \
    src/AutoPilotPlugins/PX4/AirframeComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
591 592
    src/AutoPilotPlugins/PX4/FlightModesComponent.h \
    src/AutoPilotPlugins/PX4/FlightModesComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
593
    src/AutoPilotPlugins/PX4/PowerComponent.h \
dogmaphobic's avatar
dogmaphobic committed
594 595
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.h \
    src/AutoPilotPlugins/PX4/PX4Component.h \
596
    src/AutoPilotPlugins/PX4/PX4ParameterLoader.h \
dogmaphobic's avatar
dogmaphobic committed
597 598 599 600 601 602
    src/AutoPilotPlugins/PX4/RadioComponent.h \
    src/AutoPilotPlugins/PX4/SafetyComponent.h \
    src/AutoPilotPlugins/PX4/SensorsComponent.h \
    src/AutoPilotPlugins/PX4/SensorsComponentController.h \
    src/VehicleSetup/SetupView.h \
    src/VehicleSetup/VehicleComponent.h \
603

604 605 606 607 608 609 610
!AndroidBuild {
HEADERS += \
    src/VehicleSetup/FirmwareUpgradeController.h \
    src/VehicleSetup/PX4Bootloader.h \
    src/VehicleSetup/PX4FirmwareUpgradeThread.h
}

611
SOURCES += \
612
    src/AutoPilotPlugins/AutoPilotPlugin.cc \
dogmaphobic's avatar
dogmaphobic committed
613
    src/AutoPilotPlugins/AutoPilotPluginManager.cc \
614
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.cc \
615
    src/AutoPilotPlugins/Generic/GenericParameterFacts.cc \
616
    src/AutoPilotPlugins/PX4/AirframeComponent.cc \
617 618
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.cc \
    src/AutoPilotPlugins/PX4/AirframeComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
619 620
    src/AutoPilotPlugins/PX4/FlightModesComponent.cc \
    src/AutoPilotPlugins/PX4/FlightModesComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
621
    src/AutoPilotPlugins/PX4/PowerComponent.cc \
dogmaphobic's avatar
dogmaphobic committed
622 623
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc \
    src/AutoPilotPlugins/PX4/PX4Component.cc \
624
    src/AutoPilotPlugins/PX4/PX4ParameterLoader.cc \
dogmaphobic's avatar
dogmaphobic committed
625 626 627 628 629 630
    src/AutoPilotPlugins/PX4/RadioComponent.cc \
    src/AutoPilotPlugins/PX4/SafetyComponent.cc \
    src/AutoPilotPlugins/PX4/SensorsComponent.cc \
    src/AutoPilotPlugins/PX4/SensorsComponentController.cc \
    src/VehicleSetup/SetupView.cc \
    src/VehicleSetup/VehicleComponent.cc \
Don Gagne's avatar
Don Gagne committed
631

632 633 634 635 636 637 638
!AndroidBuild {
SOURCES += \
    src/VehicleSetup/FirmwareUpgradeController.cc \
    src/VehicleSetup/PX4Bootloader.cc \
    src/VehicleSetup/PX4FirmwareUpgradeThread.cc
}

Don Gagne's avatar
Don Gagne committed
639 640 641 642 643 644 645
# Fact System code

INCLUDEPATH += \
    src/FactSystem

HEADERS += \
    src/FactSystem/Fact.h \
646
    src/FactSystem/FactBinder.h \
Don Gagne's avatar
Don Gagne committed
647
    src/FactSystem/FactMetaData.h \
dogmaphobic's avatar
dogmaphobic committed
648
    src/FactSystem/FactSystem.h \
Don Gagne's avatar
Don Gagne committed
649
    src/FactSystem/FactValidator.h \
650
    src/FactSystem/ParameterLoader.h \
Don Gagne's avatar
Don Gagne committed
651 652 653

SOURCES += \
    src/FactSystem/Fact.cc \
654
    src/FactSystem/FactBinder.cc \
Don Gagne's avatar
Don Gagne committed
655
    src/FactSystem/FactMetaData.cc \
dogmaphobic's avatar
dogmaphobic committed
656
    src/FactSystem/FactSystem.cc \
Don Gagne's avatar
Don Gagne committed
657
    src/FactSystem/FactValidator.cc \
658
    src/FactSystem/ParameterLoader.cc \
dogmaphobic's avatar
dogmaphobic committed
659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681

# 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
}