qgroundcontrol.pro 53.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
################################################################################
#
# (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
#
# QGroundControl is licensed according to the terms in the file
# COPYING.md in the root of the source code directory.
#
################################################################################

QMAKE_PROJECT_DEPTH = 0 # undocumented qmake flag to force absolute paths in makefiles
11

12 13 14
# These are disabled until proven correct
DEFINES += QGC_GST_TAISYNC_DISABLED
DEFINES += QGC_GST_MICROHARD_DISABLED
15

dogmaphobic's avatar
dogmaphobic committed
16
exists($${OUT_PWD}/qgroundcontrol.pro) {
17
    error("You must use shadow build (e.g. mkdir build; cd build; qmake ../qgroundcontrol.pro).")
dogmaphobic's avatar
dogmaphobic committed
18
}
19 20 21

message(Qt version $$[QT_VERSION])

22 23
!equals(QT_MAJOR_VERSION, 5) | !greaterThan(QT_MINOR_VERSION, 10) {
    error("Unsupported Qt version, 5.11+ is required")
24
}
25

26 27
include(QGCCommon.pri)

Daniel Agar's avatar
Daniel Agar committed
28
TARGET   = QGroundControl
29
TEMPLATE = app
30
QGCROOT  = $$PWD
31 32 33

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

49 50
QML_IMPORT_PATH += $$PWD/src/QmlControls

51 52 53 54 55 56
#
# OS Specific settings
#

MacBuild {
    QMAKE_INFO_PLIST    = Custom-Info.plist
57
    ICON                = $${SOURCE_DIR}/resources/icons/macx.icns
58
    OTHER_FILES        += Custom-Info.plist
59
    LIBS               += -framework ApplicationServices
60 61 62 63 64 65 66 67
}

LinuxBuild {
    CONFIG  += qesp_linux_udev
}

WindowsBuild {
    RC_ICONS = resources/icons/qgroundcontrol.ico
68
    CONFIG += resources_big
69 70
}

71 72 73 74
#
# Branding
#

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

81
WindowsBuild {
82 83
    QGC_INSTALLER_ICON          = "$$SOURCE_DIR\\WindowsQGC.ico"
    QGC_INSTALLER_HEADER_BITMAP = "$$SOURCE_DIR\\installheader.bmp"
84
}
85

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

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

120 121 122 123 124 125 126 127
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}"
}

128 129 130 131 132 133 134 135 136 137 138 139
#-------------------------------------------------------------------------------------
# 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
140
            APP_STORE = $$system(cd $${SOURCE_DIR} && $${SOURCE_DIR}/tools/update_ios_version.sh $${SOURCE_DIR}/ios/iOSForAppStore-Info-Source.plist $${SOURCE_DIR}/ios/iOSForAppStore-Info.plist)
141 142 143 144 145
            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
146 147
            QMAKE_INFO_PLIST  = $${SOURCE_DIR}/ios/iOSForAppStore-Info.plist
            OTHER_FILES      += $${SOURCE_DIR}/ios/iOSForAppStore-Info.plist
148
        } else {
149 150
            QMAKE_INFO_PLIST  = $${SOURCE_DIR}/ios/iOS-Info.plist
            OTHER_FILES      += $${SOURCE_DIR}/ios/iOS-Info.plist
151 152 153 154 155 156 157
        }
        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
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 192
#
# 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
193 194 195 196 197 198 199 200 201 202 203 204
# 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
}

205 206 207 208 209 210 211 212 213 214 215 216
# QTNFC
contains (DEFINES, QGC_DISABLE_QTNFC) {
    message("Skipping support for QTNFC (manual override from command line)")
    DEFINES -= QGC_ENABLE_QTNFC
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, QGC_DISABLE_QTNFC) {
    message("Skipping support for QTNFC (manual override from user_config.pri)")
    DEFINES -= QGC_ENABLE_QTNFC
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, QGC_ENABLE_QTNFC) {
    message("Including support for QTNFC (manual override from user_config.pri)")
    DEFINES += QGC_ENABLE_QTNFC
}

217 218 219
# USB Camera and UVC Video Sources
contains (DEFINES, QGC_DISABLE_UVC) {
    message("Skipping support for UVC devices (manual override from command line)")
220
    DEFINES += QGC_DISABLE_UVC
221 222
} 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)")
223
    DEFINES += QGC_DISABLE_UVC
dogmaphobic's avatar
dogmaphobic committed
224 225 226 227 228
} 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
    }
229 230
}

231 232 233 234 235 236 237
LinuxBuild {
    CONFIG += link_pkgconfig
}

# Qt configuration

CONFIG += qt \
238
    thread \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
239
    c++14
240 241 242 243 244 245

DebugBuild {
    CONFIG -= qtquickcompiler
} else {
    CONFIG += qtquickcompiler
}
246 247 248 249 250 251

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 {
252
    CONFIG += silent
253
}
254 255 256 257 258

QT += \
    concurrent \
    gui \
    location \
259
    network \
260 261 262 263
    opengl \
    positioning \
    qml \
    quick \
264
    quickcontrols2 \
265 266 267 268
    quickwidgets \
    sql \
    svg \
    widgets \
269
    xml \
270 271
    texttospeech \
    core-private
272 273 274 275 276 277

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

279 280 281 282 283 284
AndroidBuild || iOSBuild {
    # Android and iOS don't unclude these
} else {
    QT += \
        printsupport \
        serialport \
285 286
}

dogmaphobic's avatar
dogmaphobic committed
287
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
288 289 290 291
QT += \
    bluetooth \
}

292 293 294 295 296
contains(DEFINES, QGC_ENABLE_QTNFC) {
QT += \
    nfc \
}

297 298
#  testlib is needed even in release flavor for QSignalSpy support
QT += testlib
299 300 301 302
ReleaseBuild {
    # We don't need the testlib console in release mode
    QT.testlib.CONFIG -= console
}
303

304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
#
# Build-specific settings
#

DebugBuild {
!iOSBuild {
    CONFIG += console
}
}

#
# Our QtLocation "plugin"
#

include(src/QtLocationPlugin/QGCLocationPlugin.pri)

320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335
# Until pairing can be made to work cleanly on all OS it is turned off
DEFINES+=QGC_DISABLE_PAIRING

# Pairing
contains (DEFINES, QGC_DISABLE_PAIRING) {
    message("Skipping support for Pairing")
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, QGC_DISABLE_PAIRING) {
    message("Skipping support for Pairing (manual override from user_config.pri)")
} else:AndroidBuild:contains(QT_ARCH, arm64) {
    # Haven't figured out how to get 64 bit arm OpenSLL yet which pairing requires
    message("Skipping support for Pairing (Missing Android OpenSSL 64 bit support)")
} else {
    message("Enabling support for Pairing")
    DEFINES += QGC_ENABLE_PAIRING
}

336 337 338 339 340 341 342
#
# External library configuration
#

include(QGCExternalLibs.pri)

#
343
# Resources (custom code can replace them)
344 345
#

346 347 348 349 350 351 352 353 354 355 356 357 358
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
    }
359 360 361 362 363 364 365 366 367 368 369 370
    exists($$PWD/custom/qgcimages.qrc) {
        message("Using custom qgcimages.qrc")
        RESOURCES += $$PWD/custom/qgcimages.qrc
    } else {
        RESOURCES += $$PWD/qgcimages.qrc
    }
    exists($$PWD/custom/InstrumentValueIcons.qrc) {
        message("Using custom InstrumentValueIcons.qrc")
        RESOURCES += $$PWD/custom/InstrumentValueIcons.qrc
    } else {
        RESOURCES += $$PWD/resources/InstrumentValueIcons/InstrumentValueIcons.qrc
    }
371
} else {
372 373 374
    DEFINES += QGC_APPLICATION_NAME=\"\\\"QGCWima\\\"\"
    DEFINES += QGC_ORG_NAME=\"\\\"QGCWima.org\\\"\"
    DEFINES += QGC_ORG_DOMAIN=\"\\\"org.qgcwima\\\"\"
375 376
    RESOURCES += \
        $$PWD/qgroundcontrol.qrc \
377 378 379
        $$PWD/qgcresources.qrc \
        $$PWD/qgcimages.qrc \
        $$PWD/resources/InstrumentValueIcons/InstrumentValueIcons.qrc \
380 381
}

382 383 384
#
# Main QGroundControl portion of project file
#
385

386 387 388 389 390
DebugBuild {
    # Unit Test resources
    RESOURCES += UnitTest.qrc
}

391 392 393 394 395 396 397 398 399
DEPENDPATH += \
    . \
    plugins

INCLUDEPATH += .

INCLUDEPATH += \
    include/ui \
    src \
400
    src/ADSB \
401
    src/api \
Don Gagne's avatar
Don Gagne committed
402
    src/AnalyzeView \
403
    src/Camera \
404 405 406
    src/AutoPilotPlugins \
    src/FlightDisplay \
    src/FlightMap \
407
    src/FlightMap/Widgets \
Jimmy Johnson's avatar
Jimmy Johnson committed
408
    src/FollowMe \
409
    src/Geo \
410
    src/GPS \
Gus Grubba's avatar
Gus Grubba committed
411
    src/Joystick \
412
    src/PlanView \
413
    src/MissionManager \
Gus Grubba's avatar
Gus Grubba committed
414
    src/PositionManager \
415
    src/QmlControls \
Gus Grubba's avatar
Gus Grubba committed
416 417
    src/QtLocationPlugin \
    src/QtLocationPlugin/QMLControl \
418
    src/Settings \
419
    src/Wima/Snake \
420
    src/Terrain \
421
    src/Vehicle \
422
    src/Audio \
Gus Grubba's avatar
Gus Grubba committed
423
    src/comm \
424
    src/comm/ros_bridge \
Gus Grubba's avatar
Gus Grubba committed
425 426
    src/input \
    src/lib/qmapcontrol \
427 428 429 430 431 432 433 434 435 436
    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 \

437 438 439
contains (DEFINES, QGC_ENABLE_PAIRING) {
    INCLUDEPATH += \
        src/PairingManager \
440 441
}

Gus Grubba's avatar
Gus Grubba committed
442 443 444 445 446
#
# Plugin API
#

HEADERS += \
447 448
    src/QmlControls/QmlUnitsConversion.h \
    src/Vehicle/VehicleEscStatusFactGroup.h \
449
    src/Wima/CircularSurvey.h \
450
    src/Wima/GenericSingelton.h \
451
    src/Wima/Geometry/GenericCircle.h \
452
    src/Wima/RoutingThread.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
453 454
    src/Wima/Snake/CircularGenerator.h \
    src/Wima/Snake/GeneratorBase.h \
455
    src/Wima/Snake/LinearGenerator.h \
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477
    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 \
478 479
    src/Wima/Geometry/GenericPolygon.h \
    src/Wima/Geometry/GenericPolygonArray.h \
480
    src/Wima/Geometry/GeoPoint3D.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
481
    src/Wima/Snake/NemoInterface.h \
482
    src/Wima/Snake/QNemoHeartbeat.h \
483
    src/Wima/Snake/QNemoProgress.h \
484
    src/Wima/Snake/QNemoProgress.h \
485 486
    src/Wima/Snake/SnakeTile.h \
    src/Wima/Snake/SnakeTileLocal.h \
487 488
    src/Wima/Snake/SnakeTiles.h \
    src/Wima/Snake/SnakeTilesLocal.h \
489
    src/Wima/Utils.h \
490
    src/Wima/WimaBridge.h \
491
    src/Wima/WimaStateMachine.h \
492
    src/Wima/call_once.h \
493 494
    src/api/QGCCorePlugin.h \
    src/api/QGCOptions.h \
Gus Grubba's avatar
Gus Grubba committed
495
    src/api/QGCSettings.h \
496
    src/api/QmlComponentInfo.h \
497
    src/GPS/Drivers/src/base_station.h \
498 499 500
    src/Wima/Geometry/WimaArea.h \
    src/Wima/Geometry/WimaServiceArea.h \
    src/Wima/Geometry/WimaTrackerPolyline.h \
501
    src/Wima/WimaController.h \
502
    src/Wima/WimaPlaner.h \
503 504 505 506 507 508
    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 \
509
    src/Wima/WimaPlanData.h \
510 511 512 513
    src/Wima/Geometry/WimaJoinedArea.h \
    src/Wima/Geometry/WimaJoinedAreaData.h \
    src/Wima/Geometry/PlanimetryCalculus.h \
    src/Wima/Geometry/PolygonCalculus.h \
514
    src/Wima/OptimisationTools.h \
515 516 517
    src/Wima/Geometry/GeoUtilities.h \
    src/Wima/Geometry/TestPolygonCalculus.h \
    src/Wima/Geometry/testplanimetrycalculus.h \
518
    src/Settings/WimaSettings.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
519
    src/comm/ros_bridge/include/RosBridgeClient.h \
520 521 522 523 524 525 526 527 528 529 530
    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 \
531
    src/comm/ros_bridge/include/messages/std_msgs/time.h \
532 533
    src/comm/ros_bridge/include/topic_publisher.h \
    src/comm/ros_bridge/include/topic_subscriber.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
534
    src/comm/utilities.h
535 536 537 538 539 540

contains (DEFINES, QGC_ENABLE_PAIRING) {
    HEADERS += \
        src/PairingManager/aes.h
}

541
SOURCES += \
542
    src/Vehicle/VehicleEscStatusFactGroup.cc \
543
    src/Wima/WimaStateMachine.cpp \
544 545 546 547
    src/api/QGCCorePlugin.cc \
    src/api/QGCOptions.cc \
    src/api/QGCSettings.cc \
    src/api/QmlComponentInfo.cc \
548
    src/Wima/CircularSurvey.cc \
549
    src/Wima/GenericSingelton.cpp \
550
    src/Wima/RoutingThread.cpp \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
551 552
    src/Wima/Snake/CircularGenerator.cpp \
    src/Wima/Snake/GeneratorBase.cc \
553
    src/Wima/Snake/LinearGenerator.cpp \
554 555
    src/Wima/Snake/clipper/clipper.cpp \
    src/Wima/Snake/snake.cpp \
556
    src/Wima/Geometry/GeoPoint3D.cpp \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
557
    src/Wima/Snake/NemoInterface.cpp \
558
    src/Wima/Snake/QNemoProgress.cc \
559
    src/Wima/Snake/SnakeTile.cpp \
560
    src/Wima/Utils.cpp \
561
    src/Wima/WimaBridge.cc \
562
    src/comm/ros_bridge/include/RosBridgeClient.cpp \
563
    src/comm/ros_bridge/include/com_private.cpp \
564 565 566 567 568 569 570
    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
571
    src/comm/ros_bridge/include/messages/std_msgs/header.cpp \
572
    src/comm/ros_bridge/include/messages/std_msgs/time.cpp \
573 574 575
    src/comm/ros_bridge/include/server.cpp \
    src/comm/ros_bridge/include/topic_publisher.cpp \
    src/comm/ros_bridge/include/topic_subscriber.cpp \
576 577 578
    src/Wima/Geometry/WimaArea.cc \
    src/Wima/Geometry/WimaServiceArea.cc \
    src/Wima/Geometry/WimaTrackerPolyline.cc \
579
    src/Wima/WimaController.cc \
580
    src/Wima/WimaPlaner.cc \
581 582 583 584 585
    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 \
586
    src/Wima/WimaPlanData.cc \
587 588 589 590
    src/Wima/Geometry/WimaMeasurementAreaData.cc \
    src/Wima/Geometry/WimaJoinedArea.cc \
    src/Wima/Geometry/WimaJoinedAreaData.cc \
    src/Wima/Geometry/PlanimetryCalculus.cc \
591
    src/Wima/OptimisationTools.cc \
592 593 594 595
    src/Wima/Geometry/GeoUtilities.cc \
    src/Wima/Geometry/PolygonCalculus.cc \
    src/Wima/Geometry/TestPolygonCalculus.cpp \
    src/Wima/Geometry/testplanimetrycalculus.cpp \
596
    src/Settings/WimaSettings.cc \
597
    src/comm/ros_bridge/src/ros_bridge.cpp
Gus Grubba's avatar
Gus Grubba committed
598

599 600 601 602 603
contains (DEFINES, QGC_ENABLE_PAIRING) {
    SOURCES += \
        src/PairingManager/aes.cpp
}

604 605 606 607
#
# Unit Test specific configuration goes here (requires full debug build with all plugins)
#

608
DebugBuild { PX4FirmwarePlugin { PX4FirmwarePluginFactory { APMFirmwarePlugin { APMFirmwarePluginFactory { !MobileBuild {
609 610 611 612 613 614
    DEFINES += UNITTEST_BUILD

    INCLUDEPATH += \
        src/qgcunittest

    HEADERS += \
615
        src/Audio/AudioOutputTest.h \
616 617 618 619
        src/FactSystem/FactSystemTestBase.h \
        src/FactSystem/FactSystemTestGeneric.h \
        src/FactSystem/FactSystemTestPX4.h \
        src/FactSystem/ParameterManagerTest.h \
620
        src/MissionManager/CameraCalcTest.h \
621
        src/MissionManager/CameraSectionTest.h \
622
        src/MissionManager/CorridorScanComplexItemTest.h \
623
        src/MissionManager/FWLandingPatternTest.h \
624 625
        src/MissionManager/LandingComplexItemTest.h \
        src/MissionManager/MissionCommandTreeEditorTest.h \
626 627
        src/MissionManager/MissionCommandTreeTest.h \
        src/MissionManager/MissionControllerManagerTest.h \
Gus Grubba's avatar
Gus Grubba committed
628
        src/MissionManager/MissionControllerTest.h \
629 630
        src/MissionManager/MissionItemTest.h \
        src/MissionManager/MissionManagerTest.h \
631
        src/MissionManager/MissionSettingsTest.h \
632
        src/MissionManager/PlanMasterControllerTest.h \
633
        src/MissionManager/QGCMapPolygonTest.h \
634
        src/MissionManager/QGCMapPolylineTest.h \
635
        src/MissionManager/SectionTest.h \
636
        src/MissionManager/SimpleMissionItemTest.h \
637
        src/MissionManager/SpeedSectionTest.h \
638
        src/MissionManager/StructureScanComplexItemTest.h \
639
        src/MissionManager/SurveyComplexItemTest.h \
640
        src/MissionManager/TransectStyleComplexItemTest.h \
641
        src/MissionManager/TransectStyleComplexItemTestBase.h \
642
        src/MissionManager/VisualMissionItemTest.h \
Gus Grubba's avatar
Gus Grubba committed
643
        src/qgcunittest/GeoTest.h \
644 645
        src/qgcunittest/MavlinkLogTest.h \
        src/qgcunittest/MultiSignalSpy.h \
646
        src/qgcunittest/MultiSignalSpyV2.h \
647
        src/qgcunittest/UnitTest.h \
648 649 650 651 652 653 654 655 656 657 658
        src/Vehicle/FTPManagerTest.h \
        src/Vehicle/RequestMessageTest.h \
        src/Vehicle/SendMavCommandWithHandlerTest.h \
        src/Vehicle/SendMavCommandWithSignallingTest.h \
        src/Vehicle/VehicleLinkManagerTest.h \
        #src/qgcunittest/RadioConfigTest.h \
        #src/AnalyzeView/LogDownloadTest.h \
        #src/qgcunittest/FileDialogTest.h \
        #src/qgcunittest/FileManagerTest.h \
        #src/qgcunittest/MainWindowTest.h \
        #src/qgcunittest/MessageBoxTest.h \
659 660

    SOURCES += \
661
        src/Audio/AudioOutputTest.cc \
662 663 664 665
        src/FactSystem/FactSystemTestBase.cc \
        src/FactSystem/FactSystemTestGeneric.cc \
        src/FactSystem/FactSystemTestPX4.cc \
        src/FactSystem/ParameterManagerTest.cc \
666
        src/MissionManager/CameraCalcTest.cc \
667
        src/MissionManager/CameraSectionTest.cc \
668
        src/MissionManager/CorridorScanComplexItemTest.cc \
669
        src/MissionManager/FWLandingPatternTest.cc \
670 671
        src/MissionManager/LandingComplexItemTest.cc \
        src/MissionManager/MissionCommandTreeEditorTest.cc \
672 673
        src/MissionManager/MissionCommandTreeTest.cc \
        src/MissionManager/MissionControllerManagerTest.cc \
Gus Grubba's avatar
Gus Grubba committed
674
        src/MissionManager/MissionControllerTest.cc \
675 676
        src/MissionManager/MissionItemTest.cc \
        src/MissionManager/MissionManagerTest.cc \
677
        src/MissionManager/MissionSettingsTest.cc \
678
        src/MissionManager/PlanMasterControllerTest.cc \
679
        src/MissionManager/QGCMapPolygonTest.cc \
680
        src/MissionManager/QGCMapPolylineTest.cc \
681
        src/MissionManager/SectionTest.cc \
682
        src/MissionManager/SimpleMissionItemTest.cc \
683
        src/MissionManager/SpeedSectionTest.cc \
684
        src/MissionManager/StructureScanComplexItemTest.cc \
685
        src/MissionManager/SurveyComplexItemTest.cc \
686
        src/MissionManager/TransectStyleComplexItemTest.cc \
687
        src/MissionManager/TransectStyleComplexItemTestBase.cc \
688
        src/MissionManager/VisualMissionItemTest.cc \
Gus Grubba's avatar
Gus Grubba committed
689
        src/qgcunittest/GeoTest.cc \
690 691
        src/qgcunittest/MavlinkLogTest.cc \
        src/qgcunittest/MultiSignalSpy.cc \
692
        src/qgcunittest/MultiSignalSpyV2.cc \
693 694
        src/qgcunittest/UnitTest.cc \
        src/qgcunittest/UnitTestList.cc \
695 696 697 698 699 700 701 702 703 704 705 706
        src/Vehicle/FTPManagerTest.cc \
        src/Vehicle/RequestMessageTest.cc \
        src/Vehicle/SendMavCommandWithHandlerTest.cc \
        src/Vehicle/SendMavCommandWithSignallingTest.cc \
        src/Vehicle/VehicleLinkManagerTest.cc \
        #src/qgcunittest/RadioConfigTest.cc \
        #src/AnalyzeView/LogDownloadTest.cc \
        #src/qgcunittest/FileDialogTest.cc \
        #src/qgcunittest/FileManagerTest.cc \
        #src/qgcunittest/MainWindowTest.cc \
        #src/qgcunittest/MessageBoxTest.cc \

707 708 709 710
} } } } } }

# Main QGC Headers and Source files

711
HEADERS += \
712 713
    src/ADSB/ADSBVehicle.h \
    src/ADSB/ADSBVehicleManager.h \
714
    src/AnalyzeView/LogDownloadController.h \
715
    src/AnalyzeView/PX4LogParser.h \
716
    src/AnalyzeView/ULogParser.h \
717
    src/AnalyzeView/MavlinkConsoleController.h \
718
    src/Audio/AudioOutput.h \
719 720 721
    src/Camera/QGCCameraControl.h \
    src/Camera/QGCCameraIO.h \
    src/Camera/QGCCameraManager.h \
722
    src/CmdLineOptParser.h \
723
    src/FirmwarePlugin/PX4/px4_custom_mode.h \
Gus Grubba's avatar
Gus Grubba committed
724
    src/FollowMe/FollowMe.h \
725 726
    src/Joystick/Joystick.h \
    src/Joystick/JoystickManager.h \
Don Gagne's avatar
Don Gagne committed
727
    src/JsonHelper.h \
728 729
    src/KMLDomDocument.h \
    src/KMLHelper.h \
730
    src/LogCompressor.h \
731
    src/MissionManager/CameraCalc.h \
732
    src/MissionManager/CameraSection.h \
733
    src/MissionManager/CameraSpec.h \
734
    src/MissionManager/ComplexMissionItem.h \
735
    src/MissionManager/CorridorScanComplexItem.h \
736 737
    src/MissionManager/CorridorScanPlanCreator.h \
    src/MissionManager/BlankPlanCreator.h \
738
    src/MissionManager/FixedWingLandingComplexItem.h \
739 740
    src/MissionManager/GeoFenceController.h \
    src/MissionManager/GeoFenceManager.h \
741 742
    src/MissionManager/KMLPlanDomDocument.h \
    src/MissionManager/LandingComplexItem.h \
743
    src/MissionManager/MissionCommandList.h \
744 745
    src/MissionManager/MissionCommandTree.h \
    src/MissionManager/MissionCommandUIInfo.h \
746
    src/MissionManager/MissionController.h \
747 748
    src/MissionManager/MissionItem.h \
    src/MissionManager/MissionManager.h \
749
    src/MissionManager/MissionSettingsItem.h \
750
    src/MissionManager/PlanElementController.h \
751
    src/MissionManager/PlanCreator.h \
752
    src/MissionManager/PlanManager.h \
753
    src/MissionManager/PlanMasterController.h \
754 755 756
    src/MissionManager/QGCFenceCircle.h \
    src/MissionManager/QGCFencePolygon.h \
    src/MissionManager/QGCMapCircle.h \
757
    src/MissionManager/QGCMapPolygon.h \
758
    src/MissionManager/QGCMapPolyline.h \
759 760 761
    src/MissionManager/RallyPoint.h \
    src/MissionManager/RallyPointController.h \
    src/MissionManager/RallyPointManager.h \
762
    src/MissionManager/SimpleMissionItem.h \
763 764
    src/MissionManager/Section.h \
    src/MissionManager/SpeedSection.h \
765
    src/MissionManager/StructureScanComplexItem.h \
766
    src/MissionManager/StructureScanPlanCreator.h \
767
    src/MissionManager/SurveyComplexItem.h \
768 769
    src/MissionManager/SurveyPlanCreator.h \
    src/MissionManager/TakeoffMissionItem.h \
770
    src/MissionManager/TransectStyleComplexItem.h \
771
    src/MissionManager/VisualMissionItem.h \
772
    src/MissionManager/VTOLLandingComplexItem.h \
Gus Grubba's avatar
Gus Grubba committed
773 774
    src/PositionManager/PositionManager.h \
    src/PositionManager/SimulatedPosition.h \
775 776 777 778 779 780 781 782
    src/Geo/QGCGeo.h \
    src/Geo/Constants.hpp \
    src/Geo/Math.hpp \
    src/Geo/Utility.hpp \
    src/Geo/UTMUPS.hpp \
    src/Geo/MGRS.hpp \
    src/Geo/TransverseMercator.hpp \
    src/Geo/PolarStereographic.hpp \
783 784 785 786
    src/QGC.h \
    src/QGCApplication.h \
    src/QGCComboBox.h \
    src/QGCConfig.h \
787
    src/QGCFileDownload.h \
788
    src/QGCLoggingCategory.h \
Don Gagne's avatar
Don Gagne committed
789
    src/QGCMapPalette.h \
790
    src/QGCPalette.h \
791
    src/QGCQGeoCoordinate.h \
792 793
    src/QGCTemporaryFile.h \
    src/QGCToolbox.h \
794
    src/QGCZlib.h \
795
    src/QmlControls/AppMessages.h \
796
    src/QmlControls/EditPositionDialogController.h \
797 798 799 800
    src/QmlControls/FlightPathSegment.h \
    src/QmlControls/HorizontalFactValueGrid.h \
    src/QmlControls/InstrumentValueData.h \
    src/QmlControls/FactValueGrid.h \
801
    src/QmlControls/ParameterEditorController.h \
802
    src/QmlControls/QGCFileDialogController.h \
Gus Grubba's avatar
Gus Grubba committed
803
    src/QmlControls/QGCImageProvider.h \
804 805
    src/QmlControls/QGroundControlQmlGlobal.h \
    src/QmlControls/QmlObjectListModel.h \
806
    src/QmlControls/QGCGeoBoundingCube.h \
Gus Grubba's avatar
Gus Grubba committed
807
    src/QmlControls/RCChannelMonitorController.h \
808
    src/QmlControls/RCToParamDialogController.h \
Gus Grubba's avatar
Gus Grubba committed
809
    src/QmlControls/ScreenToolsController.h \
810 811 812
    src/QmlControls/TerrainProfile.h \
    src/QmlControls/ToolStripAction.h \
    src/QmlControls/ToolStripActionList.h \
Gus Grubba's avatar
Gus Grubba committed
813
    src/QtLocationPlugin/QMLControl/QGCMapEngineManager.h \
814
    src/Settings/ADSBVehicleManagerSettings.h \
815 816
    src/Settings/AppSettings.h \
    src/Settings/AutoConnectSettings.h \
817
    src/Settings/BrandImageSettings.h \
818
    src/Settings/FirmwareUpgradeSettings.h \
819
    src/Settings/FlightMapSettings.h \
820
    src/Settings/FlyViewSettings.h \
821
    src/Settings/OfflineMapsSettings.h \
822
    src/Settings/PlanViewSettings.h \
Don Gagne's avatar
Don Gagne committed
823
    src/Settings/RTKSettings.h \
824 825 826 827
    src/Settings/SettingsGroup.h \
    src/Settings/SettingsManager.h \
    src/Settings/UnitsSettings.h \
    src/Settings/VideoSettings.h \
828 829
    src/ShapeFileHelper.h \
    src/SHPFileHelper.h \
830
    src/Terrain/TerrainQuery.h \
Andreas Bircher's avatar
Andreas Bircher committed
831
    src/TerrainTile.h \
832 833 834 835 836 837 838
    src/Vehicle/CompInfo.h \
    src/Vehicle/CompInfoParam.h \
    src/Vehicle/CompInfoVersion.h \
    src/Vehicle/ComponentInformationManager.h \
    src/Vehicle/FTPManager.h \
    src/Vehicle/GPSRTKFactGroup.h \
    src/Vehicle/InitialConnectStateMachine.h \
Gus Grubba's avatar
Gus Grubba committed
839
    src/Vehicle/MAVLinkLogManager.h \
840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857
    src/Vehicle/MultiVehicleManager.h \
    src/Vehicle/StateMachine.h \
    src/Vehicle/SysStatusSensorInfo.h \
    src/Vehicle/TerrainFactGroup.h \
    src/Vehicle/TerrainProtocolHandler.h \
    src/Vehicle/TrajectoryPoints.h \
    src/Vehicle/Vehicle.h \
    src/Vehicle/VehicleObjectAvoidance.h \
    src/Vehicle/VehicleBatteryFactGroup.h \
    src/Vehicle/VehicleClockFactGroup.h \
    src/Vehicle/VehicleDistanceSensorFactGroup.h \
    src/Vehicle/VehicleEstimatorStatusFactGroup.h \
    src/Vehicle/VehicleGPSFactGroup.h \
    src/Vehicle/VehicleLinkManager.h \
    src/Vehicle/VehicleSetpointFactGroup.h \
    src/Vehicle/VehicleTemperatureFactGroup.h \
    src/Vehicle/VehicleVibrationFactGroup.h \
    src/Vehicle/VehicleWindFactGroup.h \
Gus Grubba's avatar
Gus Grubba committed
858 859 860 861
    src/VehicleSetup/JoystickConfigController.h \
    src/comm/LinkConfiguration.h \
    src/comm/LinkInterface.h \
    src/comm/LinkManager.h \
862
    src/comm/LogReplayLink.h \
Gus Grubba's avatar
Gus Grubba committed
863 864 865 866
    src/comm/MAVLinkProtocol.h \
    src/comm/QGCMAVLink.h \
    src/comm/TCPLink.h \
    src/comm/UDPLink.h \
Willian Galvani's avatar
Willian Galvani committed
867
    src/comm/UdpIODevice.h \
868 869 870
    src/uas/UAS.h \
    src/uas/UASInterface.h \
    src/uas/UASMessageHandler.h \
871 872
    src/AnalyzeView/GeoTagController.h \
    src/AnalyzeView/ExifParser.h \
873

874 875 876 877
contains (DEFINES, QGC_ENABLE_PAIRING) {
    HEADERS += \
        src/PairingManager/PairingManager.h \
}
878

879 880
AndroidBuild {
HEADERS += \
881
    src/Joystick/JoystickAndroid.h \
882 883
}

884 885 886
DebugBuild {
HEADERS += \
    src/comm/MockLink.h \
887
    src/comm/MockLinkFTP.h \
888 889 890
    src/comm/MockLinkMissionItemHandler.h \
}

891 892 893
WindowsBuild {
    PRECOMPILED_HEADER += src/stable_headers.h
    HEADERS += src/stable_headers.h
Daniel Agar's avatar
Daniel Agar committed
894
    CONFIG -= silent
895
    OTHER_FILES += .appveyor.yml
896 897
}

dogmaphobic's avatar
dogmaphobic committed
898
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
899 900
    HEADERS += \
    src/comm/BluetoothLink.h \
dogmaphobic's avatar
dogmaphobic committed
901
}
902

903 904 905 906 907 908 909
contains (DEFINES, QGC_ENABLE_PAIRING) {
    contains(DEFINES, QGC_ENABLE_QTNFC) {
        HEADERS += \
            src/PairingManager/QtNFC.h
    }
}

Gus Grubba's avatar
Gus Grubba committed
910
!NoSerialBuild {
911
HEADERS += \
912
    src/comm/QGCSerialPortInfo.h \
913 914 915 916 917
    src/comm/SerialLink.h \
}

!MobileBuild {
HEADERS += \
Gus Grubba's avatar
Gus Grubba committed
918
    src/GPS/Drivers/src/gps_helper.h \
919 920
    src/GPS/Drivers/src/rtcm.h \
    src/GPS/Drivers/src/ashtech.h \
Gus Grubba's avatar
Gus Grubba committed
921
    src/GPS/Drivers/src/ubx.h \
922
    src/GPS/Drivers/src/sbf.h \
Gus Grubba's avatar
Gus Grubba committed
923 924 925 926 927 928 929 930
    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 \
931
    src/RunGuard.h \
932 933
}

Don Gagne's avatar
Don Gagne committed
934 935 936 937
iOSBuild {
    OBJECTIVE_SOURCES += \
        src/MobileScreenMgr.mm \
}
938

Don Gagne's avatar
Don Gagne committed
939
AndroidBuild {
Don Gagne's avatar
Don Gagne committed
940
    SOURCES += src/MobileScreenMgr.cc \
941
    src/Joystick/JoystickAndroid.cc \
Don Gagne's avatar
Don Gagne committed
942 943
}

944
SOURCES += \
945 946
    src/ADSB/ADSBVehicle.cc \
    src/ADSB/ADSBVehicleManager.cc \
947
    src/AnalyzeView/LogDownloadController.cc \
948
    src/AnalyzeView/PX4LogParser.cc \
949
    src/AnalyzeView/ULogParser.cc \
950
    src/AnalyzeView/MavlinkConsoleController.cc \
951
    src/Audio/AudioOutput.cc \
952 953 954
    src/Camera/QGCCameraControl.cc \
    src/Camera/QGCCameraIO.cc \
    src/Camera/QGCCameraManager.cc \
955
    src/CmdLineOptParser.cc \
Gus Grubba's avatar
Gus Grubba committed
956
    src/FollowMe/FollowMe.cc \
957 958
    src/Joystick/Joystick.cc \
    src/Joystick/JoystickManager.cc \
Don Gagne's avatar
Don Gagne committed
959
    src/JsonHelper.cc \
960 961
    src/KMLDomDocument.cc \
    src/KMLHelper.cc \
962
    src/LogCompressor.cc \
963
    src/MissionManager/CameraCalc.cc \
964
    src/MissionManager/CameraSection.cc \
965
    src/MissionManager/CameraSpec.cc \
966
    src/MissionManager/ComplexMissionItem.cc \
967
    src/MissionManager/CorridorScanComplexItem.cc \
968 969
    src/MissionManager/CorridorScanPlanCreator.cc \
    src/MissionManager/BlankPlanCreator.cc \
970
    src/MissionManager/FixedWingLandingComplexItem.cc \
971 972
    src/MissionManager/GeoFenceController.cc \
    src/MissionManager/GeoFenceManager.cc \
973 974
    src/MissionManager/KMLPlanDomDocument.cc \
    src/MissionManager/LandingComplexItem.cc \
975
    src/MissionManager/MissionCommandList.cc \
976 977
    src/MissionManager/MissionCommandTree.cc \
    src/MissionManager/MissionCommandUIInfo.cc \
978
    src/MissionManager/MissionController.cc \
979 980
    src/MissionManager/MissionItem.cc \
    src/MissionManager/MissionManager.cc \
981
    src/MissionManager/MissionSettingsItem.cc \
982
    src/MissionManager/PlanElementController.cc \
983
    src/MissionManager/PlanCreator.cc \
984
    src/MissionManager/PlanManager.cc \
985
    src/MissionManager/PlanMasterController.cc \
986 987 988
    src/MissionManager/QGCFenceCircle.cc \
    src/MissionManager/QGCFencePolygon.cc \
    src/MissionManager/QGCMapCircle.cc \
989
    src/MissionManager/QGCMapPolygon.cc \
990
    src/MissionManager/QGCMapPolyline.cc \
991 992 993
    src/MissionManager/RallyPoint.cc \
    src/MissionManager/RallyPointController.cc \
    src/MissionManager/RallyPointManager.cc \
994
    src/MissionManager/SimpleMissionItem.cc \
995
    src/MissionManager/SpeedSection.cc \
996
    src/MissionManager/StructureScanComplexItem.cc \
997
    src/MissionManager/StructureScanPlanCreator.cc \
998
    src/MissionManager/SurveyComplexItem.cc \
999 1000
    src/MissionManager/SurveyPlanCreator.cc \
    src/MissionManager/TakeoffMissionItem.cc \
1001
    src/MissionManager/TransectStyleComplexItem.cc \
1002
    src/MissionManager/VisualMissionItem.cc \
1003
    src/MissionManager/VTOLLandingComplexItem.cc \
Gus Grubba's avatar
Gus Grubba committed
1004 1005
    src/PositionManager/PositionManager.cpp \
    src/PositionManager/SimulatedPosition.cc \
1006 1007 1008 1009 1010 1011 1012
    src/Geo/QGCGeo.cc \
    src/Geo/Math.cpp \
    src/Geo/Utility.cpp \
    src/Geo/UTMUPS.cpp \
    src/Geo/MGRS.cpp \
    src/Geo/TransverseMercator.cpp \
    src/Geo/PolarStereographic.cpp \
1013 1014 1015
    src/QGC.cc \
    src/QGCApplication.cc \
    src/QGCComboBox.cc \
1016
    src/QGCFileDownload.cc \
1017
    src/QGCLoggingCategory.cc \
Don Gagne's avatar
Don Gagne committed
1018
    src/QGCMapPalette.cc \
1019
    src/QGCPalette.cc \
1020
    src/QGCQGeoCoordinate.cc \
1021 1022
    src/QGCTemporaryFile.cc \
    src/QGCToolbox.cc \
1023
    src/QGCZlib.cc \
1024
    src/QmlControls/AppMessages.cc \
1025
    src/QmlControls/EditPositionDialogController.cc \
1026 1027 1028 1029
    src/QmlControls/FlightPathSegment.cc \
    src/QmlControls/HorizontalFactValueGrid.cc \
    src/QmlControls/InstrumentValueData.cc \
    src/QmlControls/FactValueGrid.cc \
1030
    src/QmlControls/ParameterEditorController.cc \
1031
    src/QmlControls/QGCFileDialogController.cc \
Gus Grubba's avatar
Gus Grubba committed
1032
    src/QmlControls/QGCImageProvider.cc \
1033 1034
    src/QmlControls/QGroundControlQmlGlobal.cc \
    src/QmlControls/QmlObjectListModel.cc \
1035
    src/QmlControls/QGCGeoBoundingCube.cc \
Gus Grubba's avatar
Gus Grubba committed
1036
    src/QmlControls/RCChannelMonitorController.cc \
1037
    src/QmlControls/RCToParamDialogController.cc \
Gus Grubba's avatar
Gus Grubba committed
1038
    src/QmlControls/ScreenToolsController.cc \
1039 1040 1041
    src/QmlControls/TerrainProfile.cc \
    src/QmlControls/ToolStripAction.cc \
    src/QmlControls/ToolStripActionList.cc \
Gus Grubba's avatar
Gus Grubba committed
1042
    src/QtLocationPlugin/QMLControl/QGCMapEngineManager.cc \
1043
    src/Settings/ADSBVehicleManagerSettings.cc \
1044 1045
    src/Settings/AppSettings.cc \
    src/Settings/AutoConnectSettings.cc \
1046
    src/Settings/BrandImageSettings.cc \
1047
    src/Settings/FirmwareUpgradeSettings.cc \
1048
    src/Settings/FlightMapSettings.cc \
1049
    src/Settings/FlyViewSettings.cc \
1050
    src/Settings/OfflineMapsSettings.cc \
1051
    src/Settings/PlanViewSettings.cc \
Don Gagne's avatar
Don Gagne committed
1052
    src/Settings/RTKSettings.cc \
1053 1054 1055 1056
    src/Settings/SettingsGroup.cc \
    src/Settings/SettingsManager.cc \
    src/Settings/UnitsSettings.cc \
    src/Settings/VideoSettings.cc \
1057 1058
    src/ShapeFileHelper.cc \
    src/SHPFileHelper.cc \
1059
    src/Terrain/TerrainQuery.cc \
Andreas Bircher's avatar
Andreas Bircher committed
1060
    src/TerrainTile.cc\
1061 1062 1063 1064 1065 1066 1067
    src/Vehicle/CompInfo.cc \
    src/Vehicle/CompInfoParam.cc \
    src/Vehicle/CompInfoVersion.cc \
    src/Vehicle/ComponentInformationManager.cc \
    src/Vehicle/FTPManager.cc \
    src/Vehicle/GPSRTKFactGroup.cc \
    src/Vehicle/InitialConnectStateMachine.cc \
Gus Grubba's avatar
Gus Grubba committed
1068
    src/Vehicle/MAVLinkLogManager.cc \
1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086
    src/Vehicle/MultiVehicleManager.cc \
    src/Vehicle/StateMachine.cc \
    src/Vehicle/SysStatusSensorInfo.cc \
    src/Vehicle/TerrainFactGroup.cc \
    src/Vehicle/TerrainProtocolHandler.cc \
    src/Vehicle/TrajectoryPoints.cc \
    src/Vehicle/Vehicle.cc \
    src/Vehicle/VehicleObjectAvoidance.cc \
    src/Vehicle/VehicleBatteryFactGroup.cc \
    src/Vehicle/VehicleClockFactGroup.cc \
    src/Vehicle/VehicleDistanceSensorFactGroup.cc \
    src/Vehicle/VehicleEstimatorStatusFactGroup.cc \
    src/Vehicle/VehicleGPSFactGroup.cc \
    src/Vehicle/VehicleLinkManager.cc \
    src/Vehicle/VehicleSetpointFactGroup.cc \
    src/Vehicle/VehicleTemperatureFactGroup.cc \
    src/Vehicle/VehicleVibrationFactGroup.cc \
    src/Vehicle/VehicleWindFactGroup.cc \
Gus Grubba's avatar
Gus Grubba committed
1087 1088
    src/VehicleSetup/JoystickConfigController.cc \
    src/comm/LinkConfiguration.cc \
1089
    src/comm/LinkInterface.cc \
Gus Grubba's avatar
Gus Grubba committed
1090
    src/comm/LinkManager.cc \
1091
    src/comm/LogReplayLink.cc \
Gus Grubba's avatar
Gus Grubba committed
1092 1093 1094 1095
    src/comm/MAVLinkProtocol.cc \
    src/comm/QGCMAVLink.cc \
    src/comm/TCPLink.cc \
    src/comm/UDPLink.cc \
Willian Galvani's avatar
Willian Galvani committed
1096
    src/comm/UdpIODevice.cc \
Gus Grubba's avatar
Gus Grubba committed
1097
    src/main.cc \
1098 1099
    src/uas/UAS.cc \
    src/uas/UASMessageHandler.cc \
1100 1101 1102 1103 1104 1105 1106
    src/AnalyzeView/GeoTagController.cc \
    src/AnalyzeView/ExifParser.cc \

contains (DEFINES, QGC_ENABLE_PAIRING) {
    SOURCES += \
        src/PairingManager/PairingManager.cc \
}
1107

1108 1109 1110
DebugBuild {
SOURCES += \
    src/comm/MockLink.cc \
1111
    src/comm/MockLinkFTP.cc \
1112 1113 1114
    src/comm/MockLinkMissionItemHandler.cc \
}

Gus Grubba's avatar
Gus Grubba committed
1115
!NoSerialBuild {
1116
SOURCES += \
1117
    src/comm/QGCSerialPortInfo.cc \
1118 1119 1120
    src/comm/SerialLink.cc \
}

dogmaphobic's avatar
dogmaphobic committed
1121
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
1122 1123 1124 1125
    SOURCES += \
    src/comm/BluetoothLink.cc \
}

1126 1127 1128 1129 1130