qgroundcontrol.pro 53 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 \
420
    src/Terrain \
421
    src/Vehicle \
422
    src/Audio \
Gus Grubba's avatar
Gus Grubba committed
423
    src/comm \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
424 425
    src/MeasurementComplexItem \
    src/MeasurementComplexItem/geometry \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
426
    src/MeasurementComplexItem/nemo_interface \
427
    src/comm/ros_bridge \
Gus Grubba's avatar
Gus Grubba committed
428 429
    src/input \
    src/lib/qmapcontrol \
430 431 432 433 434 435 436 437 438 439
    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 \

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

Gus Grubba's avatar
Gus Grubba committed
445 446 447 448 449
#
# Plugin API
#

HEADERS += \
450
    src/QmlControls/QmlUnitsConversion.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
451 452 453
    src/MeasurementComplexItem/geometry/GeoArea.h \
    src/MeasurementComplexItem/geometry/MeasurementArea.h \
    src/MeasurementComplexItem/geometry/SafeArea.h \
454
    src/Vehicle/VehicleEscStatusFactGroup.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
455 456 457 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
    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/snake.h \
    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/SnakeTile.h \
    src/MeasurementComplexItem/nemo_interface/SnakeTileLocal.h \
    src/MeasurementComplexItem/nemo_interface/SnakeTiles.h \
    src/MeasurementComplexItem/nemo_interface/SnakeTilesLocal.h \
    src/MeasurementComplexItem/call_once.h \
497 498
    src/api/QGCCorePlugin.h \
    src/api/QGCOptions.h \
Gus Grubba's avatar
Gus Grubba committed
499
    src/api/QGCSettings.h \
500
    src/api/QmlComponentInfo.h \
501
    src/GPS/Drivers/src/base_station.h \
502
    src/Settings/WimaSettings.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
503
    src/comm/ros_bridge/include/RosBridgeClient.h \
504 505 506 507 508 509 510 511 512 513 514
    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 \
515
    src/comm/ros_bridge/include/messages/std_msgs/time.h \
516 517
    src/comm/ros_bridge/include/topic_publisher.h \
    src/comm/ros_bridge/include/topic_subscriber.h \
Valentin Platzgummer's avatar
Valentin Platzgummer committed
518
    src/comm/utilities.h
519 520 521 522 523 524

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

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

564 565 566 567 568
contains (DEFINES, QGC_ENABLE_PAIRING) {
    SOURCES += \
        src/PairingManager/aes.cpp
}

569 570 571 572
#
# Unit Test specific configuration goes here (requires full debug build with all plugins)
#

573
DebugBuild { PX4FirmwarePlugin { PX4FirmwarePluginFactory { APMFirmwarePlugin { APMFirmwarePluginFactory { !MobileBuild {
574 575 576 577 578 579
    DEFINES += UNITTEST_BUILD

    INCLUDEPATH += \
        src/qgcunittest

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

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

672 673 674 675
} } } } } }

# Main QGC Headers and Source files

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

839 840 841 842
contains (DEFINES, QGC_ENABLE_PAIRING) {
    HEADERS += \
        src/PairingManager/PairingManager.h \
}
843

844 845
AndroidBuild {
HEADERS += \
846
    src/Joystick/JoystickAndroid.h \
847 848
}

849 850 851
DebugBuild {
HEADERS += \
    src/comm/MockLink.h \
852
    src/comm/MockLinkFTP.h \
853 854 855
    src/comm/MockLinkMissionItemHandler.h \
}

856 857 858
WindowsBuild {
    PRECOMPILED_HEADER += src/stable_headers.h
    HEADERS += src/stable_headers.h
Daniel Agar's avatar
Daniel Agar committed
859
    CONFIG -= silent
860
    OTHER_FILES += .appveyor.yml
861 862
}

dogmaphobic's avatar
dogmaphobic committed
863
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
864 865
    HEADERS += \
    src/comm/BluetoothLink.h \
dogmaphobic's avatar
dogmaphobic committed
866
}
867

868 869 870 871 872 873 874
contains (DEFINES, QGC_ENABLE_PAIRING) {
    contains(DEFINES, QGC_ENABLE_QTNFC) {
        HEADERS += \
            src/PairingManager/QtNFC.h
    }
}

Gus Grubba's avatar
Gus Grubba committed
875
!NoSerialBuild {
876
HEADERS += \
877
    src/comm/QGCSerialPortInfo.h \
878 879 880 881 882
    src/comm/SerialLink.h \
}

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

Don Gagne's avatar
Don Gagne committed
899 900 901 902
iOSBuild {
    OBJECTIVE_SOURCES += \
        src/MobileScreenMgr.mm \
}
903

Don Gagne's avatar
Don Gagne committed
904
AndroidBuild {
Don Gagne's avatar
Don Gagne committed
905
    SOURCES += src/MobileScreenMgr.cc \
906
    src/Joystick/JoystickAndroid.cc \
Don Gagne's avatar
Don Gagne committed
907 908
}

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

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

1073 1074 1075
DebugBuild {
SOURCES += \
    src/comm/MockLink.cc \
1076
    src/comm/MockLinkFTP.cc \
1077 1078 1079
    src/comm/MockLinkMissionItemHandler.cc \
}

Gus Grubba's avatar
Gus Grubba committed
1080
!NoSerialBuild {
1081
SOURCES += \
1082
    src/comm/QGCSerialPortInfo.cc \
1083 1084 1085
    src/comm/SerialLink.cc \
}

dogmaphobic's avatar
dogmaphobic committed
1086
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
dogmaphobic's avatar
dogmaphobic committed
1087 1088 1089 1090
    SOURCES += \
    src/comm/BluetoothLink.cc \
}

1091 1092 1093 1094 1095 1096 1097
contains (DEFINES, QGC_ENABLE_PAIRING) {
    contains(DEFINES, QGC_ENABLE_QTNFC) {
        SOURCES += \
        src/PairingManager/QtNFC.cc
    }
}

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

#
# Firmware Plugin Support
#

INCLUDEPATH += \
Don Gagne's avatar
Don Gagne committed
1117
    src/AutoPilotPlugins/Common \
1118 1119 1120 1121 1122
    src/FirmwarePlugin \
    src/VehicleSetup \

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

1135
!MobileBuild { !NoSerialBuild {
Gus Grubba's avatar
Gus Grubba committed
1136 1137 1138 1139 1140
    HEADERS += \
        src/VehicleSetup/Bootloader.h \
        src/VehicleSetup/FirmwareImage.h \
        src/VehicleSetup/FirmwareUpgradeController.h \
        src/VehicleSetup/PX4FirmwareUpgradeThread.h \
1141
}}
1142 1143 1144

SOURCES += \
    src/AutoPilotPlugins/AutoPilotPlugin.cc \
Gus Grubba's avatar
Gus Grubba committed
1145 1146
    src/AutoPilotPlugins/Common/ESP8266Component.cc \
    src/AutoPilotPlugins/Common/ESP8266ComponentController.cc \
Don Gagne's avatar
Don Gagne committed
1147
    src/AutoPilotPlugins/Common/MotorComponent.cc \
Don Gagne's avatar
Don Gagne committed
1148
    src/AutoPilotPlugins/Common/RadioComponentController.cc \
1149 1150
    src/AutoPilotPlugins/Common/SyslinkComponent.cc \
    src/AutoPilotPlugins/Common/SyslinkComponentController.cc \
1151
    src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.cc \
1152
    src/FirmwarePlugin/CameraMetaData.cc \
1153
    src/FirmwarePlugin/FirmwarePlugin.cc \
1154 1155 1156
    src/FirmwarePlugin/FirmwarePluginManager.cc \
    src/VehicleSetup/VehicleComponent.cc \

1157
!MobileBuild { !NoSerialBuild {
1158