QGCApplication.pro 23 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
23
TEMPLATE =  app
dogmaphobic's avatar
dogmaphobic committed
24

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

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

35
# QGC QtLocation plugin
36

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

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

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

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

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

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

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

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

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

Don Gagne's avatar
Don Gagne committed
83 84
MacBuild {
    QMAKE_INFO_PLIST = Custom-Info.plist
dogmaphobic's avatar
dogmaphobic committed
85 86 87 88 89 90 91 92
    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
93
}
94

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

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

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

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

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

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

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

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

Don Gagne's avatar
Don Gagne committed
164
FORMS += \
dogmaphobic's avatar
dogmaphobic committed
165 166
    src/QGCQmlWidgetHolder.ui \
    src/ui/Linechart.ui \
Don Gagne's avatar
Don Gagne committed
167
    src/ui/LogReplayLinkConfigurationWidget.ui \
dogmaphobic's avatar
dogmaphobic committed
168
    src/ui/MainWindow.ui \
Lorenz Meier's avatar
Lorenz Meier committed
169 170 171
    src/ui/map/QGCMapTool.ui \
    src/ui/map/QGCMapToolBar.ui \
    src/ui/mavlink/QGCMAVLinkMessageSender.ui \
dogmaphobic's avatar
dogmaphobic committed
172
    src/ui/MAVLinkSettingsWidget.ui \
Lorenz Meier's avatar
Lorenz Meier committed
173
    src/ui/mission/QGCMissionConditionDelay.ui \
dogmaphobic's avatar
dogmaphobic committed
174 175 176 177
    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
178
    src/ui/mission/QGCMissionNavLoiterTime.ui \
dogmaphobic's avatar
dogmaphobic committed
179 180
    src/ui/mission/QGCMissionNavLoiterTurns.ui \
    src/ui/mission/QGCMissionNavLoiterUnlim.ui \
Lorenz Meier's avatar
Lorenz Meier committed
181 182
    src/ui/mission/QGCMissionNavReturnToLaunch.ui \
    src/ui/mission/QGCMissionNavSweep.ui \
dogmaphobic's avatar
dogmaphobic committed
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
    src/ui/mission/QGCMissionNavTakeoff.ui \
    src/ui/mission/QGCMissionNavWaypoint.ui \
    src/ui/mission/QGCMissionOther.ui \
    src/ui/QGCCommConfiguration.ui \
    src/ui/QGCDataPlot2D.ui \
    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/SettingsDialog.ui \
    src/ui/uas/QGCUnconnectedInfoWidget.ui \
    src/ui/uas/UASMessageView.ui \
202
    src/ui/uas/UASQuickView.ui \
203
    src/ui/uas/UASQuickViewItemSelect.ui \
dogmaphobic's avatar
dogmaphobic committed
204
    src/ui/UASInfo.ui \
205
    src/ui/UASRawStatusView.ui \
dogmaphobic's avatar
dogmaphobic committed
206 207 208
    src/ui/WaypointEditableView.ui \
    src/ui/WaypointList.ui \
    src/ui/WaypointViewOnlyView.ui \
209

dogmaphobic's avatar
dogmaphobic committed
210 211 212 213 214 215
!iOSBuild {
FORMS += \
    src/ui/SerialSettings.ui \
}

!MobileBuild {
dogmaphobic's avatar
dogmaphobic committed
216
FORMS += \
dogmaphobic's avatar
dogmaphobic committed
217 218 219 220
    src/ui/QGCHilConfiguration.ui \
    src/ui/QGCHilFlightGearConfiguration.ui \
    src/ui/QGCHilJSBSimConfiguration.ui \
    src/ui/QGCHilXPlaneConfiguration.ui \
dogmaphobic's avatar
dogmaphobic committed
221 222
}

Don Gagne's avatar
Don Gagne committed
223
HEADERS += \
dogmaphobic's avatar
dogmaphobic committed
224 225 226
    src/audio/QGCAudioWorker.h \
    src/CmdLineOptParser.h \
    src/comm/LinkConfiguration.h \
Lorenz Meier's avatar
Lorenz Meier committed
227
    src/comm/LinkInterface.h \
dogmaphobic's avatar
dogmaphobic committed
228
    src/comm/LinkManager.h \
Don Gagne's avatar
Don Gagne committed
229
    src/comm/LogReplayLink.h \
Lorenz Meier's avatar
Lorenz Meier committed
230
    src/comm/MAVLinkProtocol.h \
231
    src/comm/MockLink.h \
232
    src/comm/MockLinkFileServer.h \
233
    src/comm/MockLinkMissionItemHandler.h \
dogmaphobic's avatar
dogmaphobic committed
234 235
    src/comm/ProtocolInterface.h \
    src/comm/QGCMAVLink.h \
Don Gagne's avatar
Don Gagne committed
236
    src/comm/TCPLink.h \
dogmaphobic's avatar
dogmaphobic committed
237
    src/comm/UDPLink.h \
238 239
    src/FlightDisplay/FlightDisplayWidget.h \
    src/FlightDisplay/FlightDisplayView.h \
240
    src/FlightMap/FlightMapSettings.h \
Lorenz Meier's avatar
Lorenz Meier committed
241
    src/GAudioOutput.h \
242
    src/HomePositionManager.h \
243 244
    src/Joystick/Joystick.h \
    src/Joystick/JoystickManager.h \
Lorenz Meier's avatar
Lorenz Meier committed
245
    src/LogCompressor.h \
dogmaphobic's avatar
dogmaphobic committed
246
    src/MG.h \
Don Gagne's avatar
Don Gagne committed
247
    src/MissionEditor/MissionEditor.h \
Don Gagne's avatar
Don Gagne committed
248
    src/MissionManager/MissionManager.h \
Lorenz Meier's avatar
Lorenz Meier committed
249
    src/QGC.h \
dogmaphobic's avatar
dogmaphobic committed
250 251 252 253 254 255 256 257 258 259 260 261 262
    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 \
263
    src/QmlControls/CoordinateVector.h \
264
    src/QmlControls/MavlinkQmlSingleton.h \
dogmaphobic's avatar
dogmaphobic committed
265
    src/QmlControls/ParameterEditorController.h \
Don Gagne's avatar
Don Gagne committed
266
    src/QmlControls/ScreenToolsController.h \
267
    src/QmlControls/QGCQGeoCoordinate.h \
268
    src/QmlControls/QGroundControlQmlGlobal.h \
269
    src/QmlControls/QmlObjectListModel.h \
270
    src/SerialPortIds.h \
271
    src/uas/FileManager.h \
dogmaphobic's avatar
dogmaphobic committed
272 273 274 275 276 277 278 279 280 281 282
    src/uas/UAS.h \
    src/uas/UASInterface.h \
    src/uas/UASMessageHandler.h \
    src/uas/UASWaypointManager.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 \
Don Gagne's avatar
Don Gagne committed
283
    src/ui/LogReplayLinkConfigurationWidget.h \
dogmaphobic's avatar
dogmaphobic committed
284 285 286 287 288 289 290 291 292 293
    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
294
    src/ui/mission/QGCMissionConditionDelay.h \
dogmaphobic's avatar
dogmaphobic committed
295 296 297 298
    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
299
    src/ui/mission/QGCMissionNavLoiterTime.h \
dogmaphobic's avatar
dogmaphobic committed
300 301
    src/ui/mission/QGCMissionNavLoiterTurns.h \
    src/ui/mission/QGCMissionNavLoiterUnlim.h \
Lorenz Meier's avatar
Lorenz Meier committed
302 303
    src/ui/mission/QGCMissionNavReturnToLaunch.h \
    src/ui/mission/QGCMissionNavSweep.h \
dogmaphobic's avatar
dogmaphobic committed
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
    src/ui/mission/QGCMissionNavTakeoff.h \
    src/ui/mission/QGCMissionNavWaypoint.h \
    src/ui/mission/QGCMissionOther.h \
    src/ui/QGCCommConfiguration.h \
    src/ui/QGCDataPlot2D.h \
    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/QGCTabbedInfoView.h \
    src/ui/QGCTCPLinkConfiguration.h \
    src/ui/QGCUASFileView.h \
    src/ui/QGCUASFileViewMulti.h \
    src/ui/QGCUDPLinkConfiguration.h \
    src/ui/QGCWaypointListMulti.h \
    src/ui/SettingsDialog.h \
    src/ui/toolbar/MainToolBar.h \
    src/ui/uas/QGCUnconnectedInfoWidget.h \
    src/ui/uas/UASInfoWidget.h \
    src/ui/uas/UASMessageView.h \
326
    src/ui/uas/UASQuickView.h \
dogmaphobic's avatar
dogmaphobic committed
327
    src/ui/uas/UASQuickViewGaugeItem.h \
328
    src/ui/uas/UASQuickViewItem.h \
329
    src/ui/uas/UASQuickViewItemSelect.h \
330
    src/ui/uas/UASQuickViewTextItem.h \
331
    src/ui/UASRawStatusView.h \
dogmaphobic's avatar
dogmaphobic committed
332 333 334
    src/ui/WaypointEditableView.h \
    src/ui/WaypointList.h \
    src/ui/WaypointViewOnlyView.h \
Don Gagne's avatar
Don Gagne committed
335 336
    src/ViewWidgets/CustomCommandWidget.h \
    src/ViewWidgets/CustomCommandWidgetController.h \
337
    src/ViewWidgets/ViewWidgetController.h \
338
    src/MissionItem.h \
339
    src/AutoPilotPlugins/PX4/PX4AirframeLoader.h
Lorenz Meier's avatar
Lorenz Meier committed
340

dogmaphobic's avatar
dogmaphobic committed
341
!iOSBuild {
dogmaphobic's avatar
dogmaphobic committed
342
HEADERS += \
dogmaphobic's avatar
dogmaphobic committed
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
    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 \
    src/ui/QGCHilConfiguration.h \
    src/ui/QGCHilFlightGearConfiguration.h \
    src/ui/QGCHilJSBSimConfiguration.h \
    src/ui/QGCHilXPlaneConfiguration.h \
358
    src/VehicleSetup/JoystickConfigController.h \
dogmaphobic's avatar
dogmaphobic committed
359 360
}

Don Gagne's avatar
Don Gagne committed
361
SOURCES += \
dogmaphobic's avatar
dogmaphobic committed
362 363 364
    src/audio/QGCAudioWorker.cpp \
    src/CmdLineOptParser.cc \
    src/comm/LinkConfiguration.cc \
Lorenz Meier's avatar
Lorenz Meier committed
365
    src/comm/LinkManager.cc \
Don Gagne's avatar
Don Gagne committed
366
    src/comm/LogReplayLink.cc \
Lorenz Meier's avatar
Lorenz Meier committed
367
    src/comm/MAVLinkProtocol.cc \
368
    src/comm/MockLink.cc \
369
    src/comm/MockLinkFileServer.cc \
370
    src/comm/MockLinkMissionItemHandler.cc \
Don Gagne's avatar
Don Gagne committed
371
    src/comm/TCPLink.cc \
dogmaphobic's avatar
dogmaphobic committed
372
    src/comm/UDPLink.cc \
373 374
    src/FlightDisplay/FlightDisplayWidget.cc \
    src/FlightDisplay/FlightDisplayView.cc \
375
    src/FlightMap/FlightMapSettings.cc \
Lorenz Meier's avatar
Lorenz Meier committed
376
    src/GAudioOutput.cc \
377
    src/HomePositionManager.cc \
378 379
    src/Joystick/Joystick.cc \
    src/Joystick/JoystickManager.cc \
Lorenz Meier's avatar
Lorenz Meier committed
380
    src/LogCompressor.cc \
dogmaphobic's avatar
dogmaphobic committed
381
    src/main.cc \
Don Gagne's avatar
Don Gagne committed
382
    src/MissionEditor/MissionEditor.cc \
Don Gagne's avatar
Don Gagne committed
383
    src/MissionManager/MissionManager.cc \
Lorenz Meier's avatar
Lorenz Meier committed
384
    src/QGC.cc \
dogmaphobic's avatar
dogmaphobic committed
385 386 387 388 389 390 391 392 393 394
    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 \
395
    src/QmlControls/CoordinateVector.cc \
dogmaphobic's avatar
dogmaphobic committed
396
    src/QmlControls/ParameterEditorController.cc \
Don Gagne's avatar
Don Gagne committed
397
    src/QmlControls/ScreenToolsController.cc \
398
    src/QmlControls/QGCQGeoCoordinate.cc \
399
    src/QmlControls/QGroundControlQmlGlobal.cc \
400
    src/QmlControls/QmlObjectListModel.cc \
401
    src/uas/FileManager.cc \
dogmaphobic's avatar
dogmaphobic committed
402 403 404 405 406 407 408 409 410 411
    src/uas/UAS.cc \
    src/uas/UASMessageHandler.cc \
    src/uas/UASWaypointManager.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 \
Don Gagne's avatar
Don Gagne committed
412
    src/ui/LogReplayLinkConfigurationWidget.cc \
dogmaphobic's avatar
dogmaphobic committed
413
    src/ui/MainWindow.cc \
Lorenz Meier's avatar
Lorenz Meier committed
414 415 416
    src/ui/map/MAV2DIcon.cc \
    src/ui/map/QGCMapTool.cc \
    src/ui/map/QGCMapToolBar.cc \
dogmaphobic's avatar
dogmaphobic committed
417 418 419
    src/ui/map/QGCMapWidget.cc \
    src/ui/map/Waypoint2DIcon.cc \
    src/ui/mapdisplay/QGCMapDisplay.cc \
Lorenz Meier's avatar
Lorenz Meier committed
420
    src/ui/mavlink/QGCMAVLinkMessageSender.cc \
dogmaphobic's avatar
dogmaphobic committed
421 422
    src/ui/MAVLinkDecoder.cc \
    src/ui/MAVLinkSettingsWidget.cc \
Lorenz Meier's avatar
Lorenz Meier committed
423
    src/ui/mission/QGCMissionConditionDelay.cc \
dogmaphobic's avatar
dogmaphobic committed
424 425 426 427
    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
428
    src/ui/mission/QGCMissionNavLoiterTime.cc \
dogmaphobic's avatar
dogmaphobic committed
429 430
    src/ui/mission/QGCMissionNavLoiterTurns.cc \
    src/ui/mission/QGCMissionNavLoiterUnlim.cc \
Lorenz Meier's avatar
Lorenz Meier committed
431 432
    src/ui/mission/QGCMissionNavReturnToLaunch.cc \
    src/ui/mission/QGCMissionNavSweep.cc \
dogmaphobic's avatar
dogmaphobic committed
433 434 435 436 437 438 439 440 441 442 443
    src/ui/mission/QGCMissionNavTakeoff.cc \
    src/ui/mission/QGCMissionNavWaypoint.cc \
    src/ui/mission/QGCMissionOther.cc \
    src/ui/QGCCommConfiguration.cc \
    src/ui/QGCDataPlot2D.cc \
    src/ui/QGCLinkConfiguration.cc \
    src/ui/QGCMainWindowAPConfigurator.cc \
    src/ui/QGCMapRCToParamDialog.cpp \
    src/ui/QGCMAVLinkInspector.cc \
    src/ui/QGCMAVLinkLogPlayer.cc \
    src/ui/QGCPluginHost.cc \
444
    src/ui/QGCTabbedInfoView.cpp \
dogmaphobic's avatar
dogmaphobic committed
445
    src/ui/QGCTCPLinkConfiguration.cc \
446
    src/ui/QGCUASFileView.cc \
dogmaphobic's avatar
dogmaphobic committed
447
    src/ui/QGCUASFileViewMulti.cc \
448
    src/ui/QGCUDPLinkConfiguration.cc \
dogmaphobic's avatar
dogmaphobic committed
449 450
    src/ui/QGCWaypointListMulti.cc \
    src/ui/SettingsDialog.cc \
Don Gagne's avatar
Don Gagne committed
451
    src/ui/toolbar/MainToolBar.cc \
dogmaphobic's avatar
dogmaphobic committed
452 453 454 455 456 457 458 459 460 461 462 463
    src/ui/uas/QGCUnconnectedInfoWidget.cc \
    src/ui/uas/UASInfoWidget.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/UASRawStatusView.cpp \
    src/ui/WaypointEditableView.cc \
    src/ui/WaypointList.cc \
    src/ui/WaypointViewOnlyView.cc \
Don Gagne's avatar
Don Gagne committed
464 465
    src/ViewWidgets/CustomCommandWidget.cc \
    src/ViewWidgets/CustomCommandWidgetController.cc \
466
    src/ViewWidgets/ViewWidgetController.cc \
467
    src/MissionItem.cc \
468
    src/AutoPilotPlugins/PX4/PX4AirframeLoader.cc
469

dogmaphobic's avatar
dogmaphobic committed
470
!iOSBuild {
dogmaphobic's avatar
dogmaphobic committed
471
SOURCES += \
dogmaphobic's avatar
dogmaphobic committed
472 473 474 475 476 477 478 479 480 481 482 483 484 485
    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 \
    src/ui/QGCHilConfiguration.cc \
    src/ui/QGCHilFlightGearConfiguration.cc \
    src/ui/QGCHilJSBSimConfiguration.cc \
    src/ui/QGCHilXPlaneConfiguration.cc \
486
    src/VehicleSetup/JoystickConfigController.cc \
dogmaphobic's avatar
dogmaphobic committed
487 488
}

489 490
#
# Unit Test specific configuration goes here
491 492
#
# We have to special case Windows debug_and_release builds because you can't have files
493 494
# 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
495 496 497 498 499
# qmake with CONFIG-=debug_and_release CONFIG+=release.
#

DebugBuild|WindowsDebugAndRelease {

dogmaphobic's avatar
dogmaphobic committed
500 501 502
HEADERS += src/QmlControls/QmlTestWidget.h
SOURCES += src/QmlControls/QmlTestWidget.cc

dogmaphobic's avatar
dogmaphobic committed
503
!MobileBuild {
dogmaphobic's avatar
dogmaphobic committed
504

505 506 507 508
INCLUDEPATH += \
	src/qgcunittest

HEADERS += \
dogmaphobic's avatar
dogmaphobic committed
509 510 511
    src/FactSystem/FactSystemTestBase.h \
    src/FactSystem/FactSystemTestGeneric.h \
    src/FactSystem/FactSystemTestPX4.h \
Don Gagne's avatar
Don Gagne committed
512
    src/MissionItemTest.h \
Don Gagne's avatar
Don Gagne committed
513
    src/MissionManager/MissionManagerTest.h \
514
    src/qgcunittest/FileDialogTest.h \
Don Gagne's avatar
Don Gagne committed
515 516
    src/qgcunittest/FileManagerTest.h \
    src/qgcunittest/FlightGearTest.h \
Don Gagne's avatar
Don Gagne committed
517
    src/qgcunittest/LinkManagerTest.h \
518
    src/qgcunittest/MainWindowTest.h \
Don Gagne's avatar
Don Gagne committed
519
    src/qgcunittest/MavlinkLogTest.h \
dogmaphobic's avatar
dogmaphobic committed
520
    src/qgcunittest/MessageBoxTest.h \
Don Gagne's avatar
Don Gagne committed
521 522 523 524
    src/qgcunittest/MultiSignalSpy.h \
    src/qgcunittest/PX4RCCalibrationTest.h \
    src/qgcunittest/TCPLinkTest.h \
    src/qgcunittest/TCPLoopBackServer.h \
dogmaphobic's avatar
dogmaphobic committed
525
    src/qgcunittest/UnitTest.h \
526
    src/VehicleSetup/SetupViewTest.h \
Don Gagne's avatar
Don Gagne committed
527

528
SOURCES += \
dogmaphobic's avatar
dogmaphobic committed
529 530 531
    src/FactSystem/FactSystemTestBase.cc \
    src/FactSystem/FactSystemTestGeneric.cc \
    src/FactSystem/FactSystemTestPX4.cc \
Don Gagne's avatar
Don Gagne committed
532
    src/MissionItemTest.cc \
Don Gagne's avatar
Don Gagne committed
533
    src/MissionManager/MissionManagerTest.cc \
534
    src/qgcunittest/FileDialogTest.cc \
Don Gagne's avatar
Don Gagne committed
535 536
    src/qgcunittest/FileManagerTest.cc \
    src/qgcunittest/FlightGearTest.cc \
Don Gagne's avatar
Don Gagne committed
537
    src/qgcunittest/LinkManagerTest.cc \
538
    src/qgcunittest/MainWindowTest.cc \
Don Gagne's avatar
Don Gagne committed
539
    src/qgcunittest/MavlinkLogTest.cc \
dogmaphobic's avatar
dogmaphobic committed
540
    src/qgcunittest/MessageBoxTest.cc \
Don Gagne's avatar
Don Gagne committed
541 542 543 544
    src/qgcunittest/MultiSignalSpy.cc \
    src/qgcunittest/PX4RCCalibrationTest.cc \
    src/qgcunittest/TCPLinkTest.cc \
    src/qgcunittest/TCPLoopBackServer.cc \
dogmaphobic's avatar
dogmaphobic committed
545
    src/qgcunittest/UnitTest.cc \
546
    src/VehicleSetup/SetupViewTest.cc \
Don Gagne's avatar
Don Gagne committed
547

dogmaphobic's avatar
dogmaphobic committed
548
} # DebugBuild|WindowsDebugAndRelease
dogmaphobic's avatar
dogmaphobic committed
549
} # MobileBuild
550 551

#
Don Gagne's avatar
Don Gagne committed
552
# Firmware Plugin Support
553
#
554 555

INCLUDEPATH += \
556
    src/AutoPilotPlugins/PX4 \
Don Gagne's avatar
Don Gagne committed
557
    src/FirmwarePlugin \
558
    src/Vehicle \
Don Gagne's avatar
Don Gagne committed
559
    src/VehicleSetup \
560

561 562
HEADERS+= \
    src/AutoPilotPlugins/AutoPilotPlugin.h \
dogmaphobic's avatar
dogmaphobic committed
563
    src/AutoPilotPlugins/AutoPilotPluginManager.h \
564
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.h \
565
    src/AutoPilotPlugins/Generic/GenericParameterFacts.h \
566
    src/AutoPilotPlugins/PX4/AirframeComponent.h \
567 568
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.h \
    src/AutoPilotPlugins/PX4/AirframeComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
569 570
    src/AutoPilotPlugins/PX4/FlightModesComponent.h \
    src/AutoPilotPlugins/PX4/FlightModesComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
571
    src/AutoPilotPlugins/PX4/PowerComponent.h \
572
    src/AutoPilotPlugins/PX4/PowerComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
573 574
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.h \
    src/AutoPilotPlugins/PX4/PX4Component.h \
575
    src/AutoPilotPlugins/PX4/PX4ParameterLoader.h \
dogmaphobic's avatar
dogmaphobic committed
576
    src/AutoPilotPlugins/PX4/RadioComponent.h \
Don Gagne's avatar
Don Gagne committed
577
    src/AutoPilotPlugins/PX4/RadioComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
578 579 580
    src/AutoPilotPlugins/PX4/SafetyComponent.h \
    src/AutoPilotPlugins/PX4/SensorsComponent.h \
    src/AutoPilotPlugins/PX4/SensorsComponentController.h \
581 582
    src/FirmwarePlugin/FirmwarePluginManager.h \
    src/FirmwarePlugin/FirmwarePlugin.h \
Don Gagne's avatar
Don Gagne committed
583
    src/FirmwarePlugin/APM/APMFirmwarePlugin.h \
584
    src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.h \
585 586 587 588
    src/FirmwarePlugin/Generic/GenericFirmwarePlugin.h \
    src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h \
    src/Vehicle/MultiVehicleManager.h \
    src/Vehicle/Vehicle.h \
dogmaphobic's avatar
dogmaphobic committed
589 590
    src/VehicleSetup/SetupView.h \
    src/VehicleSetup/VehicleComponent.h \
591

dogmaphobic's avatar
dogmaphobic committed
592
!MobileBuild {
593 594
HEADERS += \
    src/VehicleSetup/FirmwareUpgradeController.h \
595 596 597 598
    src/VehicleSetup/Bootloader.h \
    src/VehicleSetup/PX4FirmwareUpgradeThread.h \
    src/VehicleSetup/FirmwareImage.h \

599 600
}

601
SOURCES += \
602
    src/AutoPilotPlugins/AutoPilotPlugin.cc \
dogmaphobic's avatar
dogmaphobic committed
603
    src/AutoPilotPlugins/AutoPilotPluginManager.cc \
604
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.cc \
605
    src/AutoPilotPlugins/Generic/GenericParameterFacts.cc \
606
    src/AutoPilotPlugins/PX4/AirframeComponent.cc \
607 608
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.cc \
    src/AutoPilotPlugins/PX4/AirframeComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
609 610
    src/AutoPilotPlugins/PX4/FlightModesComponent.cc \
    src/AutoPilotPlugins/PX4/FlightModesComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
611
    src/AutoPilotPlugins/PX4/PowerComponent.cc \
612
    src/AutoPilotPlugins/PX4/PowerComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
613 614
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc \
    src/AutoPilotPlugins/PX4/PX4Component.cc \
615
    src/AutoPilotPlugins/PX4/PX4ParameterLoader.cc \
dogmaphobic's avatar
dogmaphobic committed
616
    src/AutoPilotPlugins/PX4/RadioComponent.cc \
Don Gagne's avatar
Don Gagne committed
617
    src/AutoPilotPlugins/PX4/RadioComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
618 619 620
    src/AutoPilotPlugins/PX4/SafetyComponent.cc \
    src/AutoPilotPlugins/PX4/SensorsComponent.cc \
    src/AutoPilotPlugins/PX4/SensorsComponentController.cc \
Don Gagne's avatar
Don Gagne committed
621
    src/FirmwarePlugin/APM/APMFirmwarePlugin.cc \
622
    src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc \
623 624 625 626 627
    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
628 629
    src/VehicleSetup/SetupView.cc \
    src/VehicleSetup/VehicleComponent.cc \
Don Gagne's avatar
Don Gagne committed
630

dogmaphobic's avatar
dogmaphobic committed
631
!MobileBuild {
632 633
SOURCES += \
    src/VehicleSetup/FirmwareUpgradeController.cc \
634 635 636 637
    src/VehicleSetup/Bootloader.cc \
    src/VehicleSetup/PX4FirmwareUpgradeThread.cc \
    src/VehicleSetup/FirmwareImage.cc \

638 639
}

Don Gagne's avatar
Don Gagne committed
640 641 642
# Fact System code

INCLUDEPATH += \
643 644
    src/FactSystem \
    src/FactSystem/FactControls \
Don Gagne's avatar
Don Gagne committed
645 646 647 648

HEADERS += \
    src/FactSystem/Fact.h \
    src/FactSystem/FactMetaData.h \
dogmaphobic's avatar
dogmaphobic committed
649
    src/FactSystem/FactSystem.h \
Don Gagne's avatar
Don Gagne committed
650
    src/FactSystem/FactValidator.h \
651
    src/FactSystem/ParameterLoader.h \
652
    src/FactSystem/FactControls/FactPanelController.h \
Don Gagne's avatar
Don Gagne committed
653 654 655 656

SOURCES += \
    src/FactSystem/Fact.cc \
    src/FactSystem/FactMetaData.cc \
dogmaphobic's avatar
dogmaphobic committed
657
    src/FactSystem/FactSystem.cc \
Don Gagne's avatar
Don Gagne committed
658
    src/FactSystem/FactValidator.cc \
659
    src/FactSystem/ParameterLoader.cc \
660
    src/FactSystem/FactControls/FactPanelController.cc \
dogmaphobic's avatar
dogmaphobic committed
661

662
#-------------------------------------------------------------------------------------
Gus Grubba's avatar
Gus Grubba committed
663
# Video Streaming
664 665 666 667 668 669 670

INCLUDEPATH += \
    src/VideoStreaming

HEADERS += \
    src/VideoStreaming/VideoItem.h \
    src/VideoStreaming/VideoReceiver.h \
671
    src/VideoStreaming/VideoStreaming.h \
672 673 674 675 676 677
    src/VideoStreaming/VideoSurface.h \
    src/VideoStreaming/VideoSurface_p.h \

SOURCES += \
    src/VideoStreaming/VideoItem.cc \
    src/VideoStreaming/VideoReceiver.cc \
678
    src/VideoStreaming/VideoStreaming.cc \
679 680
    src/VideoStreaming/VideoSurface.cc \

Gus Grubba's avatar
Gus Grubba committed
681 682 683 684 685 686 687 688 689 690
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)
}

691
#-------------------------------------------------------------------------------------
dogmaphobic's avatar
dogmaphobic committed
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713
# 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
}
714 715 716 717 718 719 720 721 722 723 724 725 726

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

include(QGCSetup.pri)

#
# Installer targets
#

include(QGCInstaller.pri)
Daniel Agar's avatar
Daniel Agar committed
727 728 729 730 731 732 733 734

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