qgroundcontrol.pro 48.5 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
# -------------------------------------------------

10 11
QMAKE_PROJECT_DEPTH = 0 # undocumented qmake flag to force absolute paths in make files

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

message(Qt version $$[QT_VERSION])

18 19
!equals(QT_MAJOR_VERSION, 5) | !greaterThan(QT_MINOR_VERSION, 8) {
    error("Unsupported Qt version, 5.9+ is required")
20
}
21

22 23
include(QGCCommon.pri)

Daniel Agar's avatar
Daniel Agar committed
24
TARGET   = QGroundControl
25
TEMPLATE = app
26
QGCROOT  = $$PWD
27 28 29

DebugBuild {
    DESTDIR  = $${OUT_PWD}/debug
30
    DEFINES += DEBUG
31 32
    #DEFINES += SNAKE_SHOW_TIME
    #DEFINES += DEBUG_SRTL
33
    #DEFINES += SNAKE_DEBUG
34
    DEFINES += SNAKE_SHOW_TIME
35 36
    DEFINES += SHOW_CIRCULAR_SURVEY_TIME
    DEFINES += DEBUG_CIRCULAR_SURVEY
37
    #DEFINES += ROS_BRIDGE_DEBUG
38 39
}
else {
40
    DESTDIR  = $${OUT_PWD}/release
41
    #DEFINES += ROS_BRIDGE_DEBUG
42 43 44 45
    DEFINES += SHOW_CIRCULAR_SURVEY_TIME
    DEFINES += SNAKE_SHOW_TIME
    #DEFINES += SNAKE_DEBUG
    #DEFINES += DEBUG_SRTL
46
    DEFINES += NDEBUG
47 48
}

49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
#
# OS Specific settings
#

MacBuild {
    QMAKE_INFO_PLIST    = Custom-Info.plist
    ICON                = $${BASEDIR}/resources/icons/macx.icns
    OTHER_FILES        += Custom-Info.plist
    equals(QT_MAJOR_VERSION, 5) | greaterThan(QT_MINOR_VERSION, 5) {
        LIBS           += -framework ApplicationServices
    }
}

LinuxBuild {
    CONFIG  += qesp_linux_udev
}

WindowsBuild {
    RC_ICONS = resources/icons/qgroundcontrol.ico
}

70 71 72 73
#
# Branding
#

74 75 76
QGC_APP_NAME        = "QGCWima"
QGC_ORG_NAME        = "QGCWima.org"
QGC_ORG_DOMAIN      = "org.qgcwima"
77 78 79
QGC_APP_DESCRIPTION = "Open source ground control app provided by QGroundControl dev team"
QGC_APP_COPYRIGHT   = "Copyright (C) 2017 QGroundControl Development Team. All rights reserved."

80 81 82 83
WindowsBuild {
    QGC_INSTALLER_ICON          = "WindowsQGC.ico"
    QGC_INSTALLER_HEADER_BITMAP = "installheader.bmp"
}
84

85 86 87 88 89 90
# 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)))
}

91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
#
# Custom Build
#
# QGC will create a "CUSTOMCLASS" object (exposed by your custom build
# and derived from QGCCorePlugin).
# This is the start of allowing custom Plugins, which will eventually use a
# more defined runtime plugin architecture and not require a QGC project
# file you would have to keep in sync with the upstream repo.
#

# This allows you to ignore the custom build even if the custom build
# is present. It's useful to run "regular" builds to make sure you didn't
# break anything.

contains (CONFIG, QGC_DISABLE_CUSTOM_BUILD) {
    message("Disable custom build override")
} else {
    exists($$PWD/custom/custom.pri) {
        message("Found custom build")
        CONFIG  += CustomBuild
        DEFINES += QGC_CUSTOM_BUILD
        # custom.pri must define:
        # CUSTOMCLASS  = YourIQGCCorePluginDerivation
        # CUSTOMHEADER = \"\\\"YourIQGCCorePluginDerivation.h\\\"\"
        include($$PWD/custom/custom.pri)
    }
}

119 120 121 122 123 124 125 126
WindowsBuild {
    # Sets up application properties
    QMAKE_TARGET_COMPANY        = "$${QGC_ORG_NAME}"
    QMAKE_TARGET_DESCRIPTION    = "$${QGC_APP_DESCRIPTION}"
    QMAKE_TARGET_COPYRIGHT      = "$${QGC_APP_COPYRIGHT}"
    QMAKE_TARGET_PRODUCT        = "$${QGC_APP_NAME}"
}

127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
#-------------------------------------------------------------------------------------
# iOS

iOSBuild {
    contains (CONFIG, DISABLE_BUILTIN_IOS) {
        message("Skipping builtin support for iOS")
    } else {
        LIBS                 += -framework AVFoundation
        #-- Info.plist (need an "official" one for the App Store)
        ForAppStore {
            message(App Store Build)
            #-- 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.")
            }
            QT               += qml-private
            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
        }
        QMAKE_ASSET_CATALOGS += ios/Images.xcassets
        BUNDLE.files          = ios/QGCLaunchScreen.xib $$QMAKE_INFO_PLIST
        QMAKE_BUNDLE_DATA    += BUNDLE
    }
}

Gus Grubba's avatar
Gus Grubba committed
157 158 159 160 161 162 163 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
#
# Plugin configuration
#
# This allows you to build custom versions of QGC which only includes your
# specific vehicle plugin. To remove support for a firmware type completely,
# disable both the Plugin and PluginFactory entries. To include custom support
# for an existing plugin type disable PluginFactory only. Then provide you own
# implementation of FirmwarePluginFactory and use the FirmwarePlugin and
# AutoPilotPlugin classes as the base clase for your derived plugin
# implementation.

contains (CONFIG, QGC_DISABLE_APM_PLUGIN) {
    message("Disable APM Plugin")
} else {
    CONFIG += APMFirmwarePlugin
}

contains (CONFIG, QGC_DISABLE_APM_PLUGIN_FACTORY) {
    message("Disable APM Plugin Factory")
} else {
    CONFIG += APMFirmwarePluginFactory
}

contains (CONFIG, QGC_DISABLE_PX4_PLUGIN) {
    message("Disable PX4 Plugin")
} else {
    CONFIG += PX4FirmwarePlugin
}

contains (CONFIG, QGC_DISABLE_PX4_PLUGIN_FACTORY) {
    message("Disable PX4 Plugin Factory")
} else {
    CONFIG += PX4FirmwarePluginFactory
}

dogmaphobic's avatar
dogmaphobic committed
192 193 194 195 196 197 198 199 200 201 202 203
# 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
}

204 205 206
# USB Camera and UVC Video Sources
contains (DEFINES, QGC_DISABLE_UVC) {
    message("Skipping support for UVC devices (manual override from command line)")
207
    DEFINES += QGC_DISABLE_UVC
208 209
} 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)")
210
    DEFINES += QGC_DISABLE_UVC
dogmaphobic's avatar
dogmaphobic committed
211 212 213 214 215
} 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
    }
216 217
}

218 219 220 221 222 223 224
LinuxBuild {
    CONFIG += link_pkgconfig
}

# Qt configuration

CONFIG += qt \
225
    thread \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
226
    c++14
227 228 229 230 231 232

DebugBuild {
    CONFIG -= qtquickcompiler
} else {
    CONFIG += qtquickcompiler
}
233 234 235 236 237 238

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 {
239
    CONFIG += silent
240
}
241 242 243 244 245

QT += \
    concurrent \
    gui \
    location \
246
    network \
247 248 249 250 251 252 253 254
    opengl \
    positioning \
    qml \
    quick \
    quickwidgets \
    sql \
    svg \
    widgets \
255 256
    xml \
    texttospeech
257 258 259 260 261 262

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

264 265 266 267 268 269
AndroidBuild || iOSBuild {
    # Android and iOS don't unclude these
} else {
    QT += \
        printsupport \
        serialport \
270
        charts \
271 272
}

dogmaphobic's avatar
dogmaphobic committed
273
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
274 275 276 277
QT += \
    bluetooth \
}

278 279
#  testlib is needed even in release flavor for QSignalSpy support
QT += testlib
280 281 282 283
ReleaseBuild {
    # We don't need the testlib console in release mode
    QT.testlib.CONFIG -= console
}
284

285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307
#
# Build-specific settings
#

DebugBuild {
!iOSBuild {
    CONFIG += console
}
}

#
# Our QtLocation "plugin"
#

include(src/QtLocationPlugin/QGCLocationPlugin.pri)

#
# External library configuration
#

include(QGCExternalLibs.pri)

#
308
# Resources (custom code can replace them)
309 310
#

311 312 313 314 315 316 317 318 319 320 321 322 323 324
CustomBuild {
    exists($$PWD/custom/qgroundcontrol.qrc) {
        message("Using custom qgroundcontrol.qrc")
        RESOURCES += $$PWD/custom/qgroundcontrol.qrc
    } else {
        RESOURCES += $$PWD/qgroundcontrol.qrc
    }
    exists($$PWD/custom/qgcresources.qrc) {
        message("Using custom qgcresources.qrc")
        RESOURCES += $$PWD/custom/qgcresources.qrc
    } else {
        RESOURCES += $$PWD/qgcresources.qrc
    }
} else {
325 326 327
    DEFINES += QGC_APPLICATION_NAME=\"\\\"QGCWima\\\"\"
    DEFINES += QGC_ORG_NAME=\"\\\"QGCWima.org\\\"\"
    DEFINES += QGC_ORG_DOMAIN=\"\\\"org.qgcwima\\\"\"
328 329 330 331 332
    RESOURCES += \
        $$PWD/qgroundcontrol.qrc \
        $$PWD/qgcresources.qrc
}

333 334 335 336 337 338 339 340 341
# On Qt 5.9 android versions there is the following bug: https://bugreports.qt.io/browse/QTBUG-61424
# This prevents FileDialog from being used. So we have a temp hack workaround for it which just no-ops
# the FileDialog fallback mechanism on android 5.9 builds.
equals(QT_MAJOR_VERSION, 5):equals(QT_MINOR_VERSION, 9):AndroidBuild {
    RESOURCES += $$PWD/HackAndroidFileDialog.qrc
} else {
    RESOURCES += $$PWD/HackFileDialog.qrc
}

342 343 344
#
# Main QGroundControl portion of project file
#
345

346 347 348 349 350
DebugBuild {
    # Unit Test resources
    RESOURCES += UnitTest.qrc
}

351 352 353 354 355 356 357 358 359
DEPENDPATH += \
    . \
    plugins

INCLUDEPATH += .

INCLUDEPATH += \
    include/ui \
    src \
360
    src/api \
Don Gagne's avatar
Don Gagne committed
361
    src/AnalyzeView \
362
    src/Camera \
363 364 365
    src/AutoPilotPlugins \
    src/FlightDisplay \
    src/FlightMap \
366
    src/FlightMap/Widgets \
Jimmy Johnson's avatar
Jimmy Johnson committed
367
    src/FollowMe \
368
    src/GPS \
Gus Grubba's avatar
Gus Grubba committed
369
    src/Joystick \
370
    src/PlanView \
371
    src/MissionManager \
Gus Grubba's avatar
Gus Grubba committed
372
    src/PositionManager \
373
    src/QmlControls \
Gus Grubba's avatar
Gus Grubba committed
374 375
    src/QtLocationPlugin \
    src/QtLocationPlugin/QMLControl \
376
    src/Settings \
377
    src/Wima/Snake \
378
    src/Terrain \
Gus Grubba's avatar
Gus Grubba committed
379 380
    src/VehicleSetup \
    src/ViewWidgets \
381
    src/Audio \
Gus Grubba's avatar
Gus Grubba committed
382
    src/comm \
383
    src/comm/ros_bridge \
Gus Grubba's avatar
Gus Grubba committed
384 385
    src/input \
    src/lib/qmapcontrol \
386 387 388 389 390 391 392 393 394 395 396 397
    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 \

FORMS += \
    src/ui/MainWindow.ui \
398
    src/QGCQmlWidgetHolder.ui \
399 400 401

!MobileBuild {
FORMS += \
402
    src/ui/linechart/Linechart.ui \
403 404 405 406 407 408
    src/ui/MultiVehicleDockWidget.ui \
    src/ui/QGCHilConfiguration.ui \
    src/ui/QGCHilFlightGearConfiguration.ui \
    src/ui/QGCHilJSBSimConfiguration.ui \
    src/ui/QGCHilXPlaneConfiguration.ui \
    src/ui/QGCMAVLinkInspector.ui \
409
    src/ui/QGCMAVLinkLogPlayer.ui \
Gus Grubba's avatar
Gus Grubba committed
410
    src/ui/QGCMapRCToParamDialog.ui \
411 412
    src/ui/QGCUASFileView.ui \
    src/ui/QGCUASFileViewMulti.ui \
Gus Grubba's avatar
Gus Grubba committed
413
    src/ui/uas/QGCUnconnectedInfoWidget.ui \
414 415
}

Gus Grubba's avatar
Gus Grubba committed
416 417 418 419 420
#
# Plugin API
#

HEADERS += \
421 422
    src/Wima/CircularSurvey.h \
    src/Wima/Geometry/GenericCircle.h \
423
    src/Wima/RoutingThread.h \
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
    src/Wima/Snake/clipper/clipper.hpp \
    src/Wima/Snake/mapbox/feature.hpp \
    src/Wima/Snake/mapbox/geometry.hpp \
    src/Wima/Snake/mapbox/geometry/box.hpp \
    src/Wima/Snake/mapbox/geometry/empty.hpp \
    src/Wima/Snake/mapbox/geometry/envelope.hpp \
    src/Wima/Snake/mapbox/geometry/for_each_point.hpp \
    src/Wima/Snake/mapbox/geometry/geometry.hpp \
    src/Wima/Snake/mapbox/geometry/line_string.hpp \
    src/Wima/Snake/mapbox/geometry/multi_line_string.hpp \
    src/Wima/Snake/mapbox/geometry/multi_point.hpp \
    src/Wima/Snake/mapbox/geometry/multi_polygon.hpp \
    src/Wima/Snake/mapbox/geometry/point.hpp \
    src/Wima/Snake/mapbox/geometry/point_arithmetic.hpp \
    src/Wima/Snake/mapbox/geometry/polygon.hpp \
    src/Wima/Snake/mapbox/geometry_io.hpp \
    src/Wima/Snake/mapbox/optional.hpp \
    src/Wima/Snake/mapbox/polylabel.hpp \
    src/Wima/Snake/mapbox/recursive_wrapper.hpp \
    src/Wima/Snake/mapbox/variant.hpp \
    src/Wima/Snake/mapbox/variant_io.hpp \
    src/Wima/Snake/snake.h \
446 447
    src/Wima/Geometry/GenericPolygon.h \
    src/Wima/Geometry/GenericPolygonArray.h \
448
    src/Wima/Geometry/GeoPoint3D.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
449
    src/Wima/Snake/NemoInterface.h \
450
    src/Wima/Snake/QNemoHeartbeat.h \
451
    src/Wima/Snake/QNemoProgress.h \
452
    src/Wima/Snake/QNemoProgress.h \
453 454
    src/Wima/Snake/SnakeTile.h \
    src/Wima/Snake/SnakeTileLocal.h \
455 456
    src/Wima/Snake/SnakeTiles.h \
    src/Wima/Snake/SnakeTilesLocal.h \
457
    src/Wima/StateMachine.h \
458 459
    src/Wima/WaypointManager/AreaInterface.h \
    src/Wima/WaypointManager/DefaultManager.h \
460
    src/Wima/WaypointManager/GenericWaypointManager.h \
461
    src/Wima/WaypointManager/RTLManager.h \
462
    src/Wima/WaypointManager/Settings.h \
463
    src/Wima/WaypointManager/Slicer.h \
464
    src/Wima/WaypointManager/Utils.h \
465
    src/Wima/WimaBridge.h \
466 467
    src/api/QGCCorePlugin.h \
    src/api/QGCOptions.h \
Gus Grubba's avatar
Gus Grubba committed
468
    src/api/QGCSettings.h \
469
    src/api/QmlComponentInfo.h \
470
    src/comm/MavlinkMessagesTimer.h \
471
    src/GPS/Drivers/src/base_station.h \
472 473 474
    src/Wima/Geometry/WimaArea.h \
    src/Wima/Geometry/WimaServiceArea.h \
    src/Wima/Geometry/WimaTrackerPolyline.h \
475
    src/Wima/WimaController.h \
476
    src/Wima/WimaPlaner.h \
477 478 479 480 481 482
    src/Wima/Geometry/WimaMeasurementArea.h \
    src/Wima/Geometry/WimaCorridor.h \
    src/Wima/Geometry/WimaAreaData.h \
    src/Wima/Geometry/WimaServiceAreaData.h \
    src/Wima/Geometry/WimaCorridorData.h \
    src/Wima/Geometry/WimaMeasurementAreaData.h \
483
    src/Wima/WimaPlanData.h \
484 485 486 487
    src/Wima/Geometry/WimaJoinedArea.h \
    src/Wima/Geometry/WimaJoinedAreaData.h \
    src/Wima/Geometry/PlanimetryCalculus.h \
    src/Wima/Geometry/PolygonCalculus.h \
488
    src/Wima/OptimisationTools.h \
489 490 491
    src/Wima/Geometry/GeoUtilities.h \
    src/Wima/Geometry/TestPolygonCalculus.h \
    src/Wima/Geometry/testplanimetrycalculus.h \
492
    src/Settings/WimaSettings.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
493
    src/QmlControls/QmlObjectVectorModel.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
494
    src/comm/ros_bridge/include/RosBridgeClient.h \
495 496 497 498 499 500 501 502 503 504 505
    src/comm/ros_bridge/include/com_private.h \
    src/comm/ros_bridge/include/message_traits.h \
    src/comm/ros_bridge/include/messages/geographic_msgs/geopoint.h \
    src/comm/ros_bridge/include/messages/geometry_msgs/point32.h \
    src/comm/ros_bridge/include/messages/geometry_msgs/polygon.h \
    src/comm/ros_bridge/include/messages/geometry_msgs/polygon_stamped.h \
    src/comm/ros_bridge/include/messages/jsk_recognition_msgs/polygon_array.h \
    src/comm/ros_bridge/include/messages/nemo_msgs/heartbeat.h \
    src/comm/ros_bridge/include/messages/nemo_msgs/progress.h \
    src/comm/ros_bridge/include/messages/std_msgs/header.h \
    src/comm/ros_bridge/include/server.h \
506
    src/comm/ros_bridge/include/messages/std_msgs/time.h \
507 508
    src/comm/ros_bridge/include/topic_publisher.h \
    src/comm/ros_bridge/include/topic_subscriber.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
509
    src/comm/utilities.h
510
SOURCES += \
511
    src/Wima/CircularSurvey.cc \
512
    src/Wima/RoutingThread.cpp \
513 514
    src/Wima/Snake/clipper/clipper.cpp \
    src/Wima/Snake/snake.cpp \
515
    src/Wima/Geometry/GeoPoint3D.cpp \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
516
    src/Wima/Snake/NemoInterface.cpp \
517
    src/Wima/Snake/QNemoProgress.cc \
518
    src/Wima/Snake/SnakeTile.cpp \
519
    src/Wima/StateMachine.cpp \
520 521
    src/Wima/WaypointManager/AreaInterface.cpp \
    src/Wima/WaypointManager/DefaultManager.cpp \
522
    src/Wima/WaypointManager/GenericWaypointManager.cpp \
523
    src/Wima/WaypointManager/RTLManager.cpp \
524
    src/Wima/WaypointManager/Settings.cpp \
525
    src/Wima/WaypointManager/Slicer.cpp \
526
    src/Wima/WaypointManager/Utils.cpp \
527
    src/Wima/WimaBridge.cc \
528
    src/comm/ros_bridge/include/RosBridgeClient.cpp \
529
    src/comm/ros_bridge/include/com_private.cpp \
530 531 532 533 534 535 536
    src/comm/ros_bridge/include/messages/geographic_msgs/geopoint.cpp \
    src/comm/ros_bridge/include/messages/geometry_msgs/point32.cpp \
    src/comm/ros_bridge/include/messages/geometry_msgs/polygon.cpp \
    src/comm/ros_bridge/include/messages/geometry_msgs/polygon_stamped.cpp \
    src/comm/ros_bridge/include/messages/jsk_recognition_msgs/polygon_array.cpp \
    src/comm/ros_bridge/include/messages/nemo_msgs/heartbeat.cpp \
    src/comm/ros_bridge/include/messages/nemo_msgs/progress.cpp \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
537
    src/comm/ros_bridge/include/messages/std_msgs/header.cpp \
538
    src/comm/ros_bridge/include/messages/std_msgs/time.cpp \
539 540 541
    src/comm/ros_bridge/include/server.cpp \
    src/comm/ros_bridge/include/topic_publisher.cpp \
    src/comm/ros_bridge/include/topic_subscriber.cpp \
542 543
    src/api/QGCCorePlugin.cc \
    src/api/QGCOptions.cc \
Gus Grubba's avatar
Gus Grubba committed
544
    src/api/QGCSettings.cc \
545
    src/api/QmlComponentInfo.cc \
546
    src/comm/MavlinkMessagesTimer.cc \
547 548 549
    src/Wima/Geometry/WimaArea.cc \
    src/Wima/Geometry/WimaServiceArea.cc \
    src/Wima/Geometry/WimaTrackerPolyline.cc \
550
    src/Wima/WimaController.cc \
551
    src/Wima/WimaPlaner.cc \
552 553 554 555 556
    src/Wima/Geometry/WimaMeasurementArea.cc \
    src/Wima/Geometry/WimaCorridor.cc \
    src/Wima/Geometry/WimaAreaData.cc \
    src/Wima/Geometry/WimaServiceAreaData.cc \
    src/Wima/Geometry/WimaCorridorData.cpp \
557
    src/Wima/WimaPlanData.cc \
558 559 560 561
    src/Wima/Geometry/WimaMeasurementAreaData.cc \
    src/Wima/Geometry/WimaJoinedArea.cc \
    src/Wima/Geometry/WimaJoinedAreaData.cc \
    src/Wima/Geometry/PlanimetryCalculus.cc \
562
    src/Wima/OptimisationTools.cc \
563 564 565 566
    src/Wima/Geometry/GeoUtilities.cc \
    src/Wima/Geometry/PolygonCalculus.cc \
    src/Wima/Geometry/TestPolygonCalculus.cpp \
    src/Wima/Geometry/testplanimetrycalculus.cpp \
567
    src/Settings/WimaSettings.cc \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
568
    src/QmlControls/QmlObjectVectorModel.cc \
569
    src/comm/ros_bridge/src/ros_bridge.cpp
Gus Grubba's avatar
Gus Grubba committed
570

571 572 573 574 575 576 577 578 579 580 581 582
#
# Unit Test specific configuration goes here (requires full debug build with all plugins)
#

DebugBuild { PX4FirmwarePlugin { PX4FirmwarePluginFactory  { APMFirmwarePlugin { APMFirmwarePluginFactory { !MobileBuild {
    DEFINES += UNITTEST_BUILD

    INCLUDEPATH += \
        src/qgcunittest

    HEADERS += \
        src/AnalyzeView/LogDownloadTest.h \
583
        src/Audio/AudioOutputTest.h \
584 585 586 587
        src/FactSystem/FactSystemTestBase.h \
        src/FactSystem/FactSystemTestGeneric.h \
        src/FactSystem/FactSystemTestPX4.h \
        src/FactSystem/ParameterManagerTest.h \
588
        src/MissionManager/CameraCalcTest.h \
589
        src/MissionManager/CameraSectionTest.h \
590
        src/MissionManager/CorridorScanComplexItemTest.h \
591
        src/MissionManager/FWLandingPatternTest.h \
592 593
        src/MissionManager/MissionCommandTreeTest.h \
        src/MissionManager/MissionControllerManagerTest.h \
Gus Grubba's avatar
Gus Grubba committed
594
        src/MissionManager/MissionControllerTest.h \
595 596
        src/MissionManager/MissionItemTest.h \
        src/MissionManager/MissionManagerTest.h \
597
        src/MissionManager/MissionSettingsTest.h \
598
        src/MissionManager/PlanMasterControllerTest.h \
599
        src/MissionManager/QGCMapPolygonTest.h \
600
        src/MissionManager/QGCMapPolylineTest.h \
601
        src/MissionManager/SectionTest.h \
602
        src/MissionManager/SimpleMissionItemTest.h \
603
        src/MissionManager/SpeedSectionTest.h \
604
        src/MissionManager/StructureScanComplexItemTest.h \
605
        src/MissionManager/SurveyComplexItemTest.h \
606
        src/MissionManager/TransectStyleComplexItemTest.h \
607
        src/MissionManager/VisualMissionItemTest.h \
608 609 610
        src/qgcunittest/FileDialogTest.h \
        src/qgcunittest/FileManagerTest.h \
        src/qgcunittest/FlightGearTest.h \
Gus Grubba's avatar
Gus Grubba committed
611
        src/qgcunittest/GeoTest.h \
612 613 614 615 616 617 618 619 620
        src/qgcunittest/LinkManagerTest.h \
        src/qgcunittest/MainWindowTest.h \
        src/qgcunittest/MavlinkLogTest.h \
        src/qgcunittest/MessageBoxTest.h \
        src/qgcunittest/MultiSignalSpy.h \
        src/qgcunittest/RadioConfigTest.h \
        src/qgcunittest/TCPLinkTest.h \
        src/qgcunittest/TCPLoopBackServer.h \
        src/qgcunittest/UnitTest.h \
621
        src/Vehicle/SendMavCommandTest.h \
622 623 624

    SOURCES += \
        src/AnalyzeView/LogDownloadTest.cc \
625
        src/Audio/AudioOutputTest.cc \
626 627 628 629
        src/FactSystem/FactSystemTestBase.cc \
        src/FactSystem/FactSystemTestGeneric.cc \
        src/FactSystem/FactSystemTestPX4.cc \
        src/FactSystem/ParameterManagerTest.cc \
630
        src/MissionManager/CameraCalcTest.cc \
631
        src/MissionManager/CameraSectionTest.cc \
632
        src/MissionManager/CorridorScanComplexItemTest.cc \
633
        src/MissionManager/FWLandingPatternTest.cc \
634 635
        src/MissionManager/MissionCommandTreeTest.cc \
        src/MissionManager/MissionControllerManagerTest.cc \
Gus Grubba's avatar
Gus Grubba committed
636
        src/MissionManager/MissionControllerTest.cc \
637 638
        src/MissionManager/MissionItemTest.cc \
        src/MissionManager/MissionManagerTest.cc \
639
        src/MissionManager/MissionSettingsTest.cc \
640
        src/MissionManager/PlanMasterControllerTest.cc \
641
        src/MissionManager/QGCMapPolygonTest.cc \
642
        src/MissionManager/QGCMapPolylineTest.cc \
643
        src/MissionManager/SectionTest.cc \
644
        src/MissionManager/SimpleMissionItemTest.cc \
645
        src/MissionManager/SpeedSectionTest.cc \
646
        src/MissionManager/StructureScanComplexItemTest.cc \
647
        src/MissionManager/SurveyComplexItemTest.cc \
648
        src/MissionManager/TransectStyleComplexItemTest.cc \
649
        src/MissionManager/VisualMissionItemTest.cc \
650 651 652
        src/qgcunittest/FileDialogTest.cc \
        src/qgcunittest/FileManagerTest.cc \
        src/qgcunittest/FlightGearTest.cc \
Gus Grubba's avatar
Gus Grubba committed
653
        src/qgcunittest/GeoTest.cc \
654 655 656 657 658 659 660 661 662 663
        src/qgcunittest/LinkManagerTest.cc \
        src/qgcunittest/MainWindowTest.cc \
        src/qgcunittest/MavlinkLogTest.cc \
        src/qgcunittest/MessageBoxTest.cc \
        src/qgcunittest/MultiSignalSpy.cc \
        src/qgcunittest/RadioConfigTest.cc \
        src/qgcunittest/TCPLinkTest.cc \
        src/qgcunittest/TCPLoopBackServer.cc \
        src/qgcunittest/UnitTest.cc \
        src/qgcunittest/UnitTestList.cc \
664
        src/Vehicle/SendMavCommandTest.cc \
665 666 667 668
} } } } } }

# Main QGC Headers and Source files

669
HEADERS += \
Gus Grubba's avatar
Gus Grubba committed
670
    src/AnalyzeView/ExifParser.h \
671
    src/AnalyzeView/LogDownloadController.h \
672
    src/AnalyzeView/PX4LogParser.h \
673
    src/AnalyzeView/ULogParser.h \
674
    src/Audio/AudioOutput.h \
675 676 677
    src/Camera/QGCCameraControl.h \
    src/Camera/QGCCameraIO.h \
    src/Camera/QGCCameraManager.h \
678
    src/CmdLineOptParser.h \
679
    src/FirmwarePlugin/PX4/px4_custom_mode.h \
680
    src/FlightDisplay/VideoManager.h \
681
    src/FlightMap/Widgets/ValuesWidgetController.h \
Gus Grubba's avatar
Gus Grubba committed
682
    src/FollowMe/FollowMe.h \
683 684
    src/Joystick/Joystick.h \
    src/Joystick/JoystickManager.h \
Don Gagne's avatar
Don Gagne committed
685
    src/JsonHelper.h \
686
    src/KMLFileHelper.h \
687 688
    src/LogCompressor.h \
    src/MG.h \
689
    src/MissionManager/CameraCalc.h \
690
    src/MissionManager/CameraSection.h \
691
    src/MissionManager/CameraSpec.h \
692
    src/MissionManager/ComplexMissionItem.h \
693
    src/MissionManager/CorridorScanComplexItem.h \
694
    src/MissionManager/FixedWingLandingComplexItem.h \
695 696
    src/MissionManager/GeoFenceController.h \
    src/MissionManager/GeoFenceManager.h \
697
    src/MissionManager/KML.h \
698
    src/MissionManager/MissionCommandList.h \
699 700
    src/MissionManager/MissionCommandTree.h \
    src/MissionManager/MissionCommandUIInfo.h \
701
    src/MissionManager/MissionController.h \
702 703
    src/MissionManager/MissionItem.h \
    src/MissionManager/MissionManager.h \
704
    src/MissionManager/MissionSettingsItem.h \
705
    src/MissionManager/PlanElementController.h \
706
    src/MissionManager/PlanManager.h \
707
    src/MissionManager/PlanMasterController.h \
708 709 710
    src/MissionManager/QGCFenceCircle.h \
    src/MissionManager/QGCFencePolygon.h \
    src/MissionManager/QGCMapCircle.h \
711
    src/MissionManager/QGCMapPolygon.h \
712
    src/MissionManager/QGCMapPolyline.h \
713 714 715
    src/MissionManager/RallyPoint.h \
    src/MissionManager/RallyPointController.h \
    src/MissionManager/RallyPointManager.h \
716
    src/MissionManager/SimpleMissionItem.h \
717 718
    src/MissionManager/Section.h \
    src/MissionManager/SpeedSection.h \
719
    src/MissionManager/StructureScanComplexItem.h \
720
    src/MissionManager/SurveyComplexItem.h \
721
    src/MissionManager/TransectStyleComplexItem.h \
722
    src/MissionManager/VisualMissionItem.h \
Gus Grubba's avatar
Gus Grubba committed
723 724
    src/PositionManager/PositionManager.h \
    src/PositionManager/SimulatedPosition.h \
725 726 727 728 729
    src/QGC.h \
    src/QGCApplication.h \
    src/QGCComboBox.h \
    src/QGCConfig.h \
    src/QGCDockWidget.h \
730
    src/QGCFileDownload.h \
731 732
    src/QGCGeo.h \
    src/QGCLoggingCategory.h \
Don Gagne's avatar
Don Gagne committed
733
    src/QGCMapPalette.h \
734
    src/QGCPalette.h \
735
    src/QGCQGeoCoordinate.h \
736 737 738 739
    src/QGCQmlWidgetHolder.h \
    src/QGCQuickWidget.h \
    src/QGCTemporaryFile.h \
    src/QGCToolbox.h \
740
    src/QmlControls/AppMessages.h \
741
    src/QmlControls/CoordinateVector.h \
742
    src/QmlControls/EditPositionDialogController.h \
743
    src/QmlControls/ParameterEditorController.h \
744
    src/QmlControls/QGCFileDialogController.h \
Gus Grubba's avatar
Gus Grubba committed
745
    src/QmlControls/QGCImageProvider.h \
746 747
    src/QmlControls/QGroundControlQmlGlobal.h \
    src/QmlControls/QmlObjectListModel.h \
748
    src/QmlControls/QGCGeoBoundingCube.h \
Gus Grubba's avatar
Gus Grubba committed
749 750 751
    src/QmlControls/RCChannelMonitorController.h \
    src/QmlControls/ScreenToolsController.h \
    src/QtLocationPlugin/QMLControl/QGCMapEngineManager.h \
752 753
    src/Settings/AppSettings.h \
    src/Settings/AutoConnectSettings.h \
754
    src/Settings/BrandImageSettings.h \
755
    src/Settings/FlightMapSettings.h \
756 757
    src/Settings/FlyViewSettings.h \
    src/Settings/PlanViewSettings.h \
Don Gagne's avatar
Don Gagne committed
758
    src/Settings/RTKSettings.h \
759 760 761 762
    src/Settings/SettingsGroup.h \
    src/Settings/SettingsManager.h \
    src/Settings/UnitsSettings.h \
    src/Settings/VideoSettings.h \
763 764
    src/ShapeFileHelper.h \
    src/SHPFileHelper.h \
765
    src/Terrain/TerrainQuery.h \
Andreas Bircher's avatar
Andreas Bircher committed
766
    src/TerrainTile.h \
Gus Grubba's avatar
Gus Grubba committed
767 768 769 770 771 772 773 774 775 776
    src/Vehicle/MAVLinkLogManager.h \
    src/VehicleSetup/JoystickConfigController.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 \
Willian Galvani's avatar
Willian Galvani committed
777
    src/comm/UdpIODevice.h \
778 779 780
    src/uas/UAS.h \
    src/uas/UASInterface.h \
    src/uas/UASMessageHandler.h \
781
    src/UTM.h \
782

783

784 785
AndroidBuild {
HEADERS += \
786
    src/Joystick/JoystickAndroid.h \
787 788
}

789 790 791 792 793 794 795
DebugBuild {
HEADERS += \
    src/comm/MockLink.h \
    src/comm/MockLinkFileServer.h \
    src/comm/MockLinkMissionItemHandler.h \
}

796 797 798
WindowsBuild {
    PRECOMPILED_HEADER += src/stable_headers.h
    HEADERS += src/stable_headers.h
Daniel Agar's avatar
Daniel Agar committed
799
    CONFIG -= silent
800
    OTHER_FILES += .appveyor.yml
801 802
}

dogmaphobic's avatar
dogmaphobic committed
803
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
804 805
    HEADERS += \
    src/comm/BluetoothLink.h \
dogmaphobic's avatar
dogmaphobic committed
806
}
807

Gus Grubba's avatar
Gus Grubba committed
808
!NoSerialBuild {
809
HEADERS += \
810
    src/comm/QGCSerialPortInfo.h \
811 812 813 814 815
    src/comm/SerialLink.h \
}

!MobileBuild {
HEADERS += \
Don Gagne's avatar
Don Gagne committed
816
    src/AnalyzeView/GeoTagController.h \
817
    src/AnalyzeView/MavlinkConsoleController.h \
Gus Grubba's avatar
Gus Grubba committed
818
    src/GPS/Drivers/src/gps_helper.h \
819 820
    src/GPS/Drivers/src/rtcm.h \
    src/GPS/Drivers/src/ashtech.h \
Gus Grubba's avatar
Gus Grubba committed
821
    src/GPS/Drivers/src/ubx.h \
822
    src/GPS/Drivers/src/sbf.h \
Gus Grubba's avatar
Gus Grubba committed
823 824 825 826 827 828 829 830
    src/GPS/GPSManager.h \
    src/GPS/GPSPositionMessage.h \
    src/GPS/GPSProvider.h \
    src/GPS/RTCM/RTCMMavlink.h \
    src/GPS/definitions.h \
    src/GPS/satellite_info.h \
    src/GPS/vehicle_gps_position.h \
    src/Joystick/JoystickSDL.h \
831
    src/QGCQFileDialog.h \
Gus Grubba's avatar
Gus Grubba committed
832
    src/QGCMessageBox.h \
833
    src/RunGuard.h \
Gus Grubba's avatar
Gus Grubba committed
834 835 836
    src/ViewWidgets/CustomCommandWidget.h \
    src/ViewWidgets/CustomCommandWidgetController.h \
    src/ViewWidgets/ViewWidgetController.h \
dogmaphobic's avatar
dogmaphobic committed
837
    src/comm/LogReplayLink.h \
838 839 840 841
    src/comm/QGCFlightGearLink.h \
    src/comm/QGCHilLink.h \
    src/comm/QGCJSBSimLink.h \
    src/comm/QGCXPlaneLink.h \
842
    src/uas/FileManager.h \
843
    src/ui/HILDockWidget.h \
844
    src/ui/MAVLinkDecoder.h \
Gus Grubba's avatar
Gus Grubba committed
845
    src/ui/MainWindow.h \
846 847 848 849 850 851
    src/ui/MultiVehicleDockWidget.h \
    src/ui/QGCHilConfiguration.h \
    src/ui/QGCHilFlightGearConfiguration.h \
    src/ui/QGCHilJSBSimConfiguration.h \
    src/ui/QGCHilXPlaneConfiguration.h \
    src/ui/QGCMAVLinkInspector.h \
Gus Grubba's avatar
Gus Grubba committed
852 853
    src/ui/QGCMAVLinkLogPlayer.h \
    src/ui/QGCMapRCToParamDialog.h \
854 855
    src/ui/QGCUASFileView.h \
    src/ui/QGCUASFileViewMulti.h \
Gus Grubba's avatar
Gus Grubba committed
856 857 858 859 860 861 862 863
    src/ui/linechart/ChartPlot.h \
    src/ui/linechart/IncrementalPlot.h \
    src/ui/linechart/LinechartPlot.h \
    src/ui/linechart/LinechartWidget.h \
    src/ui/linechart/Linecharts.h \
    src/ui/linechart/ScrollZoomer.h \
    src/ui/linechart/Scrollbar.h \
    src/ui/uas/QGCUnconnectedInfoWidget.h \
864 865
}

Don Gagne's avatar
Don Gagne committed
866 867 868 869
iOSBuild {
    OBJECTIVE_SOURCES += \
        src/MobileScreenMgr.mm \
}
870

Don Gagne's avatar
Don Gagne committed
871
AndroidBuild {
Don Gagne's avatar
Don Gagne committed
872
    SOURCES += src/MobileScreenMgr.cc \
873
    src/Joystick/JoystickAndroid.cc \
Don Gagne's avatar
Don Gagne committed
874 875
}

876
SOURCES += \
Gus Grubba's avatar
Gus Grubba committed
877
    src/AnalyzeView/ExifParser.cc \
878
    src/AnalyzeView/LogDownloadController.cc \
879
    src/AnalyzeView/PX4LogParser.cc \
880
    src/AnalyzeView/ULogParser.cc \
881
    src/Audio/AudioOutput.cc \
882 883 884
    src/Camera/QGCCameraControl.cc \
    src/Camera/QGCCameraIO.cc \
    src/Camera/QGCCameraManager.cc \
885
    src/CmdLineOptParser.cc \
886
    src/FlightDisplay/VideoManager.cc \
887
    src/FlightMap/Widgets/ValuesWidgetController.cc \
Gus Grubba's avatar
Gus Grubba committed
888
    src/FollowMe/FollowMe.cc \
889 890
    src/Joystick/Joystick.cc \
    src/Joystick/JoystickManager.cc \
Don Gagne's avatar
Don Gagne committed
891
    src/JsonHelper.cc \
892
    src/KMLFileHelper.cc \
893
    src/LogCompressor.cc \
894
    src/MissionManager/CameraCalc.cc \
895
    src/MissionManager/CameraSection.cc \
896
    src/MissionManager/CameraSpec.cc \
897
    src/MissionManager/ComplexMissionItem.cc \
898
    src/MissionManager/CorridorScanComplexItem.cc \
899
    src/MissionManager/FixedWingLandingComplexItem.cc \
900 901
    src/MissionManager/GeoFenceController.cc \
    src/MissionManager/GeoFenceManager.cc \
902
    src/MissionManager/KML.cc \
903
    src/MissionManager/MissionCommandList.cc \
904 905
    src/MissionManager/MissionCommandTree.cc \
    src/MissionManager/MissionCommandUIInfo.cc \
906
    src/MissionManager/MissionController.cc \
907 908
    src/MissionManager/MissionItem.cc \
    src/MissionManager/MissionManager.cc \
909
    src/MissionManager/MissionSettingsItem.cc \
910
    src/MissionManager/PlanElementController.cc \
911
    src/MissionManager/PlanManager.cc \
912
    src/MissionManager/PlanMasterController.cc \
913 914 915
    src/MissionManager/QGCFenceCircle.cc \
    src/MissionManager/QGCFencePolygon.cc \
    src/MissionManager/QGCMapCircle.cc \
916
    src/MissionManager/QGCMapPolygon.cc \
917
    src/MissionManager/QGCMapPolyline.cc \
918 919 920
    src/MissionManager/RallyPoint.cc \
    src/MissionManager/RallyPointController.cc \
    src/MissionManager/RallyPointManager.cc \
921
    src/MissionManager/SimpleMissionItem.cc \
922
    src/MissionManager/SpeedSection.cc \
923
    src/MissionManager/StructureScanComplexItem.cc \
924
    src/MissionManager/SurveyComplexItem.cc \
925
    src/MissionManager/TransectStyleComplexItem.cc \
926
    src/MissionManager/VisualMissionItem.cc \
Gus Grubba's avatar
Gus Grubba committed
927 928
    src/PositionManager/PositionManager.cpp \
    src/PositionManager/SimulatedPosition.cc \
929 930 931 932
    src/QGC.cc \
    src/QGCApplication.cc \
    src/QGCComboBox.cc \
    src/QGCDockWidget.cc \
933
    src/QGCFileDownload.cc \
Gus Grubba's avatar
Gus Grubba committed
934
    src/QGCGeo.cc \
935
    src/QGCLoggingCategory.cc \
Don Gagne's avatar
Don Gagne committed
936
    src/QGCMapPalette.cc \
937
    src/QGCPalette.cc \
938
    src/QGCQGeoCoordinate.cc \
939
    src/QGCQmlWidgetHolder.cpp \
Gus Grubba's avatar
Gus Grubba committed
940
    src/QGCQuickWidget.cc \
941 942
    src/QGCTemporaryFile.cc \
    src/QGCToolbox.cc \
943
    src/QmlControls/AppMessages.cc \
944
    src/QmlControls/CoordinateVector.cc \
945
    src/QmlControls/EditPositionDialogController.cc \
946
    src/QmlControls/ParameterEditorController.cc \
947
    src/QmlControls/QGCFileDialogController.cc \
Gus Grubba's avatar
Gus Grubba committed
948
    src/QmlControls/QGCImageProvider.cc \
949 950
    src/QmlControls/QGroundControlQmlGlobal.cc \
    src/QmlControls/QmlObjectListModel.cc \
951
    src/QmlControls/QGCGeoBoundingCube.cc \
Gus Grubba's avatar
Gus Grubba committed
952 953 954
    src/QmlControls/RCChannelMonitorController.cc \
    src/QmlControls/ScreenToolsController.cc \
    src/QtLocationPlugin/QMLControl/QGCMapEngineManager.cc \
955 956
    src/Settings/AppSettings.cc \
    src/Settings/AutoConnectSettings.cc \
957
    src/Settings/BrandImageSettings.cc \
958
    src/Settings/FlightMapSettings.cc \
959 960
    src/Settings/FlyViewSettings.cc \
    src/Settings/PlanViewSettings.cc \
Don Gagne's avatar
Don Gagne committed
961
    src/Settings/RTKSettings.cc \
962 963 964 965
    src/Settings/SettingsGroup.cc \
    src/Settings/SettingsManager.cc \
    src/Settings/UnitsSettings.cc \
    src/Settings/VideoSettings.cc \
966 967
    src/ShapeFileHelper.cc \
    src/SHPFileHelper.cc \
968
    src/Terrain/TerrainQuery.cc \
Andreas Bircher's avatar
Andreas Bircher committed
969
    src/TerrainTile.cc\
Gus Grubba's avatar
Gus Grubba committed
970 971 972
    src/Vehicle/MAVLinkLogManager.cc \
    src/VehicleSetup/JoystickConfigController.cc \
    src/comm/LinkConfiguration.cc \
973
    src/comm/LinkInterface.cc \
Gus Grubba's avatar
Gus Grubba committed
974 975 976 977 978
    src/comm/LinkManager.cc \
    src/comm/MAVLinkProtocol.cc \
    src/comm/QGCMAVLink.cc \
    src/comm/TCPLink.cc \
    src/comm/UDPLink.cc \
Willian Galvani's avatar
Willian Galvani committed
979
    src/comm/UdpIODevice.cc \
Gus Grubba's avatar
Gus Grubba committed
980
    src/main.cc \
981 982
    src/uas/UAS.cc \
    src/uas/UASMessageHandler.cc \
983
    src/UTM.cpp \
984

985 986 987 988 989 990 991
DebugBuild {
SOURCES += \
    src/comm/MockLink.cc \
    src/comm/MockLinkFileServer.cc \
    src/comm/MockLinkMissionItemHandler.cc \
}

Gus Grubba's avatar
Gus Grubba committed
992
!NoSerialBuild {
993
SOURCES += \
994
    src/comm/QGCSerialPortInfo.cc \
995 996 997
    src/comm/SerialLink.cc \
}

dogmaphobic's avatar
dogmaphobic committed
998
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
999 1000 1001 1002
    SOURCES += \
    src/comm/BluetoothLink.cc \
}

1003 1004
!MobileBuild {
SOURCES += \
Don Gagne's avatar
Don Gagne committed
1005
    src/AnalyzeView/GeoTagController.cc \
1006
    src/AnalyzeView/MavlinkConsoleController.cc \
Gus Grubba's avatar
Gus Grubba committed
1007
    src/GPS/Drivers/src/gps_helper.cpp \
1008 1009
    src/GPS/Drivers/src/rtcm.cpp \
    src/GPS/Drivers/src/ashtech.cpp \
Gus Grubba's avatar
Gus Grubba committed
1010
    src/GPS/Drivers/src/ubx.cpp \
1011
    src/GPS/Drivers/src/sbf.cpp \
Gus Grubba's avatar
Gus Grubba committed
1012 1013 1014 1015
    src/GPS/GPSManager.cc \
    src/GPS/GPSProvider.cc \
    src/GPS/RTCM/RTCMMavlink.cc \
    src/Joystick/JoystickSDL.cc \
1016
    src/QGCQFileDialog.cc \
1017
    src/RunGuard.cc \
Gus Grubba's avatar
Gus Grubba committed
1018 1019 1020 1021
    src/ViewWidgets/CustomCommandWidget.cc \
    src/ViewWidgets/CustomCommandWidgetController.cc \
    src/ViewWidgets/ViewWidgetController.cc \
    src/comm/LogReplayLink.cc \
1022 1023 1024
    src/comm/QGCFlightGearLink.cc \
    src/comm/QGCJSBSimLink.cc \
    src/comm/QGCXPlaneLink.cc \
Gus Grubba's avatar
Gus Grubba committed
1025
    src/uas/FileManager.cc \
1026
    src/ui/HILDockWidget.cc \
Gus Grubba's avatar
Gus Grubba committed
1027
    src/ui/MAVLinkDecoder.cc \
Don Gagne's avatar
Don Gagne committed
1028
    src/ui/MainWindow.cc \
1029 1030 1031 1032 1033 1034
    src/ui/MultiVehicleDockWidget.cc \
    src/ui/QGCHilConfiguration.cc \
    src/ui/QGCHilFlightGearConfiguration.cc \
    src/ui/QGCHilJSBSimConfiguration.cc \
    src/ui/QGCHilXPlaneConfiguration.cc \
    src/ui/QGCMAVLinkInspector.cc \
Gus Grubba's avatar
Gus Grubba committed
1035 1036
    src/ui/QGCMAVLinkLogPlayer.cc \
    src/ui/QGCMapRCToParamDialog.cpp \
1037 1038
    src/ui/QGCUASFileView.cc \
    src/ui/QGCUASFileViewMulti.cc \
Gus Grubba's avatar
Gus Grubba committed
1039 1040 1041 1042 1043 1044 1045 1046
    src/ui/linechart/ChartPlot.cc \
    src/ui/linechart/IncrementalPlot.cc \
    src/ui/linechart/LinechartPlot.cc \
    src/ui/linechart/LinechartWidget.cc \
    src/ui/linechart/Linecharts.cc \
    src/ui/linechart/ScrollZoomer.cc \
    src/ui/linechart/Scrollbar.cc \
    src/ui/uas/QGCUnconnectedInfoWidget.cc \
1047 1048
}

1049
# Palette test widget in debug builds
1050
DebugBuild {
1051 1052 1053
    HEADERS += src/QmlControls/QmlTestWidget.h
    SOURCES += src/QmlControls/QmlTestWidget.cc
}
1054 1055 1056 1057 1058 1059

#
# Firmware Plugin Support
#

INCLUDEPATH += \
Don Gagne's avatar
Don Gagne committed
1060
    src/AutoPilotPlugins/Common \
1061 1062 1063 1064 1065 1066
    src/FirmwarePlugin \
    src/Vehicle \
    src/VehicleSetup \

HEADERS+= \
    src/AutoPilotPlugins/AutoPilotPlugin.h \
Gus Grubba's avatar
Gus Grubba committed
1067 1068
    src/AutoPilotPlugins/Common/ESP8266Component.h \
    src/AutoPilotPlugins/Common/ESP8266ComponentController.h \
Don Gagne's avatar
Don Gagne committed
1069
    src/AutoPilotPlugins/Common/MotorComponent.h \
Don Gagne's avatar
Don Gagne committed
1070
    src/AutoPilotPlugins/Common/RadioComponentController.h \
1071 1072
    src/AutoPilotPlugins/Common/SyslinkComponent.h \
    src/AutoPilotPlugins/Common/SyslinkComponentController.h \
1073
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.h \
1074
    src/FirmwarePlugin/CameraMetaData.h \
1075
    src/FirmwarePlugin/FirmwarePlugin.h \
Gus Grubba's avatar
Gus Grubba committed
1076
    src/FirmwarePlugin/FirmwarePluginManager.h \
1077
    src/Vehicle/ADSBVehicle.h \
1078
    src/Vehicle/MultiVehicleManager.h \
1079
    src/Vehicle/GPSRTKFactGroup.h \
1080 1081 1082
    src/Vehicle/Vehicle.h \
    src/VehicleSetup/VehicleComponent.h \

1083
!MobileBuild { !NoSerialBuild {
Gus Grubba's avatar
Gus Grubba committed
1084 1085 1086 1087 1088
    HEADERS += \
        src/VehicleSetup/Bootloader.h \
        src/VehicleSetup/FirmwareImage.h \
        src/VehicleSetup/FirmwareUpgradeController.h \
        src/VehicleSetup/PX4FirmwareUpgradeThread.h \
1089
}}
1090 1091 1092

SOURCES += \
    src/AutoPilotPlugins/AutoPilotPlugin.cc \
Gus Grubba's avatar
Gus Grubba committed
1093 1094
    src/AutoPilotPlugins/Common/ESP8266Component.cc \
    src/AutoPilotPlugins/Common/ESP8266ComponentController.cc \
Don Gagne's avatar
Don Gagne committed
1095
    src/AutoPilotPlugins/Common/MotorComponent.cc \
Don Gagne's avatar
Don Gagne committed
1096
    src/AutoPilotPlugins/Common/RadioComponentController.cc \
1097 1098
    src/AutoPilotPlugins/Common/SyslinkComponent.cc \
    src/AutoPilotPlugins/Common/SyslinkComponentController.cc \
1099
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.cc \
1100
    src/FirmwarePlugin/CameraMetaData.cc \
1101
    src/FirmwarePlugin/FirmwarePlugin.cc \
1102
    src/FirmwarePlugin/FirmwarePluginManager.cc \
1103
    src/Vehicle/ADSBVehicle.cc \
1104
    src/Vehicle/MultiVehicleManager.cc \
1105
    src/Vehicle/GPSRTKFactGroup.cc \
1106 1107 1108
    src/Vehicle/Vehicle.cc \
    src/VehicleSetup/VehicleComponent.cc \

1109
!MobileBuild { !NoSerialBuild {
1110
    SOURCES += \
Gus Grubba's avatar
Gus Grubba committed
1111 1112 1113 1114
        src/VehicleSetup/Bootloader.cc \
        src/VehicleSetup/FirmwareImage.cc \
        src/VehicleSetup/FirmwareUpgradeController.cc \
        src/VehicleSetup/PX4FirmwareUpgradeThread.cc \
1115
}}
1116

1117
# ArduPilot Specific
1118

1119 1120
ArdupilotEnabled {
    HEADERS += \
1121 1122 1123 1124 1125 1126
        src/Settings/APMMavlinkStreamRateSettings.h \

    SOURCES += \
        src/Settings/APMMavlinkStreamRateSettings.cc \
}

1127 1128
# ArduPilot FirmwarePlugin

1129
APMFirmwarePlugin {
1130
    RESOURCES *= src/FirmwarePlugin/APM/APMResources.qrc
Gus Grubba's avatar
Gus Grubba committed
1131

1132 1133 1134 1135 1136 1137 1138
    INCLUDEPATH += \
        src/AutoPilotPlugins/APM \
        src/FirmwarePlugin/APM \

    HEADERS += \
        src/AutoPilotPlugins/APM/APMAirframeComponent.h \
        src/AutoPilotPlugins/APM/APMAirframeComponentAirframes.h \
Gus Grubba's avatar
Gus Grubba committed
1139
        src/AutoPilotPlugins/APM/APMAirframeComponentController.h \
1140
        src/AutoPilotPlugins/APM/APMAirframeLoader.h \
Gus Grubba's avatar
Gus Grubba committed
1141
        src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h \
1142 1143 1144 1145
        src/AutoPilotPlugins/APM/APMCameraComponent.h \
        src/AutoPilotPlugins/APM/APMCompassCal.h \
        src/AutoPilotPlugins/APM/APMFlightModesComponent.h \
        src/AutoPilotPlugins/APM/APMFlightModesComponentController.h \
DonLakeFlyer's avatar
DonLakeFlyer committed
1146
        src/AutoPilotPlugins/APM/APMHeliComponent.h \
Gus Grubba's avatar
Gus Grubba committed
1147
        src/AutoPilotPlugins/APM/APMLightsComponent.h \
1148
        src/AutoPilotPlugins/APM/APMSubFrameComponent.h \
1149
        src/AutoPilotPlugins/APM/APMMotorComponent.h \
1150 1151 1152 1153 1154 1155
        src/AutoPilotPlugins/APM/APMPowerComponent.h \
        src/AutoPilotPlugins/APM/APMRadioComponent.h \
        src/AutoPilotPlugins/APM/APMSafetyComponent.h \
        src/AutoPilotPlugins/APM/APMSensorsComponent.h \
        src/AutoPilotPlugins/APM/APMSensorsComponentController.h \
        src/AutoPilotPlugins/APM/APMTuningComponent.h \
Gus Grubba's avatar
Gus Grubba committed
1156 1157 1158 1159 1160 1161
        src/FirmwarePlugin/APM/APMFirmwarePlugin.h \
        src/FirmwarePlugin/APM/APMParameterMetaData.h \
        src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.h \
        src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h \
        src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h \
        src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.h \
1162 1163 1164 1165 1166 1167

    SOURCES += \
        src/AutoPilotPlugins/APM/APMAirframeComponent.cc \
        src/AutoPilotPlugins/APM/APMAirframeComponentAirframes.cc \
        src/AutoPilotPlugins/APM/APMAirframeComponentController.cc \
        src/AutoPilotPlugins/APM/APMAirframeLoader.cc \
Gus Grubba's avatar
Gus Grubba committed
1168
        src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc \
1169 1170 1171 1172
        src/AutoPilotPlugins/APM/APMCameraComponent.cc \
        src/AutoPilotPlugins/APM/APMCompassCal.cc \
        src/AutoPilotPlugins/APM/APMFlightModesComponent.cc \
        src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc \
DonLakeFlyer's avatar
DonLakeFlyer committed
1173
        src/AutoPilotPlugins/APM/APMHeliComponent.cc \
Gus Grubba's avatar
Gus Grubba committed
1174
        src/AutoPilotPlugins/APM/APMLightsComponent.cc \
1175
        src/AutoPilotPlugins/APM/APMSubFrameComponent.cc \
1176
        src/AutoPilotPlugins/APM/APMMotorComponent.cc \
1177 1178 1179 1180 1181 1182
        src/AutoPilotPlugins/APM/APMPowerComponent.cc \
        src/AutoPilotPlugins/APM/APMRadioComponent.cc \
        src/AutoPilotPlugins/APM/APMSafetyComponent.cc \
        src/AutoPilotPlugins/APM/APMSensorsComponent.cc \
        src/AutoPilotPlugins/APM/APMSensorsComponentController.cc \
        src/AutoPilotPlugins/APM/APMTuningComponent.cc \
Gus Grubba's avatar
Gus Grubba committed
1183 1184 1185 1186 1187 1188
        src/FirmwarePlugin/APM/APMFirmwarePlugin.cc \
        src/FirmwarePlugin/APM/APMParameterMetaData.cc \
        src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc \
        src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc \
        src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc \
        src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc \
1189 1190 1191
}

APMFirmwarePluginFactory {
Gus Grubba's avatar
Gus Grubba committed
1192 1193
    HEADERS   += src/FirmwarePlugin/APM/APMFirmwarePluginFactory.h
    SOURCES   += src/FirmwarePlugin/APM/APMFirmwarePluginFactory.cc
1194 1195 1196 1197 1198
}

# PX4 FirmwarePlugin

PX4FirmwarePlugin {
1199
    RESOURCES *= src/FirmwarePlugin/PX4/PX4Resources.qrc
Gus Grubba's avatar
Gus Grubba committed
1200

1201 1202 1203 1204 1205 1206 1207 1208
    INCLUDEPATH += \
        src/AutoPilotPlugins/PX4 \
        src/FirmwarePlugin/PX4 \

    HEADERS+= \
        src/AutoPilotPlugins/PX4/AirframeComponent.h \
        src/AutoPilotPlugins/PX4/AirframeComponentAirframes.h \
        src/AutoPilotPlugins/PX4/AirframeComponentController.h \
Gus Grubba's avatar
Gus Grubba committed
1209
        src/AutoPilotPlugins/PX4/CameraComponent.h \
1210 1211
        src/AutoPilotPlugins/PX4/FlightModesComponent.h \
        src/AutoPilotPlugins/PX4/PX4AdvancedFlightModesController.h \
Gus Grubba's avatar
Gus Grubba committed
1212 1213 1214
        src/AutoPilotPlugins/PX4/PX4AirframeLoader.h \
        src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.h \
        src/AutoPilotPlugins/PX4/PX4RadioComponent.h \
1215
        src/AutoPilotPlugins/PX4/PX4SimpleFlightModesController.h \
Gus Grubba's avatar
Gus Grubba committed
1216
        src/AutoPilotPlugins/PX4/PX4TuningComponent.h \
1217 1218 1219 1220 1221
        src/AutoPilotPlugins/PX4/PowerComponent.h \
        src/AutoPilotPlugins/PX4/PowerComponentController.h \
        src/AutoPilotPlugins/PX4/SafetyComponent.h \
        src/AutoPilotPlugins/PX4/SensorsComponent.h \
        src/AutoPilotPlugins/PX4/SensorsComponentController.h \
Gus Grubba's avatar
Gus Grubba committed
1222 1223
        src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h \
        src/FirmwarePlugin/PX4/PX4ParameterMetaData.h \
1224 1225 1226 1227 1228

    SOURCES += \
        src/AutoPilotPlugins/PX4/AirframeComponent.cc \
        src/AutoPilotPlugins/PX4/AirframeComponentAirframes.cc \
        src/AutoPilotPlugins/PX4/AirframeComponentController.cc \
Gus Grubba's avatar
Gus Grubba committed
1229
        src/AutoPilotPlugins/PX4/CameraComponent.cc \
1230 1231 1232
        src/AutoPilotPlugins/PX4/FlightModesComponent.cc \
        src/AutoPilotPlugins/PX4/PX4AdvancedFlightModesController.cc \
        src/AutoPilotPlugins/PX4/PX4AirframeLoader.cc \
Gus Grubba's avatar
Gus Grubba committed
1233 1234
        src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc \
        src/AutoPilotPlugins/PX4/PX4RadioComponent.cc \
1235
        src/AutoPilotPlugins/PX4/PX4SimpleFlightModesController.cc \
Gus Grubba's avatar
Gus Grubba committed
1236
        src/AutoPilotPlugins/PX4/PX4TuningComponent.cc \
1237 1238 1239 1240 1241
        src/AutoPilotPlugins/PX4/PowerComponent.cc \
        src/AutoPilotPlugins/PX4/PowerComponentController.cc \
        src/AutoPilotPlugins/PX4/SafetyComponent.cc \
        src/AutoPilotPlugins/PX4/SensorsComponent.cc \
        src/AutoPilotPlugins/PX4/SensorsComponentController.cc \
Gus Grubba's avatar
Gus Grubba committed
1242 1243
        src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc \
        src/FirmwarePlugin/PX4/PX4ParameterMetaData.cc \
1244 1245 1246
}

PX4FirmwarePluginFactory {
Gus Grubba's avatar
Gus Grubba committed
1247 1248
    HEADERS   += src/FirmwarePlugin/PX4/PX4FirmwarePluginFactory.h
    SOURCES   += src/FirmwarePlugin/PX4/PX4FirmwarePluginFactory.cc
1249 1250 1251 1252 1253 1254 1255 1256 1257 1258
}

# Fact System code

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

HEADERS += \
    src/FactSystem/Fact.h \
1259
    src/FactSystem/FactControls/FactPanelController.h \
Gus Grubba's avatar
Gus Grubba committed
1260
    src/FactSystem/FactGroup.h \
1261 1262
    src/FactSystem/FactMetaData.h \
    src/FactSystem/FactSystem.h \
1263
    src/FactSystem/FactValueSliderListModel.h \
1264
    src/FactSystem/ParameterManager.h \
1265
    src/FactSystem/SettingsFact.h \
1266 1267 1268

SOURCES += \
    src/FactSystem/Fact.cc \
1269
    src/FactSystem/FactControls/FactPanelController.cc \
Gus Grubba's avatar
Gus Grubba committed
1270
    src/FactSystem/FactGroup.cc \
1271 1272
    src/FactSystem/FactMetaData.cc \
    src/FactSystem/FactSystem.cc \
1273
    src/FactSystem/FactValueSliderListModel.cc \
1274
    src/FactSystem/ParameterManager.cc \
1275
    src/FactSystem/SettingsFact.cc \
1276

1277 1278 1279 1280 1281 1282 1283
#-------------------------------------------------------------------------------------
# Taisync
contains (DEFINES, QGC_GST_TAISYNC_ENABLED) {
    INCLUDEPATH += \
        src/Taisync

    HEADERS += \
1284
        src/Taisync/TaisyncManager.h \
1285 1286 1287 1288
        src/Taisync/TaisyncHandler.h \
        src/Taisync/TaisyncSettings.h \

    SOURCES += \
1289
        src/Taisync/TaisyncManager.cc \
1290 1291
        src/Taisync/TaisyncHandler.cc \
        src/Taisync/TaisyncSettings.cc \
1292 1293 1294 1295 1296 1297 1298 1299 1300 1301

    iOSBuild | AndroidBuild {
        HEADERS += \
            src/Taisync/TaisyncTelemetry.h \
            src/Taisync/TaisyncVideoReceiver.h \

        SOURCES += \
            src/Taisync/TaisyncTelemetry.cc \
            src/Taisync/TaisyncVideoReceiver.cc \
    }
1302 1303
}

1304 1305 1306 1307
#-------------------------------------------------------------------------------------
# AirMap

contains (DEFINES, QGC_AIRMAP_ENABLED) {
1308 1309 1310 1311 1312 1313

    #-- These should be always enabled but not yet
    INCLUDEPATH += \
        src/AirspaceManagement

    HEADERS += \
Gus Grubba's avatar
Gus Grubba committed
1314
        src/AirspaceManagement/AirspaceAdvisoryProvider.h \
Gus Grubba's avatar
Gus Grubba committed
1315
        src/AirspaceManagement/AirspaceFlightPlanProvider.h \
Gus Grubba's avatar
Gus Grubba committed
1316
        src/AirspaceManagement/AirspaceManager.h \
1317 1318 1319 1320
        src/AirspaceManagement/AirspaceRestriction.h \
        src/AirspaceManagement/AirspaceRestrictionProvider.h \
        src/AirspaceManagement/AirspaceRulesetsProvider.h \
        src/AirspaceManagement/AirspaceVehicleManager.h \
1321
        src/AirspaceManagement/AirspaceWeatherInfoProvider.h \
1322 1323

    SOURCES += \
Gus Grubba's avatar
Gus Grubba committed
1324
        src/AirspaceManagement/AirspaceAdvisoryProvider.cc \
Gus Grubba's avatar
Gus Grubba committed
1325
        src/AirspaceManagement/AirspaceFlightPlanProvider.cc \
Gus Grubba's avatar
Gus Grubba committed
1326
        src/AirspaceManagement/AirspaceManager.cc \
1327 1328 1329 1330
        src/AirspaceManagement/AirspaceRestriction.cc \
        src/AirspaceManagement/AirspaceRestrictionProvider.cc \
        src/AirspaceManagement/AirspaceRulesetsProvider.cc \
        src/AirspaceManagement/AirspaceVehicleManager.cc \
1331
        src/AirspaceManagement/AirspaceWeatherInfoProvider.cc \
1332 1333

    #-- This is the AirMap implementation of the above
1334 1335 1336 1337 1338 1339 1340
    RESOURCES += \
        src/Airmap/airmap.qrc

    INCLUDEPATH += \
        src/Airmap

    HEADERS += \
Gus Grubba's avatar
Gus Grubba committed
1341
        src/Airmap/AirMapAdvisoryManager.h \
1342
        src/Airmap/AirMapFlightManager.h \
Gus Grubba's avatar
Gus Grubba committed
1343
        src/Airmap/AirMapFlightPlanManager.h \
1344
        src/Airmap/AirMapManager.h \
1345 1346
        src/Airmap/AirMapRestrictionManager.h \
        src/Airmap/AirMapRulesetsManager.h \
1347
        src/Airmap/AirMapSettings.h \
1348 1349 1350 1351
        src/Airmap/AirMapSharedState.h \
        src/Airmap/AirMapTelemetry.h \
        src/Airmap/AirMapTrafficMonitor.h \
        src/Airmap/AirMapVehicleManager.h \
Gus Grubba's avatar
Gus Grubba committed
1352
        src/Airmap/AirMapWeatherInfoManager.h \
Gus Grubba's avatar
Gus Grubba committed
1353
        src/Airmap/LifetimeChecker.h \
1354 1355

    SOURCES += \
Gus Grubba's avatar
Gus Grubba committed
1356
        src/Airmap/AirMapAdvisoryManager.cc \
1357
        src/Airmap/AirMapFlightManager.cc \
Gus Grubba's avatar
Gus Grubba committed
1358
        src/Airmap/AirMapFlightPlanManager.cc \
1359
        src/Airmap/AirMapManager.cc \
1360 1361
        src/Airmap/AirMapRestrictionManager.cc \
        src/Airmap/AirMapRulesetsManager.cc \
1362
        src/Airmap/AirMapSettings.cc \
1363 1364 1365 1366
        src/Airmap/AirMapSharedState.cc \
        src/Airmap/AirMapTelemetry.cc \
        src/Airmap/AirMapTrafficMonitor.cc \
        src/Airmap/AirMapVehicleManager.cc \
Gus Grubba's avatar
Gus Grubba committed
1367
        src/Airmap/AirMapWeatherInfoManager.cc \
1368

Gus Grubba's avatar
Gus Grubba committed
1369 1370 1371 1372 1373 1374 1375
    #-- Do we have an API key?
    exists(src/Airmap/Airmap_api_key.h) {
        HEADERS += \
            src/Airmap/Airmap_api_key.h
        DEFINES += QGC_AIRMAP_KEY_AVAILABLE
    }

1376 1377
    include(src/Airmap/QJsonWebToken/src/qjsonwebtoken.pri)

1378
} else {
1379 1380 1381
    #-- Dummies
    INCLUDEPATH += \
        src/Airmap/dummy
1382 1383
    RESOURCES += \
        src/Airmap/dummy/airmap_dummy.qrc
1384 1385 1386 1387
    HEADERS += \
        src/Airmap/dummy/AirspaceManager.h
    SOURCES += \
        src/Airmap/dummy/AirspaceManager.cc
1388 1389
}

1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408
#-------------------------------------------------------------------------------------
# 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 \

1409
contains (CONFIG, DISABLE_VIDEOSTREAMING) {
1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421
    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 {
Gus Grubba's avatar
Gus Grubba committed
1422 1423 1424 1425 1426
    contains (CONFIG, DISABLE_BUILTIN_ANDROID) {
        message("Skipping builtin support for Android")
    } else {
        include(android.pri)
    }
1427 1428 1429 1430 1431 1432 1433
}

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

1434 1435 1436 1437 1438
contains (CONFIG, QGC_DISABLE_BUILD_SETUP) {
    message("Disable standard build setup")
} else {
    include(QGCSetup.pri)
}
1439 1440 1441 1442 1443

#
# Installer targets
#

1444 1445 1446 1447 1448
contains (CONFIG, QGC_DISABLE_INSTALLER_SETUP) {
    message("Disable standard installer setup")
} else {
    include(QGCInstaller.pri)
}
1449 1450

DISTFILES += \
1451
    src/WimaView/WimaMeasurementAreaEditor.qml \
1452
    src/Settings/Wima.SettingsGroup.json