qgroundcontrol.pro 28.7 KB
Newer Older
1 2 3 4 5 6
# -------------------------------------------------
# QGroundControl - Micro Air Vehicle Groundstation
# Please see our website at <http://qgroundcontrol.org>
# Maintainer:
# Lorenz Meier <lm@inf.ethz.ch>
# (c) 2009-2015 QGroundControl Developers
Lorenz Meier's avatar
Lorenz Meier committed
7
# License terms set in COPYING.md
8 9
# -------------------------------------------------

dogmaphobic's avatar
dogmaphobic committed
10
exists($${OUT_PWD}/qgroundcontrol.pro) {
11
    error("You must use shadow build (e.g. mkdir build; cd build; qmake ../qgroundcontrol.pro).")
dogmaphobic's avatar
dogmaphobic committed
12
}
13 14 15

message(Qt version $$[QT_VERSION])

16 17
!equals(QT_MAJOR_VERSION, 5) | !greaterThan(QT_MINOR_VERSION, 4) {
    error("Unsupported Qt version, 5.5+ is required")
18
}
19

20 21
include(QGCCommon.pri)

Daniel Agar's avatar
Daniel Agar committed
22
TARGET   = QGroundControl
23 24 25 26
TEMPLATE = app

DebugBuild {
    DESTDIR  = $${OUT_PWD}/debug
dogmaphobic's avatar
dogmaphobic committed
27
} else {
28 29 30 31 32 33 34 35 36
    DESTDIR  = $${OUT_PWD}/release
}

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

dogmaphobic's avatar
dogmaphobic committed
37 38 39 40 41 42 43 44 45 46 47 48
# Bluetooth
contains (DEFINES, QGC_DISABLE_BLUETOOTH) {
    message("Skipping support for Bluetooth (manual override from command line)")
    DEFINES -= QGC_ENABLE_BLUETOOTH
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, QGC_DISABLE_BLUETOOTH) {
    message("Skipping support for Bluetooth (manual override from user_config.pri)")
    DEFINES -= QGC_ENABLE_BLUETOOTH
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, QGC_ENABLE_BLUETOOTH) {
    message("Including support for Bluetooth (manual override from user_config.pri)")
    DEFINES += QGC_ENABLE_BLUETOOTH
}

49 50 51
# USB Camera and UVC Video Sources
contains (DEFINES, QGC_DISABLE_UVC) {
    message("Skipping support for UVC devices (manual override from command line)")
52
    DEFINES += QGC_DISABLE_UVC
53 54
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, QGC_DISABLE_UVC) {
    message("Skipping support for UVC devices (manual override from user_config.pri)")
55
    DEFINES += QGC_DISABLE_UVC
dogmaphobic's avatar
dogmaphobic committed
56 57 58 59 60
} else:LinuxBuild {
    contains(QT_VERSION, 5.5.1) {
        message("Skipping support for UVC devices (conflict with Qt 5.5.1 on Ubuntu)")
        DEFINES += QGC_DISABLE_UVC
    }
61 62
}

63 64 65 66 67 68 69
LinuxBuild {
    CONFIG += link_pkgconfig
}

# Qt configuration

CONFIG += qt \
70
    thread \
Daniel Agar's avatar
Daniel Agar committed
71
    c++11 \
72 73 74 75 76 77 78

contains(DEFINES, ENABLE_VERBOSE_OUTPUT) {
    message("Enable verbose compiler output (manual override from command line)")
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, ENABLE_VERBOSE_OUTPUT) {
    message("Enable verbose compiler output (manual override from user_config.pri)")
} else {
CONFIG += \
Daniel Agar's avatar
Daniel Agar committed
79
    silent
80
}
81 82 83 84 85

QT += \
    concurrent \
    gui \
    location \
86
    network \
87 88 89 90 91 92 93 94
    opengl \
    positioning \
    qml \
    quick \
    quickwidgets \
    sql \
    svg \
    widgets \
95 96 97 98 99 100 101
    xml

# Multimedia only used if QVC is enabled
!contains (DEFINES, QGC_DISABLE_UVC) {
    QT += \
        multimedia
}
102 103

!MobileBuild {
dogmaphobic's avatar
dogmaphobic committed
104
QT += \
105 106 107 108
    printsupport \
    serialport \
}

dogmaphobic's avatar
dogmaphobic committed
109
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
110 111 112 113
QT += \
    bluetooth \
}

114 115
#  testlib is needed even in release flavor for QSignalSpy support
QT += testlib
116 117 118 119
ReleaseBuild {
    # We don't need the testlib console in release mode
    QT.testlib.CONFIG -= console
}
120 121 122 123 124 125 126 127
#
# OS Specific settings
#

MacBuild {
    QMAKE_INFO_PLIST    = Custom-Info.plist
    ICON                = $${BASEDIR}/resources/icons/macx.icns
    OTHER_FILES        += Custom-Info.plist
128 129 130
equals(QT_MAJOR_VERSION, 5) | greaterThan(QT_MINOR_VERSION, 5) {
    LIBS               += -framework ApplicationServices
}
131 132 133 134 135 136 137 138 139
}

iOSBuild {
    BUNDLE.files        = $$files($$PWD/ios/AppIcon*.png) $$PWD/ios/QGCLaunchScreen.xib
    QMAKE_BUNDLE_DATA  += BUNDLE
    LIBS               += -framework AVFoundation
    #-- Info.plist (need an "official" one for the App Store)
    ForAppStore {
        message(App Store Build)
140 141 142 143 144 145
        #-- Create official, versioned Info.plist
        APP_STORE = $$system(cd $${BASEDIR} && $${BASEDIR}/tools/update_ios_version.sh $${BASEDIR}/ios/iOSForAppStore-Info-Source.plist $${BASEDIR}/ios/iOSForAppStore-Info.plist)
        APP_ERROR = $$find(APP_STORE, "Error")
        count(APP_ERROR, 1) {
            error("Error building .plist file. 'ForAppStore' builds are only possible through the official build system.")
        }
146 147 148 149 150 151 152 153 154 155 156 157 158
        QMAKE_INFO_PLIST  = $${BASEDIR}/ios/iOSForAppStore-Info.plist
        OTHER_FILES      += $${BASEDIR}/ios/iOSForAppStore-Info.plist
    } else {
        QMAKE_INFO_PLIST  = $${BASEDIR}/ios/iOS-Info.plist
        OTHER_FILES      += $${BASEDIR}/ios/iOS-Info.plist
    }
    #-- TODO: Add iTunesArtwork
}

LinuxBuild {
    CONFIG += qesp_linux_udev
}

159 160 161 162
RC_ICONS = resources/icons/qgroundcontrol.ico
QMAKE_TARGET_COMPANY = "qgroundcontrol.org"
QMAKE_TARGET_DESCRIPTION = "Open source ground control app provided by QGroundControl dev team"
QMAKE_TARGET_COPYRIGHT = "Copyright (C) 2016 QGroundControl Development Team. All rights reserved."
Daniel Agar's avatar
Daniel Agar committed
163
QMAKE_TARGET_PRODUCT = "QGroundControl"
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200

#
# Build-specific settings
#

DebugBuild {
!iOSBuild {
    CONFIG += console
}
}

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

#
# Our QtLocation "plugin"
#

include(src/QtLocationPlugin/QGCLocationPlugin.pri)

#
# External library configuration
#

include(QGCExternalLibs.pri)

#
# Main QGroundControl portion of project file
#

RESOURCES += \
    qgroundcontrol.qrc \
    qgcresources.qrc

201 202 203 204 205
DebugBuild {
    # Unit Test resources
    RESOURCES += UnitTest.qrc
}

206 207 208 209 210 211 212 213 214
DEPENDPATH += \
    . \
    plugins

INCLUDEPATH += .

INCLUDEPATH += \
    include/ui \
    src \
Don Gagne's avatar
Don Gagne committed
215
    src/AnalyzeView \
216 217 218 219 220
    src/audio \
    src/AutoPilotPlugins \
    src/comm \
    src/FlightDisplay \
    src/FlightMap \
221
    src/FlightMap/Widgets \
222 223
    src/input \
    src/Joystick \
Jimmy Johnson's avatar
Jimmy Johnson committed
224
    src/FollowMe \
225
    src/GPS \
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
    src/lib/qmapcontrol \
    src/MissionEditor \
    src/MissionManager \
    src/QmlControls \
    src/uas \
    src/ui \
    src/ui/linechart \
    src/ui/map \
    src/ui/mapdisplay \
    src/ui/mission \
    src/ui/px4_configuration \
    src/ui/toolbar \
    src/ui/uas \
    src/VehicleSetup \
    src/ViewWidgets \
dogmaphobic's avatar
dogmaphobic committed
241 242
    src/QtLocationPlugin \
    src/QtLocationPlugin/QMLControl \
Jimmy Johnson's avatar
Jimmy Johnson committed
243
    src/PositionManager \
244 245 246

FORMS += \
    src/ui/MainWindow.ui \
247
    src/QGCQmlWidgetHolder.ui \
248 249 250

!MobileBuild {
FORMS += \
251 252
    src/ui/uas/QGCUnconnectedInfoWidget.ui \
    src/ui/uas/UASMessageView.ui \
253 254 255 256 257 258 259
    src/ui/Linechart.ui \
    src/ui/MultiVehicleDockWidget.ui \
    src/ui/QGCDataPlot2D.ui \
    src/ui/QGCHilConfiguration.ui \
    src/ui/QGCHilFlightGearConfiguration.ui \
    src/ui/QGCHilJSBSimConfiguration.ui \
    src/ui/QGCHilXPlaneConfiguration.ui \
260
    src/ui/QGCMapRCToParamDialog.ui \
261
    src/ui/QGCMAVLinkInspector.ui \
262
    src/ui/QGCMAVLinkLogPlayer.ui \
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
    src/ui/QGCTabbedInfoView.ui \
    src/ui/QGCUASFileView.ui \
    src/ui/QGCUASFileViewMulti.ui \
    src/ui/uas/UASQuickView.ui \
    src/ui/uas/UASQuickViewItemSelect.ui \
}

HEADERS += \
    src/audio/QGCAudioWorker.h \
    src/CmdLineOptParser.h \
    src/comm/LinkConfiguration.h \
    src/comm/LinkInterface.h \
    src/comm/LinkManager.h \
    src/comm/MAVLinkProtocol.h \
    src/comm/ProtocolInterface.h \
    src/comm/QGCMAVLink.h \
    src/comm/TCPLink.h \
    src/comm/UDPLink.h \
281
    src/FlightDisplay/VideoManager.h \
282
    src/FlightMap/FlightMapSettings.h \
283
    src/FlightMap/Widgets/ValuesWidgetController.h \
284 285 286 287
    src/GAudioOutput.h \
    src/HomePositionManager.h \
    src/Joystick/Joystick.h \
    src/Joystick/JoystickManager.h \
288
    src/VehicleSetup/JoystickConfigController.h \
Jimmy Johnson's avatar
Jimmy Johnson committed
289
    src/FollowMe/FollowMe.h \
Jimmy Johnson's avatar
Jimmy Johnson committed
290
    src/PositionManager/SimulatedPosition.h \
Don Gagne's avatar
Don Gagne committed
291
    src/JsonHelper.h \
292 293
    src/LogCompressor.h \
    src/MG.h \
294
    src/MissionManager/ComplexMissionItem.h \
295 296
    src/MissionManager/GeoFenceController.h \
    src/MissionManager/GeoFenceManager.h \
297
    src/MissionManager/MissionCommandList.h \
298 299
    src/MissionManager/MissionCommandTree.h \
    src/MissionManager/MissionCommandUIInfo.h \
300
    src/MissionManager/MissionController.h \
301 302
    src/MissionManager/MissionItem.h \
    src/MissionManager/MissionManager.h \
303
    src/MissionManager/PlanElementController.h \
304 305 306 307
    src/MissionManager/QGCMapPolygon.h \
    src/MissionManager/RallyPoint.h \
    src/MissionManager/RallyPointController.h \
    src/MissionManager/RallyPointManager.h \
308
    src/MissionManager/SimpleMissionItem.h \
309
    src/MissionManager/SurveyMissionItem.h \
310
    src/MissionManager/VisualMissionItem.h \
311 312 313 314 315
    src/QGC.h \
    src/QGCApplication.h \
    src/QGCComboBox.h \
    src/QGCConfig.h \
    src/QGCDockWidget.h \
316
    src/QGCFileDownload.h \
317 318
    src/QGCGeo.h \
    src/QGCLoggingCategory.h \
Don Gagne's avatar
Don Gagne committed
319
    src/QGCMapPalette.h \
Don Gagne's avatar
Don Gagne committed
320
    src/QGCMobileFileDialogController.h \
321 322 323 324 325
    src/QGCPalette.h \
    src/QGCQmlWidgetHolder.h \
    src/QGCQuickWidget.h \
    src/QGCTemporaryFile.h \
    src/QGCToolbox.h \
326
    src/QmlControls/AppMessages.h \
327 328 329
    src/QmlControls/CoordinateVector.h \
    src/QmlControls/MavlinkQmlSingleton.h \
    src/QmlControls/ParameterEditorController.h \
Don Gagne's avatar
Don Gagne committed
330
    src/QmlControls/RCChannelMonitorController.h \
331 332 333 334 335 336 337 338
    src/QmlControls/ScreenToolsController.h \
    src/QmlControls/QGroundControlQmlGlobal.h \
    src/QmlControls/QmlObjectListModel.h \
    src/uas/UAS.h \
    src/uas/UASInterface.h \
    src/uas/UASMessageHandler.h \
    src/ui/toolbar/MainToolBarController.h \
    src/AutoPilotPlugins/PX4/PX4AirframeLoader.h \
339
    src/AutoPilotPlugins/APM/APMAirframeLoader.h \
340
    src/QmlControls/QGCImageProvider.h \
dogmaphobic's avatar
dogmaphobic committed
341
    src/QtLocationPlugin/QMLControl/QGCMapEngineManager.h \
342
    src/PositionManager/PositionManager.h
343

344 345 346 347
AndroidBuild {
HEADERS += \
}

348 349 350 351 352 353 354
DebugBuild {
HEADERS += \
    src/comm/MockLink.h \
    src/comm/MockLinkFileServer.h \
    src/comm/MockLinkMissionItemHandler.h \
}

355 356 357
WindowsBuild {
    PRECOMPILED_HEADER += src/stable_headers.h
    HEADERS += src/stable_headers.h
Daniel Agar's avatar
Daniel Agar committed
358
    CONFIG -= silent
359
    OTHER_FILES += .appveyor.yml
360 361
}

dogmaphobic's avatar
dogmaphobic committed
362
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
363 364
    HEADERS += \
    src/comm/BluetoothLink.h \
dogmaphobic's avatar
dogmaphobic committed
365
}
366 367 368

!iOSBuild {
HEADERS += \
369
    src/comm/QGCSerialPortInfo.h \
370 371 372 373 374
    src/comm/SerialLink.h \
}

!MobileBuild {
HEADERS += \
Don Gagne's avatar
Don Gagne committed
375
    src/AnalyzeView/GeoTagController.h \
376
    src/AnalyzeView/LogDownloadController.h \
dogmaphobic's avatar
dogmaphobic committed
377
    src/comm/LogReplayLink.h \
378 379 380 381
    src/comm/QGCFlightGearLink.h \
    src/comm/QGCHilLink.h \
    src/comm/QGCJSBSimLink.h \
    src/comm/QGCXPlaneLink.h \
382
    src/Joystick/JoystickSDL.h \
383 384 385
    src/QGCFileDialog.h \
    src/QGCMessageBox.h \
    src/uas/FileManager.h \
386 387 388 389 390 391 392 393
    src/ui/HILDockWidget.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
394
    src/ui/MainWindow.h \
395
    src/ui/MAVLinkDecoder.h \
396
    src/ui/MultiVehicleDockWidget.h \
397 398 399 400
    src/ui/QGCMAVLinkLogPlayer.h \
    src/ui/QGCMapRCToParamDialog.h \
    src/ui/uas/UASMessageView.h \
    src/ui/uas/QGCUnconnectedInfoWidget.h \
401 402 403 404 405 406 407 408 409 410 411 412 413 414
    src/ui/QGCDataPlot2D.h \
    src/ui/QGCHilConfiguration.h \
    src/ui/QGCHilFlightGearConfiguration.h \
    src/ui/QGCHilJSBSimConfiguration.h \
    src/ui/QGCHilXPlaneConfiguration.h \
    src/ui/QGCMAVLinkInspector.h \
    src/ui/QGCTabbedInfoView.h \
    src/ui/QGCUASFileView.h \
    src/ui/QGCUASFileViewMulti.h \
    src/ui/uas/UASQuickView.h \
    src/ui/uas/UASQuickViewGaugeItem.h \
    src/ui/uas/UASQuickViewItem.h \
    src/ui/uas/UASQuickViewItemSelect.h \
    src/ui/uas/UASQuickViewTextItem.h \
415 416 417 418 419 420 421 422 423
    src/GPS/Drivers/src/gps_helper.h \
    src/GPS/Drivers/src/ubx.h \
    src/GPS/definitions.h \
    src/GPS/vehicle_gps_position.h \
    src/GPS/satellite_info.h \
    src/GPS/RTCM/RTCMMavlink.h \
    src/GPS/GPSManager.h \
    src/GPS/GPSPositionMessage.h \
    src/GPS/GPSProvider.h \
424 425 426 427 428
    src/ViewWidgets/CustomCommandWidget.h \
    src/ViewWidgets/CustomCommandWidgetController.h \
    src/ViewWidgets/ViewWidgetController.h \
}

Don Gagne's avatar
Don Gagne committed
429 430 431 432 433
iOSBuild {
    OBJECTIVE_SOURCES += \
        src/audio/QGCAudioWorker_iOS.mm \
        src/MobileScreenMgr.mm \
}
434

Don Gagne's avatar
Don Gagne committed
435
AndroidBuild {
Don Gagne's avatar
Don Gagne committed
436 437 438 439
    SOURCES += src/MobileScreenMgr.cc \
}


440 441 442 443 444 445
SOURCES += \
    src/audio/QGCAudioWorker.cpp \
    src/CmdLineOptParser.cc \
    src/comm/LinkConfiguration.cc \
    src/comm/LinkManager.cc \
    src/comm/MAVLinkProtocol.cc \
446
    src/comm/QGCMAVLink.cc \
447 448
    src/comm/TCPLink.cc \
    src/comm/UDPLink.cc \
449
    src/FlightDisplay/VideoManager.cc \
450
    src/FlightMap/FlightMapSettings.cc \
451
    src/FlightMap/Widgets/ValuesWidgetController.cc \
452 453 454 455
    src/GAudioOutput.cc \
    src/HomePositionManager.cc \
    src/Joystick/Joystick.cc \
    src/Joystick/JoystickManager.cc \
456
    src/VehicleSetup/JoystickConfigController.cc \
Don Gagne's avatar
Don Gagne committed
457
    src/JsonHelper.cc \
Jimmy Johnson's avatar
Jimmy Johnson committed
458
    src/FollowMe/FollowMe.cc \
459 460
    src/LogCompressor.cc \
    src/main.cc \
461
    src/MissionManager/ComplexMissionItem.cc \
462 463
    src/MissionManager/GeoFenceController.cc \
    src/MissionManager/GeoFenceManager.cc \
464
    src/MissionManager/MissionCommandList.cc \
465 466
    src/MissionManager/MissionCommandTree.cc \
    src/MissionManager/MissionCommandUIInfo.cc \
467
    src/MissionManager/MissionController.cc \
468 469
    src/MissionManager/MissionItem.cc \
    src/MissionManager/MissionManager.cc \
470
    src/MissionManager/PlanElementController.cc \
471 472 473 474
    src/MissionManager/QGCMapPolygon.cc \
    src/MissionManager/RallyPoint.cc \
    src/MissionManager/RallyPointController.cc \
    src/MissionManager/RallyPointManager.cc \
475
    src/MissionManager/SimpleMissionItem.cc \
476
    src/MissionManager/SurveyMissionItem.cc \
477
    src/MissionManager/VisualMissionItem.cc \
478 479 480 481
    src/QGC.cc \
    src/QGCApplication.cc \
    src/QGCComboBox.cc \
    src/QGCDockWidget.cc \
482
    src/QGCFileDownload.cc \
483
    src/QGCLoggingCategory.cc \
Don Gagne's avatar
Don Gagne committed
484
    src/QGCMapPalette.cc \
Don Gagne's avatar
Don Gagne committed
485
    src/QGCMobileFileDialogController.cc \
486 487
    src/QGCPalette.cc \
    src/QGCQuickWidget.cc \
488
    src/QGCQmlWidgetHolder.cpp \
489 490 491
    src/QGCTemporaryFile.cc \
    src/QGCToolbox.cc \
    src/QGCGeo.cc \
492
    src/QmlControls/AppMessages.cc \
493 494
    src/QmlControls/CoordinateVector.cc \
    src/QmlControls/ParameterEditorController.cc \
Don Gagne's avatar
Don Gagne committed
495
    src/QmlControls/RCChannelMonitorController.cc \
496 497 498 499 500 501 502
    src/QmlControls/ScreenToolsController.cc \
    src/QmlControls/QGroundControlQmlGlobal.cc \
    src/QmlControls/QmlObjectListModel.cc \
    src/uas/UAS.cc \
    src/uas/UASMessageHandler.cc \
    src/ui/toolbar/MainToolBarController.cc \
    src/AutoPilotPlugins/PX4/PX4AirframeLoader.cc \
503
    src/AutoPilotPlugins/APM/APMAirframeLoader.cc \
504
    src/QmlControls/QGCImageProvider.cc \
dogmaphobic's avatar
dogmaphobic committed
505
    src/QtLocationPlugin/QMLControl/QGCMapEngineManager.cc \
Jimmy Johnson's avatar
Jimmy Johnson committed
506
    src/PositionManager/SimulatedPosition.cc \
507
    src/PositionManager/PositionManager.cpp
508

509 510 511 512 513 514 515
DebugBuild {
SOURCES += \
    src/comm/MockLink.cc \
    src/comm/MockLinkFileServer.cc \
    src/comm/MockLinkMissionItemHandler.cc \
}

516 517
!iOSBuild {
SOURCES += \
518
    src/comm/QGCSerialPortInfo.cc \
519 520 521
    src/comm/SerialLink.cc \
}

dogmaphobic's avatar
dogmaphobic committed
522
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
523 524 525 526
    SOURCES += \
    src/comm/BluetoothLink.cc \
}

527 528
!MobileBuild {
SOURCES += \
Don Gagne's avatar
Don Gagne committed
529
    src/AnalyzeView/GeoTagController.cc \
530
    src/AnalyzeView/LogDownloadController.cc \
531 532 533 534 535
    src/ui/uas/UASMessageView.cc \
    src/uas/FileManager.cc \
    src/ui/uas/QGCUnconnectedInfoWidget.cc \
    src/ui/MAVLinkDecoder.cc \
    src/ui/QGCMapRCToParamDialog.cpp \
dogmaphobic's avatar
dogmaphobic committed
536
    src/comm/LogReplayLink.cc \
537
    src/QGCFileDialog.cc \
dogmaphobic's avatar
dogmaphobic committed
538
    src/ui/QGCMAVLinkLogPlayer.cc \
539 540 541
    src/comm/QGCFlightGearLink.cc \
    src/comm/QGCJSBSimLink.cc \
    src/comm/QGCXPlaneLink.cc \
542
    src/Joystick/JoystickSDL.cc \
543 544 545 546 547 548 549 550
    src/ui/HILDockWidget.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
551
    src/ui/MainWindow.cc \
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
    src/ui/MultiVehicleDockWidget.cc \
    src/ui/QGCDataPlot2D.cc \
    src/ui/QGCHilConfiguration.cc \
    src/ui/QGCHilFlightGearConfiguration.cc \
    src/ui/QGCHilJSBSimConfiguration.cc \
    src/ui/QGCHilXPlaneConfiguration.cc \
    src/ui/QGCMAVLinkInspector.cc \
    src/ui/QGCTabbedInfoView.cpp \
    src/ui/QGCUASFileView.cc \
    src/ui/QGCUASFileViewMulti.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 \
567 568 569 570 571
    src/GPS/Drivers/src/gps_helper.cpp \
    src/GPS/Drivers/src/ubx.cpp \
    src/GPS/RTCM/RTCMMavlink.cc \
    src/GPS/GPSManager.cc \
    src/GPS/GPSProvider.cc \
572 573
    src/ViewWidgets/CustomCommandWidget.cc \
    src/ViewWidgets/CustomCommandWidgetController.cc \
574
    src/ViewWidgets/ViewWidgetController.cc
575 576 577 578 579 580
}

#
# Unit Test specific configuration goes here
#

581
DebugBuild {
582 583 584 585 586 587 588 589 590 591

HEADERS += src/QmlControls/QmlTestWidget.h
SOURCES += src/QmlControls/QmlTestWidget.cc

!MobileBuild {

INCLUDEPATH += \
    src/qgcunittest

HEADERS += \
592
    src/AnalyzeView/LogDownloadTest.h \
593 594 595
    src/FactSystem/FactSystemTestBase.h \
    src/FactSystem/FactSystemTestGeneric.h \
    src/FactSystem/FactSystemTestPX4.h \
596
    src/FactSystem/ParameterManagerTest.h \
597
    src/MissionManager/ComplexMissionItemTest.h \
598
    src/MissionManager/MissionCommandTreeTest.h \
599 600
    src/MissionManager/MissionControllerTest.h \
    src/MissionManager/MissionControllerManagerTest.h \
601
    src/MissionManager/MissionItemTest.h \
602
    src/MissionManager/MissionManagerTest.h \
603
    src/MissionManager/SimpleMissionItemTest.h \
604 605 606 607 608 609 610 611 612
    src/qgcunittest/GeoTest.h \
    src/qgcunittest/FileDialogTest.h \
    src/qgcunittest/FileManagerTest.h \
    src/qgcunittest/FlightGearTest.h \
    src/qgcunittest/LinkManagerTest.h \
    src/qgcunittest/MainWindowTest.h \
    src/qgcunittest/MavlinkLogTest.h \
    src/qgcunittest/MessageBoxTest.h \
    src/qgcunittest/MultiSignalSpy.h \
Don Gagne's avatar
Don Gagne committed
613
    src/qgcunittest/RadioConfigTest.h \
614 615 616 617 618
    src/qgcunittest/TCPLinkTest.h \
    src/qgcunittest/TCPLoopBackServer.h \
    src/qgcunittest/UnitTest.h \

SOURCES += \
619
    src/AnalyzeView/LogDownloadTest.cc \
620 621 622
    src/FactSystem/FactSystemTestBase.cc \
    src/FactSystem/FactSystemTestGeneric.cc \
    src/FactSystem/FactSystemTestPX4.cc \
623
    src/FactSystem/ParameterManagerTest.cc \
624
    src/MissionManager/ComplexMissionItemTest.cc \
625
    src/MissionManager/MissionCommandTreeTest.cc \
626 627
    src/MissionManager/MissionControllerTest.cc \
    src/MissionManager/MissionControllerManagerTest.cc \
628
    src/MissionManager/MissionItemTest.cc \
629
    src/MissionManager/MissionManagerTest.cc \
630
    src/MissionManager/SimpleMissionItemTest.cc \
631 632 633 634 635 636 637 638 639
    src/qgcunittest/GeoTest.cc \
    src/qgcunittest/FileDialogTest.cc \
    src/qgcunittest/FileManagerTest.cc \
    src/qgcunittest/FlightGearTest.cc \
    src/qgcunittest/LinkManagerTest.cc \
    src/qgcunittest/MainWindowTest.cc \
    src/qgcunittest/MavlinkLogTest.cc \
    src/qgcunittest/MessageBoxTest.cc \
    src/qgcunittest/MultiSignalSpy.cc \
Don Gagne's avatar
Don Gagne committed
640
    src/qgcunittest/RadioConfigTest.cc \
641 642 643
    src/qgcunittest/TCPLinkTest.cc \
    src/qgcunittest/TCPLoopBackServer.cc \
    src/qgcunittest/UnitTest.cc \
dogmaphobic's avatar
dogmaphobic committed
644
    src/qgcunittest/UnitTestList.cc \
645 646
} # !MobileBuild
} # DebugBuild
647 648 649 650 651 652

#
# Firmware Plugin Support
#

INCLUDEPATH += \
653
    src/AutoPilotPlugins/APM \
Don Gagne's avatar
Don Gagne committed
654
    src/AutoPilotPlugins/Common \
655 656
    src/AutoPilotPlugins/PX4 \
    src/FirmwarePlugin \
657 658
    src/FirmwarePlugin/APM \
    src/FirmwarePlugin/PX4 \
659 660 661 662 663 664 665 666
    src/Vehicle \
    src/VehicleSetup \

HEADERS+= \
    src/AutoPilotPlugins/AutoPilotPlugin.h \
    src/AutoPilotPlugins/AutoPilotPluginManager.h \
    src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h \
    src/AutoPilotPlugins/APM/APMAirframeComponent.h \
667 668
    src/AutoPilotPlugins/APM/APMAirframeComponentController.h \
    src/AutoPilotPlugins/APM/APMAirframeComponentAirframes.h \
Don Gagne's avatar
Don Gagne committed
669
    src/AutoPilotPlugins/APM/APMCameraComponent.h \
670
    src/AutoPilotPlugins/APM/APMLightsComponent.h \
671
    src/AutoPilotPlugins/APM/APMCompassCal.h \
Don Gagne's avatar
Don Gagne committed
672 673
    src/AutoPilotPlugins/APM/APMFlightModesComponent.h \
    src/AutoPilotPlugins/APM/APMFlightModesComponentController.h \
Don Gagne's avatar
Don Gagne committed
674 675
    src/AutoPilotPlugins/APM/APMPowerComponent.h \
    src/AutoPilotPlugins/APM/APMRadioComponent.h \
Don Gagne's avatar
Don Gagne committed
676
    src/AutoPilotPlugins/APM/APMSafetyComponent.h \
Don Gagne's avatar
Don Gagne committed
677 678
    src/AutoPilotPlugins/APM/APMSensorsComponent.h \
    src/AutoPilotPlugins/APM/APMSensorsComponentController.h \
Don Gagne's avatar
Don Gagne committed
679
    src/AutoPilotPlugins/APM/APMTuningComponent.h \
Don Gagne's avatar
Don Gagne committed
680
    src/AutoPilotPlugins/Common/MotorComponent.h \
Don Gagne's avatar
Don Gagne committed
681
    src/AutoPilotPlugins/Common/RadioComponentController.h \
dogmaphobic's avatar
dogmaphobic committed
682
    src/AutoPilotPlugins/Common/ESP8266ComponentController.h \
683
    src/AutoPilotPlugins/Common/ESP8266Component.h \
684 685 686 687 688
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.h \
    src/AutoPilotPlugins/PX4/AirframeComponent.h \
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.h \
    src/AutoPilotPlugins/PX4/AirframeComponentController.h \
    src/AutoPilotPlugins/PX4/FlightModesComponent.h \
Don Gagne's avatar
Don Gagne committed
689 690
    src/AutoPilotPlugins/PX4/PX4AdvancedFlightModesController.h \
    src/AutoPilotPlugins/PX4/PX4SimpleFlightModesController.h \
691 692 693
    src/AutoPilotPlugins/PX4/PowerComponent.h \
    src/AutoPilotPlugins/PX4/PowerComponentController.h \
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.h \
Don Gagne's avatar
Don Gagne committed
694
    src/AutoPilotPlugins/PX4/PX4RadioComponent.h \
695
    src/AutoPilotPlugins/PX4/CameraComponent.h \
696 697 698
    src/AutoPilotPlugins/PX4/SafetyComponent.h \
    src/AutoPilotPlugins/PX4/SensorsComponent.h \
    src/AutoPilotPlugins/PX4/SensorsComponentController.h \
Don Gagne's avatar
Don Gagne committed
699
    src/AutoPilotPlugins/PX4/PX4TuningComponent.h \
700 701 702
    src/FirmwarePlugin/FirmwarePluginManager.h \
    src/FirmwarePlugin/FirmwarePlugin.h \
    src/FirmwarePlugin/APM/APMFirmwarePlugin.h \
703
    src/FirmwarePlugin/APM/APMGeoFenceManager.h \
704
    src/FirmwarePlugin/APM/APMParameterMetaData.h \
705
    src/FirmwarePlugin/APM/APMRallyPointManager.h \
706 707 708
    src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.h \
    src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h \
    src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h \
709
    src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.h \
Daniel Agar's avatar
Daniel Agar committed
710
    src/FirmwarePlugin/PX4/px4_custom_mode.h \
711
    src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h \
Don Gagne's avatar
Don Gagne committed
712
    src/FirmwarePlugin/PX4/PX4GeoFenceManager.h \
713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731
    src/FirmwarePlugin/PX4/PX4ParameterMetaData.h \
    src/Vehicle/MultiVehicleManager.h \
    src/Vehicle/Vehicle.h \
    src/VehicleSetup/VehicleComponent.h \

!MobileBuild {
HEADERS += \
    src/VehicleSetup/FirmwareUpgradeController.h \
    src/VehicleSetup/Bootloader.h \
    src/VehicleSetup/PX4FirmwareUpgradeThread.h \
    src/VehicleSetup/FirmwareImage.h \

}

SOURCES += \
    src/AutoPilotPlugins/AutoPilotPlugin.cc \
    src/AutoPilotPlugins/AutoPilotPluginManager.cc \
    src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc \
    src/AutoPilotPlugins/APM/APMAirframeComponent.cc \
732
    src/AutoPilotPlugins/APM/APMAirframeComponentController.cc \
Don Gagne's avatar
Don Gagne committed
733
    src/AutoPilotPlugins/APM/APMCameraComponent.cc \
734
    src/AutoPilotPlugins/APM/APMLightsComponent.cc \
735
    src/AutoPilotPlugins/APM/APMCompassCal.cc \
Don Gagne's avatar
Don Gagne committed
736 737
    src/AutoPilotPlugins/APM/APMFlightModesComponent.cc \
    src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc \
Don Gagne's avatar
Don Gagne committed
738 739
    src/AutoPilotPlugins/APM/APMPowerComponent.cc \
    src/AutoPilotPlugins/APM/APMRadioComponent.cc \
Don Gagne's avatar
Don Gagne committed
740
    src/AutoPilotPlugins/APM/APMSafetyComponent.cc \
Don Gagne's avatar
Don Gagne committed
741 742
    src/AutoPilotPlugins/APM/APMSensorsComponent.cc \
    src/AutoPilotPlugins/APM/APMSensorsComponentController.cc \
Don Gagne's avatar
Don Gagne committed
743
    src/AutoPilotPlugins/APM/APMTuningComponent.cc \
Don Gagne's avatar
Don Gagne committed
744
    src/AutoPilotPlugins/Common/MotorComponent.cc \
Don Gagne's avatar
Don Gagne committed
745
    src/AutoPilotPlugins/Common/RadioComponentController.cc \
dogmaphobic's avatar
dogmaphobic committed
746
    src/AutoPilotPlugins/Common/ESP8266ComponentController.cc \
747
    src/AutoPilotPlugins/Common/ESP8266Component.cc \
748
    src/AutoPilotPlugins/APM/APMAirframeComponentAirframes.cc \
749 750 751 752 753
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.cc \
    src/AutoPilotPlugins/PX4/AirframeComponent.cc \
    src/AutoPilotPlugins/PX4/AirframeComponentAirframes.cc \
    src/AutoPilotPlugins/PX4/AirframeComponentController.cc \
    src/AutoPilotPlugins/PX4/FlightModesComponent.cc \
Don Gagne's avatar
Don Gagne committed
754 755
    src/AutoPilotPlugins/PX4/PX4AdvancedFlightModesController.cc \
    src/AutoPilotPlugins/PX4/PX4SimpleFlightModesController.cc \
756 757 758
    src/AutoPilotPlugins/PX4/PowerComponent.cc \
    src/AutoPilotPlugins/PX4/PowerComponentController.cc \
    src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc \
Don Gagne's avatar
Don Gagne committed
759
    src/AutoPilotPlugins/PX4/PX4RadioComponent.cc \
760
    src/AutoPilotPlugins/PX4/CameraComponent.cc \
761 762 763
    src/AutoPilotPlugins/PX4/SafetyComponent.cc \
    src/AutoPilotPlugins/PX4/SensorsComponent.cc \
    src/AutoPilotPlugins/PX4/SensorsComponentController.cc \
Don Gagne's avatar
Don Gagne committed
764
    src/AutoPilotPlugins/PX4/PX4TuningComponent.cc \
765
    src/FirmwarePlugin/APM/APMFirmwarePlugin.cc \
766
    src/FirmwarePlugin/APM/APMGeoFenceManager.cc \
767
    src/FirmwarePlugin/APM/APMParameterMetaData.cc \
768
    src/FirmwarePlugin/APM/APMRallyPointManager.cc \
769 770 771
    src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc \
    src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc \
    src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc \
772
    src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc \
773
    src/FirmwarePlugin/FirmwarePlugin.cc \
774 775
    src/FirmwarePlugin/FirmwarePluginManager.cc \
    src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc \
Don Gagne's avatar
Don Gagne committed
776
    src/FirmwarePlugin/PX4/PX4GeoFenceManager.cc \
777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798
    src/FirmwarePlugin/PX4/PX4ParameterMetaData.cc \
    src/Vehicle/MultiVehicleManager.cc \
    src/Vehicle/Vehicle.cc \
    src/VehicleSetup/VehicleComponent.cc \

!MobileBuild {
SOURCES += \
    src/VehicleSetup/FirmwareUpgradeController.cc \
    src/VehicleSetup/Bootloader.cc \
    src/VehicleSetup/PX4FirmwareUpgradeThread.cc \
    src/VehicleSetup/FirmwareImage.cc \

}

# Fact System code

INCLUDEPATH += \
    src/FactSystem \
    src/FactSystem/FactControls \

HEADERS += \
    src/FactSystem/Fact.h \
Don Gagne's avatar
Don Gagne committed
799
    src/FactSystem/FactGroup.h \
800
    src/FactSystem/FactControls/FactPanelController.h \
801 802 803
    src/FactSystem/FactMetaData.h \
    src/FactSystem/FactSystem.h \
    src/FactSystem/FactValidator.h \
804
    src/FactSystem/ParameterManager.h \
805
    src/FactSystem/SettingsFact.h \
806 807 808

SOURCES += \
    src/FactSystem/Fact.cc \
Don Gagne's avatar
Don Gagne committed
809
    src/FactSystem/FactGroup.cc \
810
    src/FactSystem/FactControls/FactPanelController.cc \
811 812 813
    src/FactSystem/FactMetaData.cc \
    src/FactSystem/FactSystem.cc \
    src/FactSystem/FactValidator.cc \
814
    src/FactSystem/ParameterManager.cc \
815
    src/FactSystem/SettingsFact.cc \
816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835

#-------------------------------------------------------------------------------------
# Video Streaming

INCLUDEPATH += \
    src/VideoStreaming

HEADERS += \
    src/VideoStreaming/VideoItem.h \
    src/VideoStreaming/VideoReceiver.h \
    src/VideoStreaming/VideoStreaming.h \
    src/VideoStreaming/VideoSurface.h \
    src/VideoStreaming/VideoSurface_p.h \

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

836
contains (CONFIG, DISABLE_VIDEOSTREAMING) {
837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888
    message("Skipping support for video streaming (manual override from command line)")
# 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)
}

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

    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
}

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

include(QGCSetup.pri)

#
# Installer targets
#

include(QGCInstaller.pri)