qgroundcontrol.pro 53.3 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 += ROS_BRIDGE_DEBUG
39 40
}
else {
41
    DESTDIR  = $${OUT_PWD}/release
42
    #DEFINES += ROS_BRIDGE_DEBUG
43
    #DEFINES += SNAKE_SHOW_TIME
44
    #DEFINES += SNAKE_DEBUG
45
    DEFINES += NDEBUG
46 47
}

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

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

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

LinuxBuild {
    CONFIG  += qesp_linux_udev
}

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

70 71 72 73
#
# Branding
#

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

80
WindowsBuild {
81 82
    QGC_INSTALLER_ICON          = "$$SOURCE_DIR\\WindowsQGC.ico"
    QGC_INSTALLER_HEADER_BITMAP = "$$SOURCE_DIR\\installheader.bmp"
83
}
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
#-------------------------------------------------------------------------------------
# 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
139
            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)
140 141 142 143 144
            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
145 146
            QMAKE_INFO_PLIST  = $${SOURCE_DIR}/ios/iOSForAppStore-Info.plist
            OTHER_FILES      += $${SOURCE_DIR}/ios/iOSForAppStore-Info.plist
147
        } else {
148 149
            QMAKE_INFO_PLIST  = $${SOURCE_DIR}/ios/iOS-Info.plist
            OTHER_FILES      += $${SOURCE_DIR}/ios/iOS-Info.plist
150 151 152 153 154 155 156
        }
        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 207 208 209 210 211 212 213 214 215
# 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
}

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

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

# Qt configuration

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

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

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

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

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

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

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

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

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

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

DebugBuild {
!iOSBuild {
    CONFIG += console
}
}

#
# Our QtLocation "plugin"
#

include(src/QtLocationPlugin/QGCLocationPlugin.pri)

319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
# 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
}

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

include(QGCExternalLibs.pri)

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

345 346 347 348 349 350 351 352 353 354 355 356 357
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
    }
358 359 360 361 362 363 364 365 366 367 368 369
    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
    }
370
} else {
Valentin Platzgummer's avatar
Valentin Platzgummer committed
371 372 373
    DEFINES += QGC_APPLICATION_NAME=\"\\\"QGroundControl\\\"\"
    DEFINES += QGC_ORG_NAME=\"\\\"QGroundControl.org\\\"\"
    DEFINES += QGC_ORG_DOMAIN=\"\\\"org.qgc\\\"\"
374 375
    RESOURCES += \
        $$PWD/qgroundcontrol.qrc \
376 377 378
        $$PWD/qgcresources.qrc \
        $$PWD/qgcimages.qrc \
        $$PWD/resources/InstrumentValueIcons/InstrumentValueIcons.qrc \
379 380
}

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

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

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

INCLUDEPATH += .

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

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

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

HEADERS += \
448 449
    src/MeasurementComplexItem/geometry/ProgressArray.h \
    src/MeasurementComplexItem/geometry/TileDiff.h \
450
    src/MeasurementComplexItem/geometry/geometry.h \
451 452
    src/MeasurementComplexItem/HashFunctions.h \
    src/MeasurementComplexItem/nemo_interface/MeasurementTile.h \
453
    src/QmlControls/QmlUnitsConversion.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
454 455 456
    src/MeasurementComplexItem/geometry/GeoArea.h \
    src/MeasurementComplexItem/geometry/MeasurementArea.h \
    src/MeasurementComplexItem/geometry/SafeArea.h \
457
    src/Vehicle/VehicleEscStatusFactGroup.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
    src/MeasurementComplexItem/AreaData.h \
    src/MeasurementComplexItem/MeasurementComplexItem.h \
    src/MeasurementComplexItem/GenericSingelton.h \
    src/MeasurementComplexItem/geometry/GenericCircle.h \
    src/MeasurementComplexItem/RoutingThread.h \
    src/MeasurementComplexItem/CircularGenerator.h \
    src/MeasurementComplexItem/GeneratorBase.h \
    src/MeasurementComplexItem/LinearGenerator.h \
    src/MeasurementComplexItem/geometry/clipper/clipper.hpp \
    src/MeasurementComplexItem/geometry/mapbox/feature.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/box.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/empty.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/envelope.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/for_each_point.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/geometry.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/line_string.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/multi_line_string.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/multi_point.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/multi_polygon.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/point.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/point_arithmetic.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry/polygon.hpp \
    src/MeasurementComplexItem/geometry/mapbox/geometry_io.hpp \
    src/MeasurementComplexItem/geometry/mapbox/optional.hpp \
    src/MeasurementComplexItem/geometry/mapbox/polylabel.hpp \
    src/MeasurementComplexItem/geometry/mapbox/recursive_wrapper.hpp \
    src/MeasurementComplexItem/geometry/mapbox/variant.hpp \
    src/MeasurementComplexItem/geometry/mapbox/variant_io.hpp \
    src/MeasurementComplexItem/geometry/GenericPolygon.h \
    src/MeasurementComplexItem/geometry/GenericPolygonArray.h \
    src/MeasurementComplexItem/geometry/GeoPoint3D.h \
    src/MeasurementComplexItem/NemoInterface.h \
    src/MeasurementComplexItem/nemo_interface/QNemoHeartbeat.h \
    src/MeasurementComplexItem/nemo_interface/QNemoProgress.h \
    src/MeasurementComplexItem/nemo_interface/QNemoProgress.h \
    src/MeasurementComplexItem/nemo_interface/SnakeTileLocal.h \
    src/MeasurementComplexItem/nemo_interface/SnakeTiles.h \
    src/MeasurementComplexItem/nemo_interface/SnakeTilesLocal.h \
    src/MeasurementComplexItem/call_once.h \
498 499
    src/api/QGCCorePlugin.h \
    src/api/QGCOptions.h \
Gus Grubba's avatar
Gus Grubba committed
500
    src/api/QGCSettings.h \
501
    src/api/QmlComponentInfo.h \
502
    src/GPS/Drivers/src/base_station.h \
503
    src/Settings/WimaSettings.h \
504
    src/comm/QmlObjectListHelper.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
505
    src/comm/ros_bridge/include/RosBridgeClient.h \
506 507 508 509 510 511 512 513 514 515 516
    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 \
517
    src/comm/ros_bridge/include/messages/std_msgs/time.h \
518 519
    src/comm/ros_bridge/include/topic_publisher.h \
    src/comm/ros_bridge/include/topic_subscriber.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
520
    src/comm/utilities.h
521 522 523 524 525 526

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

527
SOURCES += \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
528 529 530
    src/MeasurementComplexItem/geometry/GeoArea.cc \
    src/MeasurementComplexItem/geometry/MeasurementArea.cc \
    src/MeasurementComplexItem/geometry/SafeArea.cc \
531
    src/MeasurementComplexItem/geometry/geometry.cpp \
532 533
    src/MeasurementComplexItem/HashFunctions.cpp \
    src/MeasurementComplexItem/nemo_interface/MeasurementTile.cpp \
534
    src/Vehicle/VehicleEscStatusFactGroup.cc \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
535
    src/MeasurementComplexItem/AreaData.cc \
536 537 538 539
    src/api/QGCCorePlugin.cc \
    src/api/QGCOptions.cc \
    src/api/QGCSettings.cc \
    src/api/QmlComponentInfo.cc \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
540 541 542 543 544 545 546 547 548 549
    src/MeasurementComplexItem/MeasurementComplexItem.cc \
    src/MeasurementComplexItem/GenericSingelton.cpp \
    src/MeasurementComplexItem/RoutingThread.cpp \
    src/MeasurementComplexItem/CircularGenerator.cpp \
    src/MeasurementComplexItem/GeneratorBase.cc \
    src/MeasurementComplexItem/LinearGenerator.cpp \
    src/MeasurementComplexItem/geometry/clipper/clipper.cpp \
    src/MeasurementComplexItem/geometry/GeoPoint3D.cpp \
    src/MeasurementComplexItem/NemoInterface.cpp \
    src/MeasurementComplexItem/nemo_interface/QNemoProgress.cc \
550
    src/comm/QmlObjectListHelper.cpp \
551
    src/comm/ros_bridge/include/RosBridgeClient.cpp \
552
    src/comm/ros_bridge/include/com_private.cpp \
553 554 555 556 557 558 559
    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
560
    src/comm/ros_bridge/include/messages/std_msgs/header.cpp \
561
    src/comm/ros_bridge/include/messages/std_msgs/time.cpp \
562 563 564
    src/comm/ros_bridge/include/server.cpp \
    src/comm/ros_bridge/include/topic_publisher.cpp \
    src/comm/ros_bridge/include/topic_subscriber.cpp \
565
    src/Settings/WimaSettings.cc \
566
    src/comm/ros_bridge/src/ros_bridge.cpp
Gus Grubba's avatar
Gus Grubba committed
567

568 569 570 571 572
contains (DEFINES, QGC_ENABLE_PAIRING) {
    SOURCES += \
        src/PairingManager/aes.cpp
}

573 574 575 576
#
# Unit Test specific configuration goes here (requires full debug build with all plugins)
#

577
DebugBuild { PX4FirmwarePlugin { PX4FirmwarePluginFactory { APMFirmwarePlugin { APMFirmwarePluginFactory { !MobileBuild {
578 579 580 581 582 583
    DEFINES += UNITTEST_BUILD

    INCLUDEPATH += \
        src/qgcunittest

    HEADERS += \
584
        src/Audio/AudioOutputTest.h \
585 586 587 588
        src/FactSystem/FactSystemTestBase.h \
        src/FactSystem/FactSystemTestGeneric.h \
        src/FactSystem/FactSystemTestPX4.h \
        src/FactSystem/ParameterManagerTest.h \
589
        src/MissionManager/CameraCalcTest.h \
590
        src/MissionManager/CameraSectionTest.h \
591
        src/MissionManager/CorridorScanComplexItemTest.h \
592
        src/MissionManager/FWLandingPatternTest.h \
593 594
        src/MissionManager/LandingComplexItemTest.h \
        src/MissionManager/MissionCommandTreeEditorTest.h \
595 596
        src/MissionManager/MissionCommandTreeTest.h \
        src/MissionManager/MissionControllerManagerTest.h \
Gus Grubba's avatar
Gus Grubba committed
597
        src/MissionManager/MissionControllerTest.h \
598 599
        src/MissionManager/MissionItemTest.h \
        src/MissionManager/MissionManagerTest.h \
600
        src/MissionManager/MissionSettingsTest.h \
601
        src/MissionManager/PlanMasterControllerTest.h \
602
        src/MissionManager/QGCMapPolygonTest.h \
603
        src/MissionManager/QGCMapPolylineTest.h \
604
        src/MissionManager/SectionTest.h \
605
        src/MissionManager/SimpleMissionItemTest.h \
606
        src/MissionManager/SpeedSectionTest.h \
607
        src/MissionManager/StructureScanComplexItemTest.h \
608
        src/MissionManager/SurveyComplexItemTest.h \
609
        src/MissionManager/TransectStyleComplexItemTest.h \
610
        src/MissionManager/TransectStyleComplexItemTestBase.h \
611
        src/MissionManager/VisualMissionItemTest.h \
Gus Grubba's avatar
Gus Grubba committed
612
        src/qgcunittest/GeoTest.h \
613 614
        src/qgcunittest/MavlinkLogTest.h \
        src/qgcunittest/MultiSignalSpy.h \
615
        src/qgcunittest/MultiSignalSpyV2.h \
616
        src/qgcunittest/UnitTest.h \
617 618 619 620 621 622 623 624 625 626 627
        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 \
628 629

    SOURCES += \
630
        src/Audio/AudioOutputTest.cc \
631 632 633 634
        src/FactSystem/FactSystemTestBase.cc \
        src/FactSystem/FactSystemTestGeneric.cc \
        src/FactSystem/FactSystemTestPX4.cc \
        src/FactSystem/ParameterManagerTest.cc \
635
        src/MissionManager/CameraCalcTest.cc \
636
        src/MissionManager/CameraSectionTest.cc \
637
        src/MissionManager/CorridorScanComplexItemTest.cc \
638
        src/MissionManager/FWLandingPatternTest.cc \
639 640
        src/MissionManager/LandingComplexItemTest.cc \
        src/MissionManager/MissionCommandTreeEditorTest.cc \
641 642
        src/MissionManager/MissionCommandTreeTest.cc \
        src/MissionManager/MissionControllerManagerTest.cc \
Gus Grubba's avatar
Gus Grubba committed
643
        src/MissionManager/MissionControllerTest.cc \
644 645
        src/MissionManager/MissionItemTest.cc \
        src/MissionManager/MissionManagerTest.cc \
646
        src/MissionManager/MissionSettingsTest.cc \
647
        src/MissionManager/PlanMasterControllerTest.cc \
648
        src/MissionManager/QGCMapPolygonTest.cc \
649
        src/MissionManager/QGCMapPolylineTest.cc \
650
        src/MissionManager/SectionTest.cc \
651
        src/MissionManager/SimpleMissionItemTest.cc \
652
        src/MissionManager/SpeedSectionTest.cc \
653
        src/MissionManager/StructureScanComplexItemTest.cc \
654
        src/MissionManager/SurveyComplexItemTest.cc \
655
        src/MissionManager/TransectStyleComplexItemTest.cc \
656
        src/MissionManager/TransectStyleComplexItemTestBase.cc \
657
        src/MissionManager/VisualMissionItemTest.cc \
Gus Grubba's avatar
Gus Grubba committed
658
        src/qgcunittest/GeoTest.cc \
659 660
        src/qgcunittest/MavlinkLogTest.cc \
        src/qgcunittest/MultiSignalSpy.cc \
661
        src/qgcunittest/MultiSignalSpyV2.cc \
662 663
        src/qgcunittest/UnitTest.cc \
        src/qgcunittest/UnitTestList.cc \
664 665 666 667 668 669 670 671 672 673 674 675
        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 \

676 677 678 679
} } } } } }

# Main QGC Headers and Source files

680
HEADERS += \
681 682
    src/ADSB/ADSBVehicle.h \
    src/ADSB/ADSBVehicleManager.h \
683
    src/AnalyzeView/LogDownloadController.h \
684
    src/AnalyzeView/PX4LogParser.h \
685
    src/AnalyzeView/ULogParser.h \
686
    src/AnalyzeView/MavlinkConsoleController.h \
687
    src/Audio/AudioOutput.h \
688 689 690
    src/Camera/QGCCameraControl.h \
    src/Camera/QGCCameraIO.h \
    src/Camera/QGCCameraManager.h \
691
    src/CmdLineOptParser.h \
692
    src/FirmwarePlugin/PX4/px4_custom_mode.h \
Gus Grubba's avatar
Gus Grubba committed
693
    src/FollowMe/FollowMe.h \
694 695
    src/Joystick/Joystick.h \
    src/Joystick/JoystickManager.h \
Don Gagne's avatar
Don Gagne committed
696
    src/JsonHelper.h \
697 698
    src/KMLDomDocument.h \
    src/KMLHelper.h \
699
    src/LogCompressor.h \
700
    src/MissionManager/CameraCalc.h \
701
    src/MissionManager/CameraSection.h \
702
    src/MissionManager/CameraSpec.h \
703
    src/MissionManager/ComplexMissionItem.h \
704
    src/MissionManager/CorridorScanComplexItem.h \
705 706
    src/MissionManager/CorridorScanPlanCreator.h \
    src/MissionManager/BlankPlanCreator.h \
707
    src/MissionManager/FixedWingLandingComplexItem.h \
708 709
    src/MissionManager/GeoFenceController.h \
    src/MissionManager/GeoFenceManager.h \
710 711
    src/MissionManager/KMLPlanDomDocument.h \
    src/MissionManager/LandingComplexItem.h \
712
    src/MissionManager/MissionCommandList.h \
713 714
    src/MissionManager/MissionCommandTree.h \
    src/MissionManager/MissionCommandUIInfo.h \
715
    src/MissionManager/MissionController.h \
716 717
    src/MissionManager/MissionItem.h \
    src/MissionManager/MissionManager.h \
718
    src/MissionManager/MissionSettingsItem.h \
719
    src/MissionManager/PlanElementController.h \
720
    src/MissionManager/PlanCreator.h \
721
    src/MissionManager/PlanManager.h \
722
    src/MissionManager/PlanMasterController.h \
723 724 725
    src/MissionManager/QGCFenceCircle.h \
    src/MissionManager/QGCFencePolygon.h \
    src/MissionManager/QGCMapCircle.h \
726
    src/MissionManager/QGCMapPolygon.h \
727
    src/MissionManager/QGCMapPolyline.h \
728 729 730
    src/MissionManager/RallyPoint.h \
    src/MissionManager/RallyPointController.h \
    src/MissionManager/RallyPointManager.h \
731
    src/MissionManager/SimpleMissionItem.h \
732 733
    src/MissionManager/Section.h \
    src/MissionManager/SpeedSection.h \
734
    src/MissionManager/StructureScanComplexItem.h \
735
    src/MissionManager/StructureScanPlanCreator.h \
736
    src/MissionManager/SurveyComplexItem.h \
737 738
    src/MissionManager/SurveyPlanCreator.h \
    src/MissionManager/TakeoffMissionItem.h \
739
    src/MissionManager/TransectStyleComplexItem.h \
740
    src/MissionManager/VisualMissionItem.h \
741
    src/MissionManager/VTOLLandingComplexItem.h \
Gus Grubba's avatar
Gus Grubba committed
742 743
    src/PositionManager/PositionManager.h \
    src/PositionManager/SimulatedPosition.h \
744 745 746 747 748 749 750 751
    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 \
752 753 754 755
    src/QGC.h \
    src/QGCApplication.h \
    src/QGCComboBox.h \
    src/QGCConfig.h \
756
    src/QGCFileDownload.h \
757
    src/QGCLoggingCategory.h \
Don Gagne's avatar
Don Gagne committed
758
    src/QGCMapPalette.h \
759
    src/QGCPalette.h \
760
    src/QGCQGeoCoordinate.h \
761 762
    src/QGCTemporaryFile.h \
    src/QGCToolbox.h \
763
    src/QGCZlib.h \
764
    src/QmlControls/AppMessages.h \
765
    src/QmlControls/EditPositionDialogController.h \
766 767 768 769
    src/QmlControls/FlightPathSegment.h \
    src/QmlControls/HorizontalFactValueGrid.h \
    src/QmlControls/InstrumentValueData.h \
    src/QmlControls/FactValueGrid.h \
770
    src/QmlControls/ParameterEditorController.h \
771
    src/QmlControls/QGCFileDialogController.h \
Gus Grubba's avatar
Gus Grubba committed
772
    src/QmlControls/QGCImageProvider.h \
773 774
    src/QmlControls/QGroundControlQmlGlobal.h \
    src/QmlControls/QmlObjectListModel.h \
775
    src/QmlControls/QGCGeoBoundingCube.h \
Gus Grubba's avatar
Gus Grubba committed
776
    src/QmlControls/RCChannelMonitorController.h \
777
    src/QmlControls/RCToParamDialogController.h \
Gus Grubba's avatar
Gus Grubba committed
778
    src/QmlControls/ScreenToolsController.h \
779 780 781
    src/QmlControls/TerrainProfile.h \
    src/QmlControls/ToolStripAction.h \
    src/QmlControls/ToolStripActionList.h \
Gus Grubba's avatar
Gus Grubba committed
782
    src/QtLocationPlugin/QMLControl/QGCMapEngineManager.h \
783
    src/Settings/ADSBVehicleManagerSettings.h \
784 785
    src/Settings/AppSettings.h \
    src/Settings/AutoConnectSettings.h \
786
    src/Settings/BrandImageSettings.h \
787
    src/Settings/FirmwareUpgradeSettings.h \
788
    src/Settings/FlightMapSettings.h \
789
    src/Settings/FlyViewSettings.h \
790
    src/Settings/OfflineMapsSettings.h \
791
    src/Settings/PlanViewSettings.h \
Don Gagne's avatar
Don Gagne committed
792
    src/Settings/RTKSettings.h \
793 794 795 796
    src/Settings/SettingsGroup.h \
    src/Settings/SettingsManager.h \
    src/Settings/UnitsSettings.h \
    src/Settings/VideoSettings.h \
797 798
    src/ShapeFileHelper.h \
    src/SHPFileHelper.h \
799
    src/Terrain/TerrainQuery.h \
Andreas Bircher's avatar
Andreas Bircher committed
800
    src/TerrainTile.h \
801 802 803 804 805 806 807
    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
808
    src/Vehicle/MAVLinkLogManager.h \
809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826
    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
827 828 829 830
    src/VehicleSetup/JoystickConfigController.h \
    src/comm/LinkConfiguration.h \
    src/comm/LinkInterface.h \
    src/comm/LinkManager.h \
831
    src/comm/LogReplayLink.h \
Gus Grubba's avatar
Gus Grubba committed
832 833 834 835
    src/comm/MAVLinkProtocol.h \
    src/comm/QGCMAVLink.h \
    src/comm/TCPLink.h \
    src/comm/UDPLink.h \
Willian Galvani's avatar
Willian Galvani committed
836
    src/comm/UdpIODevice.h \
837 838 839
    src/uas/UAS.h \
    src/uas/UASInterface.h \
    src/uas/UASMessageHandler.h \
840 841
    src/AnalyzeView/GeoTagController.h \
    src/AnalyzeView/ExifParser.h \
842

843 844 845 846
contains (DEFINES, QGC_ENABLE_PAIRING) {
    HEADERS += \
        src/PairingManager/PairingManager.h \
}
847

848 849
AndroidBuild {
HEADERS += \
850
    src/Joystick/JoystickAndroid.h \
851 852
}

853 854 855
DebugBuild {
HEADERS += \
    src/comm/MockLink.h \
856
    src/comm/MockLinkFTP.h \
857 858 859
    src/comm/MockLinkMissionItemHandler.h \
}

860 861 862
WindowsBuild {
    PRECOMPILED_HEADER += src/stable_headers.h
    HEADERS += src/stable_headers.h
Daniel Agar's avatar
Daniel Agar committed
863
    CONFIG -= silent
864
    OTHER_FILES += .appveyor.yml
865 866
}

dogmaphobic's avatar
dogmaphobic committed
867
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
868 869
    HEADERS += \
    src/comm/BluetoothLink.h \
dogmaphobic's avatar
dogmaphobic committed
870
}
871

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

Gus Grubba's avatar
Gus Grubba committed
879
!NoSerialBuild {
880
HEADERS += \
881
    src/comm/QGCSerialPortInfo.h \
882 883 884 885 886
    src/comm/SerialLink.h \
}

!MobileBuild {
HEADERS += \
Gus Grubba's avatar
Gus Grubba committed
887
    src/GPS/Drivers/src/gps_helper.h \
888 889
    src/GPS/Drivers/src/rtcm.h \
    src/GPS/Drivers/src/ashtech.h \
Gus Grubba's avatar
Gus Grubba committed
890
    src/GPS/Drivers/src/ubx.h \
891
    src/GPS/Drivers/src/sbf.h \
Gus Grubba's avatar
Gus Grubba committed
892 893 894 895 896 897 898 899
    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 \
900
    src/RunGuard.h \
901 902
}

Don Gagne's avatar
Don Gagne committed
903 904 905 906
iOSBuild {
    OBJECTIVE_SOURCES += \
        src/MobileScreenMgr.mm \
}
907

Don Gagne's avatar
Don Gagne committed
908
AndroidBuild {
Don Gagne's avatar
Don Gagne committed
909
    SOURCES += src/MobileScreenMgr.cc \
910
    src/Joystick/JoystickAndroid.cc \
Don Gagne's avatar
Don Gagne committed
911 912
}

913
SOURCES += \
914 915
    src/ADSB/ADSBVehicle.cc \
    src/ADSB/ADSBVehicleManager.cc \
916
    src/AnalyzeView/LogDownloadController.cc \
917
    src/AnalyzeView/PX4LogParser.cc \
918
    src/AnalyzeView/ULogParser.cc \
919
    src/AnalyzeView/MavlinkConsoleController.cc \
920
    src/Audio/AudioOutput.cc \
921 922 923
    src/Camera/QGCCameraControl.cc \
    src/Camera/QGCCameraIO.cc \
    src/Camera/QGCCameraManager.cc \
924
    src/CmdLineOptParser.cc \
Gus Grubba's avatar
Gus Grubba committed
925
    src/FollowMe/FollowMe.cc \
926 927
    src/Joystick/Joystick.cc \
    src/Joystick/JoystickManager.cc \
Don Gagne's avatar
Don Gagne committed
928
    src/JsonHelper.cc \
929 930
    src/KMLDomDocument.cc \
    src/KMLHelper.cc \
931
    src/LogCompressor.cc \
932
    src/MissionManager/CameraCalc.cc \
933
    src/MissionManager/CameraSection.cc \
934
    src/MissionManager/CameraSpec.cc \
935
    src/MissionManager/ComplexMissionItem.cc \
936
    src/MissionManager/CorridorScanComplexItem.cc \
937 938
    src/MissionManager/CorridorScanPlanCreator.cc \
    src/MissionManager/BlankPlanCreator.cc \
939
    src/MissionManager/FixedWingLandingComplexItem.cc \
940 941
    src/MissionManager/GeoFenceController.cc \
    src/MissionManager/GeoFenceManager.cc \
942 943
    src/MissionManager/KMLPlanDomDocument.cc \
    src/MissionManager/LandingComplexItem.cc \
944
    src/MissionManager/MissionCommandList.cc \
945 946
    src/MissionManager/MissionCommandTree.cc \
    src/MissionManager/MissionCommandUIInfo.cc \
947
    src/MissionManager/MissionController.cc \
948 949
    src/MissionManager/MissionItem.cc \
    src/MissionManager/MissionManager.cc \
950
    src/MissionManager/MissionSettingsItem.cc \
951
    src/MissionManager/PlanElementController.cc \
952
    src/MissionManager/PlanCreator.cc \
953
    src/MissionManager/PlanManager.cc \
954
    src/MissionManager/PlanMasterController.cc \
955 956 957
    src/MissionManager/QGCFenceCircle.cc \
    src/MissionManager/QGCFencePolygon.cc \
    src/MissionManager/QGCMapCircle.cc \
958
    src/MissionManager/QGCMapPolygon.cc \
959
    src/MissionManager/QGCMapPolyline.cc \
960 961 962
    src/MissionManager/RallyPoint.cc \
    src/MissionManager/RallyPointController.cc \
    src/MissionManager/RallyPointManager.cc \
963
    src/MissionManager/SimpleMissionItem.cc \
964
    src/MissionManager/SpeedSection.cc \
965
    src/MissionManager/StructureScanComplexItem.cc \
966
    src/MissionManager/StructureScanPlanCreator.cc \
967
    src/MissionManager/SurveyComplexItem.cc \
968 969
    src/MissionManager/SurveyPlanCreator.cc \
    src/MissionManager/TakeoffMissionItem.cc \
970
    src/MissionManager/TransectStyleComplexItem.cc \
971
    src/MissionManager/VisualMissionItem.cc \
972
    src/MissionManager/VTOLLandingComplexItem.cc \
Gus Grubba's avatar
Gus Grubba committed
973 974
    src/PositionManager/PositionManager.cpp \
    src/PositionManager/SimulatedPosition.cc \
975 976 977 978 979 980 981
    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 \
982 983 984
    src/QGC.cc \
    src/QGCApplication.cc \
    src/QGCComboBox.cc \
985
    src/QGCFileDownload.cc \
986
    src/QGCLoggingCategory.cc \
Don Gagne's avatar
Don Gagne committed
987
    src/QGCMapPalette.cc \
988
    src/QGCPalette.cc \
989
    src/QGCQGeoCoordinate.cc \
990 991
    src/QGCTemporaryFile.cc \
    src/QGCToolbox.cc \
992
    src/QGCZlib.cc \
993
    src/QmlControls/AppMessages.cc \
994
    src/QmlControls/EditPositionDialogController.cc \
995 996 997 998
    src/QmlControls/FlightPathSegment.cc \
    src/QmlControls/HorizontalFactValueGrid.cc \
    src/QmlControls/InstrumentValueData.cc \
    src/QmlControls/FactValueGrid.cc \
999
    src/QmlControls/ParameterEditorController.cc \
1000
    src/QmlControls/QGCFileDialogController.cc \
Gus Grubba's avatar
Gus Grubba committed
1001
    src/QmlControls/QGCImageProvider.cc \
1002 1003
    src/QmlControls/QGroundControlQmlGlobal.cc \
    src/QmlControls/QmlObjectListModel.cc \
1004
    src/QmlControls/QGCGeoBoundingCube.cc \
Gus Grubba's avatar
Gus Grubba committed
1005
    src/QmlControls/RCChannelMonitorController.cc \
1006
    src/QmlControls/RCToParamDialogController.cc \
Gus Grubba's avatar
Gus Grubba committed
1007
    src/QmlControls/ScreenToolsController.cc \
1008 1009 1010
    src/QmlControls/TerrainProfile.cc \
    src/QmlControls/ToolStripAction.cc \
    src/QmlControls/ToolStripActionList.cc \
Gus Grubba's avatar
Gus Grubba committed
1011
    src/QtLocationPlugin/QMLControl/QGCMapEngineManager.cc \
1012
    src/Settings/ADSBVehicleManagerSettings.cc \
1013 1014
    src/Settings/AppSettings.cc \
    src/Settings/AutoConnectSettings.cc \
1015
    src/Settings/BrandImageSettings.cc \
1016
    src/Settings/FirmwareUpgradeSettings.cc \
1017
    src/Settings/FlightMapSettings.cc \
1018
    src/Settings/FlyViewSettings.cc \
1019
    src/Settings/OfflineMapsSettings.cc \
1020
    src/Settings/PlanViewSettings.cc \
Don Gagne's avatar
Don Gagne committed
1021
    src/Settings/RTKSettings.cc \
1022 1023 1024 1025
    src/Settings/SettingsGroup.cc \
    src/Settings/SettingsManager.cc \
    src/Settings/UnitsSettings.cc \
    src/Settings/VideoSettings.cc \
1026 1027
    src/ShapeFileHelper.cc \
    src/SHPFileHelper.cc \
1028
    src/Terrain/TerrainQuery.cc \
Andreas Bircher's avatar
Andreas Bircher committed
1029
    src/TerrainTile.cc\
1030 1031 1032 1033 1034 1035 1036
    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
1037
    src/Vehicle/MAVLinkLogManager.cc \
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055
    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
1056 1057
    src/VehicleSetup/JoystickConfigController.cc \
    src/comm/LinkConfiguration.cc \
1058
    src/comm/LinkInterface.cc \
Gus Grubba's avatar
Gus Grubba committed
1059
    src/comm/LinkManager.cc \
1060
    src/comm/LogReplayLink.cc \
Gus Grubba's avatar
Gus Grubba committed
1061 1062 1063 1064
    src/comm/MAVLinkProtocol.cc \
    src/comm/QGCMAVLink.cc \
    src/comm/TCPLink.cc \
    src/comm/UDPLink.cc \
Willian Galvani's avatar
Willian Galvani committed
1065
    src/comm/UdpIODevice.cc \
Gus Grubba's avatar
Gus Grubba committed
1066
    src/main.cc \
1067 1068
    src/uas/UAS.cc \
    src/uas/UASMessageHandler.cc \
1069 1070 1071 1072 1073 1074 1075
    src/AnalyzeView/GeoTagController.cc \
    src/AnalyzeView/ExifParser.cc \

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

1077 1078 1079
DebugBuild {
SOURCES += \
    src/comm/MockLink.cc \
1080
    src/comm/MockLinkFTP.cc \
1081 1082 1083
    src/comm/MockLinkMissionItemHandler.cc \
}

Gus Grubba's avatar
Gus Grubba committed
1084
!NoSerialBuild {
1085
SOURCES += \
1086
    src/comm/QGCSerialPortInfo.cc \
1087 1088 1089
    src/comm/SerialLink.cc \
}

dogmaphobic's avatar
dogmaphobic committed
1090
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
1091 1092 1093 1094
    SOURCES += \
    src/comm/BluetoothLink.cc \
}

1095 1096 1097 1098 1099 1100 1101
contains (DEFINES, QGC_ENABLE_PAIRING) {
    contains(DEFINES, QGC_ENABLE_QTNFC) {
        SOURCES += \
        src/PairingManager/QtNFC.cc
    }
}

1102 1103
!MobileBuild {
SOURCES += \
Gus Grubba's avatar
Gus Grubba committed
1104
    src/GPS/Drivers/src/gps_helper.cpp \
1105 1106
    src/GPS/Drivers/src/rtcm.cpp \
    src/GPS/Drivers/src/ashtech.cpp \
Gus Grubba's avatar
Gus Grubba committed
1107
    src/GPS/Drivers/src/ubx.cpp \
1108
    src/GPS/Drivers/src/sbf.cpp \
Gus Grubba's avatar
Gus Grubba committed
1109 1110 1111 1112
    src/GPS/GPSManager.cc \
    src/GPS/GPSProvider.cc \
    src/GPS/RTCM/RTCMMavlink.cc \
    src/Joystick/JoystickSDL.cc \
1113
    src/RunGuard.cc \
1114
}
1115 1116 1117 1118 1119 1120

#
# Firmware Plugin Support
#

INCLUDEPATH += \
Don Gagne's avatar
Don Gagne committed
1121
    src/AutoPilotPlugins/Common \
1122 1123 1124 1125 1126
    src/FirmwarePlugin \
    src/VehicleSetup \

HEADERS+= \
    src/AutoPilotPlugins/AutoPilotPlugin.h \
Gus Grubba's avatar
Gus Grubba committed
1127 1128
    src/AutoPilotPlugins/Common/ESP8266Component.h \
    src/AutoPilotPlugins/Common/ESP8266ComponentController.h \
Don Gagne's avatar
Don Gagne committed
1129
    src/AutoPilotPlugins/Common/MotorComponent.h \
Don Gagne's avatar
Don Gagne committed
1130
    src/AutoPilotPlugins/Common/RadioComponentController.h \
1131 1132
    src/AutoPilotPlugins/Common/SyslinkComponent.h \
    src/AutoPilotPlugins/Common/SyslinkComponentController.h \
1133
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.h \
1134
    src/FirmwarePlugin/CameraMetaData.h \
1135
    src/FirmwarePlugin/FirmwarePlugin.h \
Gus Grubba's avatar
Gus Grubba committed
1136
    src/FirmwarePlugin/FirmwarePluginManager.h \
1137 1138
    src/VehicleSetup/VehicleComponent.h \

1139
!MobileBuild { !NoSerialBuild {
Gus Grubba's avatar
Gus Grubba committed
1140 1141 1142 1143 1144
    HEADERS += \
        src/VehicleSetup/Bootloader.h \
        src/VehicleSetup/FirmwareImage.h \
        src/VehicleSetup/FirmwareUpgradeController.h \
        src/VehicleSetup/PX4FirmwareUpgradeThread.h \
1145
}}
1146 1147 1148

SOURCES += \
    src/AutoPilotPlugins/AutoPilotPlugin.cc \
Gus Grubba's avatar
Gus Grubba committed
1149 1150
    src/AutoPilotPlugins/Common/ESP8266Component.cc \
    src/AutoPilotPlugins/Common/ESP8266ComponentController.cc \
Don Gagne's avatar
Don Gagne committed
1151
    src/AutoPilotPlugins/Common/MotorComponent.cc \
Don Gagne's avatar
Don Gagne committed
1152
    src/AutoPilotPlugins/Common/RadioComponentController.cc \
1153 1154
    src/AutoPilotPlugins/Common/SyslinkComponent.cc \
    src/AutoPilotPlugins/Common/SyslinkComponentController.cc \
dogmaphobic's avatar