加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
qgroundcontrol.pro 42.98 KB
一键复制 编辑 原始数据 按行查看 历史
Holden 提交于 2024-04-02 04:22 . Remove Qt5 Compatibility Module
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309
################################################################################
#
# (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
# DEFINES += QGC_AIRLINK_DISABLED
message ("ANDROID_TARGET_ARCH $${ANDROID_TARGET_ARCH} $${QT_ARCH}")
exists($${OUT_PWD}/qgroundcontrol.pro) {
error("You must use shadow build (e.g. mkdir build; cd build; qmake ../qgroundcontrol.pro).")
}
message(Qt version $$[QT_VERSION])
!contains(CONFIG, DISABLE_QT_VERSION_CHECK) {
!equals(QT_MAJOR_VERSION, 6) | !equals(QT_MINOR_VERSION, 6) {
error("Unsupported Qt version, 6.6 is required. Found $$QT_MAJOR_VERSION.$$QT_MINOR_VERSION")
}
}
include(QGCCommon.pri)
TARGET = QGroundControl
TEMPLATE = app
QGCROOT = $$PWD
QML_IMPORT_PATH += $$PWD/src/QmlControls
#
# OS Specific settings
#
MacBuild {
QMAKE_INFO_PLIST = deploy/mac/Custom-Info.plist
ICON = $${SOURCE_DIR}/resources/icons/macx.icns
OTHER_FILES += deploy/mac/Custom-Info.plist
LIBS += -framework ApplicationServices
}
LinuxBuild {
CONFIG += qesp_linux_udev
system("$$QMAKE_LINK -fuse-ld=gold -Wl,--version &>/dev/null") {
CONFIG += use_gold_linker
}
}
WindowsBuild {
RC_ICONS = resources/icons/qgroundcontrol.ico
CONFIG += resources_big
}
#
# Branding
#
QGC_APP_NAME = "QGroundControl"
QGC_ORG_NAME = "QGroundControl.org"
QGC_ORG_DOMAIN = "org.qgroundcontrol"
QGC_APP_DESCRIPTION = "Open source ground control app provided by QGroundControl dev team"
QGC_APP_COPYRIGHT = "Copyright (C) 2019 QGroundControl Development Team. All rights reserved."
WindowsBuild {
QGC_INSTALLER_SCRIPT = "$$SOURCE_DIR\\deploy\\windows\\nullsoft_installer.nsi"
QGC_INSTALLER_ICON = "$$SOURCE_DIR\\deploy\\windows\\WindowsQGC.ico"
QGC_INSTALLER_HEADER_BITMAP = "$$SOURCE_DIR\\deploy\\windows\\installheader.bmp"
QGC_INSTALLER_DRIVER_MSI = "$$SOURCE_DIR\\deploy\\windows\\driver.msi"
}
# 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)))
}
#
# 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)
}
}
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}"
}
#-------------------------------------------------------------------------------------
# iOS
iOSBuild {
contains (CONFIG, DISABLE_BUILTIN_IOS) {
message("Skipping builtin support for iOS")
} else {
LIBS += -framework AVFoundation
#-- Info.plist (need an "official" one for the App Store)
ForAppStore {
message(App Store Build)
#-- Create official, versioned Info.plist
APP_STORE = $$system(cd $${SOURCE_DIR} && $${SOURCE_DIR}/tools/update_ios_version.sh $${SOURCE_DIR}/deploy/ios/iOSForAppStore-Info-Source.plist $${SOURCE_DIR}/ios/deploy/iOSForAppStore-Info.plist)
APP_ERROR = $$find(APP_STORE, "Error")
count(APP_ERROR, 1) {
error("Error building .plist file. 'ForAppStore' builds are only possible through the official build system.")
}
QT += qml-private
QMAKE_INFO_PLIST = $${SOURCE_DIR}/ios/deploy/iOSForAppStore-Info.plist
OTHER_FILES += $${SOURCE_DIR}/ios/deploy/iOSForAppStore-Info.plist
} else {
QMAKE_INFO_PLIST = $${SOURCE_DIR}/ios/deploy/iOS-Info.plist
OTHER_FILES += $${SOURCE_DIR}/ios/deploy/iOS-Info.plist
}
QMAKE_ASSET_CATALOGS += ios/deploy/Images.xcassets
BUNDLE.files = ios/deploy/QGCLaunchScreen.xib $$QMAKE_INFO_PLIST
QMAKE_BUNDLE_DATA += BUNDLE
}
}
#
# 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
}
# Bluetooth
contains (DEFINES, QGC_DISABLE_BLUETOOTH) {
message("Bluetooth support disabled (manual override from command line)")
DEFINES -= QGC_ENABLE_BLUETOOTH
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, QGC_DISABLE_BLUETOOTH) {
message("Bluetooth support disabled (manual override from user_config.pri)")
DEFINES -= QGC_ENABLE_BLUETOOTH
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, QGC_ENABLE_BLUETOOTH) {
DEFINES += QGC_ENABLE_BLUETOOTH
}
# 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
}
# USB Camera and UVC Video Sources
contains (DEFINES, QGC_DISABLE_UVC) {
message("Skipping support for UVC devices (manual override from command line)")
DEFINES += QGC_DISABLE_UVC
} 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)")
DEFINES += QGC_DISABLE_UVC
} 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
}
}
LinuxBuild {
CONFIG += link_pkgconfig
}
# Qt configuration
CONFIG += qt \
thread
DebugBuild {
CONFIG -= qtquickcompiler
} else {
CONFIG += qtquickcompiler
}
contains(DEFINES, ENABLE_VERBOSE_OUTPUT) {
message("Enable verbose compiler output (manual override from command line)")
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, ENABLE_VERBOSE_OUTPUT) {
message("Enable verbose compiler output (manual override from user_config.pri)")
} else {
CONFIG += silent
}
QT += \
concurrent \
gui \
location \
network \
opengl \
positioning \
qml \
quick \
quickcontrols2 \
quickwidgets \
sql \
svg \
widgets \
xml \
texttospeech \
core-private \
quick3d
# Multimedia only used if QVC is enabled
!contains (DEFINES, QGC_DISABLE_UVC) {
QT += \
multimedia
}
!iOSBuild {
QT += \
serialport \
}
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
QT += \
bluetooth \
}
contains(DEFINES, QGC_ENABLE_QTNFC) {
QT += \
nfc \
}
#
# Build-specific settings
#
DebugBuild {
!iOSBuild {
CONFIG += console
}
}
#
# Our QtLocation "plugin"
#
include(src/QtLocationPlugin/QGCLocationPlugin.pri)
#
# External library configuration
#
include(QGCExternalLibs.pri)
#
# Resources (custom code can replace them)
#
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
}
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
}
} else {
DEFINES += QGC_APPLICATION_NAME=\"\\\"QGroundControl\\\"\"
DEFINES += QGC_ORG_NAME=\"\\\"QGroundControl.org\\\"\"
DEFINES += QGC_ORG_DOMAIN=\"\\\"org.qgroundcontrol\\\"\"
RESOURCES += \
$$PWD/qgroundcontrol.qrc \
$$PWD/qgcresources.qrc \
$$PWD/qgcimages.qrc \
$$PWD/resources/InstrumentValueIcons/InstrumentValueIcons.qrc \
}
#
# Main QGroundControl portion of project file
#
DEPENDPATH += \
. \
plugins
INCLUDEPATH += .
INCLUDEPATH += \
include/ui \
src \
src/ADSB \
src/api \
src/AnalyzeView \
src/Camera \
src/Compression \
src/AutoPilotPlugins \
src/FlightDisplay \
src/FlightMap \
src/FlightMap/Widgets \
src/FollowMe \
src/Geo \
src/GPS \
src/Joystick \
src/PlanView \
src/MissionManager \
src/PositionManager \
src/QmlControls \
src/QtLocationPlugin \
src/QtLocationPlugin/QMLControl \
src/Settings \
src/Terrain \
src/Vehicle \
src/Vehicle/Actuators \
src/Audio \
src/comm \
src/input \
src/lib/qmapcontrol \
src/uas \
src/ui \
src/ui/linechart \
src/ui/map \
src/ui/mapdisplay \
src/ui/mission \
src/ui/px4_configuration \
src/ui/toolbar \
src/ui/uas \
src/Viewer3D \
src/Utilities
#
# Plugin API
#
HEADERS += \
src/QmlControls/CustomAction.h \
src/QmlControls/CustomActionManager.h \
src/QmlControls/QmlUnitsConversion.h \
src/Vehicle/VehicleEscStatusFactGroup.h \
src/api/QGCCorePlugin.h \
src/api/QGCOptions.h \
src/api/QGCSettings.h \
src/api/QmlComponentInfo.h \
src/GPS/Drivers/src/base_station.h \
SOURCES += \
src/QmlControls/CustomActionManager.cc \
src/Vehicle/VehicleEscStatusFactGroup.cc \
src/api/QGCCorePlugin.cc \
src/api/QGCOptions.cc \
src/api/QGCSettings.cc \
src/api/QmlComponentInfo.cc \
# Main QGC Headers and Source files
HEADERS += \
src/ADSB/ADSBVehicle.h \
src/ADSB/ADSBVehicleManager.h \
src/AnalyzeView/LogDownloadController.h \
src/AnalyzeView/PX4LogParser.h \
src/AnalyzeView/ULogParser.h \
src/AnalyzeView/MavlinkConsoleController.h \
src/Audio/AudioOutput.h \
src/Vehicle/Autotune.h \
src/Camera/MavlinkCameraControl.h \
src/Camera/SimulatedCameraControl.h \
src/Camera/VehicleCameraControl.h \
src/Camera/QGCCameraIO.h \
src/Camera/QGCCameraManager.h \
src/CmdLineOptParser.h \
src/Compression/QGCLZMA.h \
src/Compression/QGCZlib.h \
src/FirmwarePlugin/PX4/px4_custom_mode.h \
src/FollowMe/FollowMe.h \
src/Joystick/Joystick.h \
src/Joystick/JoystickManager.h \
src/Utilities/JsonHelper.h \
src/MissionManager/KMLDomDocument.h \
src/MissionManager/KMLHelper.h \
src/MissionManager/CameraCalc.h \
src/MissionManager/CameraSection.h \
src/MissionManager/CameraSpec.h \
src/MissionManager/ComplexMissionItem.h \
src/MissionManager/CorridorScanComplexItem.h \
src/MissionManager/CorridorScanPlanCreator.h \
src/MissionManager/BlankPlanCreator.h \
src/MissionManager/FixedWingLandingComplexItem.h \
src/MissionManager/GeoFenceController.h \
src/MissionManager/GeoFenceManager.h \
src/MissionManager/KMLPlanDomDocument.h \
src/MissionManager/LandingComplexItem.h \
src/MissionManager/MissionCommandList.h \
src/MissionManager/MissionCommandTree.h \
src/MissionManager/MissionCommandUIInfo.h \
src/MissionManager/MissionController.h \
src/MissionManager/MissionItem.h \
src/MissionManager/MissionManager.h \
src/MissionManager/MissionSettingsItem.h \
src/MissionManager/PlanElementController.h \
src/MissionManager/PlanCreator.h \
src/MissionManager/PlanManager.h \
src/MissionManager/PlanMasterController.h \
src/MissionManager/QGCFenceCircle.h \
src/MissionManager/QGCFencePolygon.h \
src/MissionManager/QGCMapCircle.h \
src/MissionManager/QGCMapPolygon.h \
src/MissionManager/QGCMapPolyline.h \
src/MissionManager/RallyPoint.h \
src/MissionManager/RallyPointController.h \
src/MissionManager/RallyPointManager.h \
src/MissionManager/SimpleMissionItem.h \
src/MissionManager/Section.h \
src/MissionManager/SpeedSection.h \
src/MissionManager/StructureScanComplexItem.h \
src/MissionManager/StructureScanPlanCreator.h \
src/MissionManager/SurveyComplexItem.h \
src/MissionManager/SurveyPlanCreator.h \
src/MissionManager/TakeoffMissionItem.h \
src/MissionManager/TransectStyleComplexItem.h \
src/MissionManager/VisualMissionItem.h \
src/MissionManager/VTOLLandingComplexItem.h \
src/PositionManager/PositionManager.h \
src/PositionManager/SimulatedPosition.h \
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 \
src/Utilities/QGC.h \
src/QGCApplication.h \
src/Utilities/QGCCachedFileDownload.h \
src/QGCConfig.h \
src/Utilities/QGCFileDownload.h \
src/Utilities/QGCLoggingCategory.h \
src/QmlControls/QGCMapPalette.h \
src/QmlControls/QGCPalette.h \
src/Utilities/QGCQGeoCoordinate.h \
src/Utilities/QGCTemporaryFile.h \
src/QGCToolbox.h \
src/QmlControls/AppMessages.h \
src/QmlControls/EditPositionDialogController.h \
src/QmlControls/FlightPathSegment.h \
src/QmlControls/HorizontalFactValueGrid.h \
src/QmlControls/InstrumentValueData.h \
src/QmlControls/FactValueGrid.h \
src/QmlControls/ParameterEditorController.h \
src/QmlControls/QGCFileDialogController.h \
src/QmlControls/QGCImageProvider.h \
src/QmlControls/QGroundControlQmlGlobal.h \
src/QmlControls/QmlObjectListModel.h \
src/QmlControls/QGCGeoBoundingCube.h \
src/QmlControls/RCChannelMonitorController.h \
src/QmlControls/RCToParamDialogController.h \
src/QmlControls/ScreenToolsController.h \
src/QmlControls/TerrainProfile.h \
src/QmlControls/ToolStripAction.h \
src/QmlControls/ToolStripActionList.h \
src/QtLocationPlugin/QMLControl/QGCMapEngineManager.h \
src/Settings/ADSBVehicleManagerSettings.h \
src/Settings/AppSettings.h \
src/Settings/AutoConnectSettings.h \
src/Settings/BatteryIndicatorSettings.h \
src/Settings/BrandImageSettings.h \
src/Settings/CustomMavlinkActionsSettings.h \
src/Settings/RemoteIDSettings.h \
src/Settings/FirmwareUpgradeSettings.h \
src/Settings/FlightMapSettings.h \
src/Settings/FlightModeSettings.h \
src/Settings/FlyViewSettings.h \
src/Settings/MapsSettings.h \
src/Settings/OfflineMapsSettings.h \
src/Settings/PlanViewSettings.h \
src/Settings/RTKSettings.h \
src/Settings/SettingsGroup.h \
src/Settings/SettingsManager.h \
src/Settings/UnitsSettings.h \
src/Settings/VideoSettings.h \
src/Utilities/ShapeFileHelper.h \
src/Utilities/SHPFileHelper.h \
src/Terrain/TerrainQuery.h \
src/Terrain/TerrainTile.h \
src/Vehicle/Actuators/ActuatorActions.h \
src/Vehicle/Actuators/Actuators.h \
src/Vehicle/Actuators/ActuatorOutputs.h \
src/Vehicle/Actuators/ActuatorTesting.h \
src/Vehicle/Actuators/Common.h \
src/Vehicle/Actuators/GeometryImage.h \
src/Vehicle/Actuators/Mixer.h \
src/Vehicle/Actuators/MotorAssignment.h \
src/Vehicle/CompInfo.h \
src/Vehicle/CompInfoActuators.h \
src/Vehicle/CompInfoEvents.h \
src/Vehicle/CompInfoParam.h \
src/Vehicle/CompInfoGeneral.h \
src/Vehicle/ComponentInformationCache.h \
src/Vehicle/ComponentInformationManager.h \
src/Vehicle/ComponentInformationTranslation.h \
src/Vehicle/EventHandler.h \
src/Vehicle/FTPManager.h \
src/Vehicle/GPSRTKFactGroup.h \
src/Vehicle/HealthAndArmingCheckReport.h \
src/Vehicle/ImageProtocolManager.h \
src/Vehicle/InitialConnectStateMachine.h \
src/Vehicle/MAVLinkLogManager.h \
src/Vehicle/MAVLinkStreamConfig.h \
src/Vehicle/MultiVehicleManager.h \
src/Vehicle/RemoteIDManager.h \
src/Vehicle/StateMachine.h \
src/Vehicle/StandardModes.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/VehicleLocalPositionFactGroup.h \
src/Vehicle/VehicleLocalPositionSetpointFactGroup.h \
src/Vehicle/VehicleGPSFactGroup.h \
src/Vehicle/VehicleGPS2FactGroup.h \
src/Vehicle/VehicleLinkManager.h \
src/Vehicle/VehicleSetpointFactGroup.h \
src/Vehicle/VehicleTemperatureFactGroup.h \
src/Vehicle/VehicleVibrationFactGroup.h \
src/Vehicle/VehicleWindFactGroup.h \
src/Vehicle/VehicleHygrometerFactGroup.h \
src/Vehicle/VehicleGeneratorFactGroup.h \
src/Vehicle/VehicleEFIFactGroup.h \
src/VehicleSetup/JoystickConfigController.h \
src/comm/LinkConfiguration.h \
src/comm/LinkInterface.h \
src/comm/LinkManager.h \
src/comm/LogReplayLink.h \
src/comm/MAVLinkProtocol.h \
src/comm/QGCMAVLink.h \
src/comm/TCPLink.h \
src/comm/UDPLink.h \
src/comm/UdpIODevice.h \
src/Vehicle/UASMessageHandler.h \
src/AnalyzeView/GeoTagController.h \
src/AnalyzeView/ExifParser.h \
src/Viewer3D/CityMapGeometry.h \
src/Viewer3D/OsmParser.h \
src/Viewer3D/Viewer3DQmlBackend.h \
src/Viewer3D/Viewer3DQmlVariableTypes.h \
src/Viewer3D/Viewer3DUtils.h \
src/Viewer3D/Viewer3DManager.h \
src/Settings/Viewer3DSettings.h \
AndroidBuild {
HEADERS += \
src/Joystick/JoystickAndroid.h \
}
DebugBuild {
HEADERS += \
src/comm/MockLink.h \
src/comm/MockLinkFTP.h \
src/comm/MockLinkMissionItemHandler.h \
}
WindowsBuild {
PRECOMPILED_HEADER += src/pch.h
HEADERS += src/pch.h
CONFIG -= silent
OTHER_FILES += .appveyor.yml
}
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
HEADERS += \
src/comm/BluetoothLink.h \
}
!contains(DEFINES, NO_SERIAL_LINK) {
HEADERS += \
src/comm/QGCSerialPortInfo.h \
src/comm/SerialLink.h \
}
!MobileBuild {
HEADERS += \
src/GPS/Drivers/src/gps_helper.h \
src/GPS/Drivers/src/rtcm.h \
src/GPS/Drivers/src/ashtech.h \
src/GPS/Drivers/src/ubx.h \
src/GPS/Drivers/src/sbf.h \
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/sensor_gps.h \
src/GPS/sensor_gnss_relative.h \
src/Joystick/JoystickSDL.h \
src/RunGuard.h \
}
iOSBuild {
OBJECTIVE_SOURCES += \
src/Utilities/MobileScreenMgr.mm \
}
AndroidBuild {
SOURCES += \
src/Utilities/MobileScreenMgr.cc \
src/Joystick/JoystickAndroid.cc
HEADERS += src/Utilities/MobileScreenMgr.h
}
SOURCES += \
src/ADSB/ADSBVehicle.cc \
src/ADSB/ADSBVehicleManager.cc \
src/AnalyzeView/LogDownloadController.cc \
src/AnalyzeView/PX4LogParser.cc \
src/AnalyzeView/ULogParser.cc \
src/AnalyzeView/MavlinkConsoleController.cc \
src/Audio/AudioOutput.cc \
src/Vehicle/Autotune.cpp \
src/Camera/MavlinkCameraControl.cc \
src/Camera/SimulatedCameraControl.cc \
src/Camera/VehicleCameraControl.cc \
src/Camera/QGCCameraIO.cc \
src/Camera/QGCCameraManager.cc \
src/CmdLineOptParser.cc \
src/Compression/QGCLZMA.cc \
src/Compression/QGCZlib.cc \
src/FollowMe/FollowMe.cc \
src/Joystick/Joystick.cc \
src/Joystick/JoystickManager.cc \
src/Utilities/JsonHelper.cc \
src/MissionManager/KMLDomDocument.cc \
src/MissionManager/KMLHelper.cc \
src/MissionManager/CameraCalc.cc \
src/MissionManager/CameraSection.cc \
src/MissionManager/CameraSpec.cc \
src/MissionManager/ComplexMissionItem.cc \
src/MissionManager/CorridorScanComplexItem.cc \
src/MissionManager/CorridorScanPlanCreator.cc \
src/MissionManager/BlankPlanCreator.cc \
src/MissionManager/FixedWingLandingComplexItem.cc \
src/MissionManager/GeoFenceController.cc \
src/MissionManager/GeoFenceManager.cc \
src/MissionManager/KMLPlanDomDocument.cc \
src/MissionManager/LandingComplexItem.cc \
src/MissionManager/MissionCommandList.cc \
src/MissionManager/MissionCommandTree.cc \
src/MissionManager/MissionCommandUIInfo.cc \
src/MissionManager/MissionController.cc \
src/MissionManager/MissionItem.cc \
src/MissionManager/MissionManager.cc \
src/MissionManager/MissionSettingsItem.cc \
src/MissionManager/PlanElementController.cc \
src/MissionManager/PlanCreator.cc \
src/MissionManager/PlanManager.cc \
src/MissionManager/PlanMasterController.cc \
src/MissionManager/QGCFenceCircle.cc \
src/MissionManager/QGCFencePolygon.cc \
src/MissionManager/QGCMapCircle.cc \
src/MissionManager/QGCMapPolygon.cc \
src/MissionManager/QGCMapPolyline.cc \
src/MissionManager/RallyPoint.cc \
src/MissionManager/RallyPointController.cc \
src/MissionManager/RallyPointManager.cc \
src/MissionManager/SimpleMissionItem.cc \
src/MissionManager/SpeedSection.cc \
src/MissionManager/StructureScanComplexItem.cc \
src/MissionManager/StructureScanPlanCreator.cc \
src/MissionManager/SurveyComplexItem.cc \
src/MissionManager/SurveyPlanCreator.cc \
src/MissionManager/TakeoffMissionItem.cc \
src/MissionManager/TransectStyleComplexItem.cc \
src/MissionManager/VisualMissionItem.cc \
src/MissionManager/VTOLLandingComplexItem.cc \
src/PositionManager/PositionManager.cpp \
src/PositionManager/SimulatedPosition.cc \
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 \
src/Utilities/QGC.cc \
src/QGCApplication.cc \
src/Utilities/QGCCachedFileDownload.cc \
src/Utilities/QGCFileDownload.cc \
src/Utilities/QGCLoggingCategory.cc \
src/QmlControls/QGCMapPalette.cc \
src/QmlControls/QGCPalette.cc \
src/Utilities/QGCQGeoCoordinate.cc \
src/Utilities/QGCTemporaryFile.cc \
src/QGCToolbox.cc \
src/QmlControls/AppMessages.cc \
src/QmlControls/EditPositionDialogController.cc \
src/QmlControls/FlightPathSegment.cc \
src/QmlControls/HorizontalFactValueGrid.cc \
src/QmlControls/InstrumentValueData.cc \
src/QmlControls/FactValueGrid.cc \
src/QmlControls/ParameterEditorController.cc \
src/QmlControls/QGCFileDialogController.cc \
src/QmlControls/QGCImageProvider.cc \
src/QmlControls/QGroundControlQmlGlobal.cc \
src/QmlControls/QmlObjectListModel.cc \
src/QmlControls/QGCGeoBoundingCube.cc \
src/QmlControls/RCChannelMonitorController.cc \
src/QmlControls/RCToParamDialogController.cc \
src/QmlControls/ScreenToolsController.cc \
src/QmlControls/TerrainProfile.cc \
src/QmlControls/ToolStripAction.cc \
src/QmlControls/ToolStripActionList.cc \
src/QtLocationPlugin/QMLControl/QGCMapEngineManager.cc \
src/Settings/ADSBVehicleManagerSettings.cc \
src/Settings/AppSettings.cc \
src/Settings/AutoConnectSettings.cc \
src/Settings/BatteryIndicatorSettings.cc \
src/Settings/BrandImageSettings.cc \
src/Settings/CustomMavlinkActionsSettings.cc \
src/Settings/RemoteIDSettings.cc \
src/Settings/FirmwareUpgradeSettings.cc \
src/Settings/FlightMapSettings.cc \
src/Settings/FlightModeSettings.cc \
src/Settings/FlyViewSettings.cc \
src/Settings/MapsSettings.cc \
src/Settings/OfflineMapsSettings.cc \
src/Settings/PlanViewSettings.cc \
src/Settings/RTKSettings.cc \
src/Settings/SettingsGroup.cc \
src/Settings/SettingsManager.cc \
src/Settings/UnitsSettings.cc \
src/Settings/VideoSettings.cc \
src/Utilities/ShapeFileHelper.cc \
src/Utilities/SHPFileHelper.cc \
src/Terrain/TerrainQuery.cc \
src/Terrain/TerrainTile.cc \
src/Vehicle/Actuators/ActuatorActions.cc \
src/Vehicle/Actuators/Actuators.cc \
src/Vehicle/Actuators/ActuatorOutputs.cc \
src/Vehicle/Actuators/ActuatorTesting.cc \
src/Vehicle/Actuators/Common.cc \
src/Vehicle/Actuators/GeometryImage.cc \
src/Vehicle/Actuators/Mixer.cc \
src/Vehicle/Actuators/MotorAssignment.cc \
src/Vehicle/CompInfo.cc \
src/Vehicle/CompInfoActuators.cc \
src/Vehicle/CompInfoEvents.cc \
src/Vehicle/CompInfoParam.cc \
src/Vehicle/CompInfoGeneral.cc \
src/Vehicle/ComponentInformationCache.cc \
src/Vehicle/ComponentInformationManager.cc \
src/Vehicle/ComponentInformationTranslation.cc \
src/Vehicle/EventHandler.cc \
src/Vehicle/FTPManager.cc \
src/Vehicle/GPSRTKFactGroup.cc \
src/Vehicle/HealthAndArmingCheckReport.cc \
src/Vehicle/ImageProtocolManager.cc \
src/Vehicle/InitialConnectStateMachine.cc \
src/Vehicle/MAVLinkLogManager.cc \
src/Vehicle/MAVLinkStreamConfig.cc \
src/Vehicle/MultiVehicleManager.cc \
src/Vehicle/RemoteIDManager.cc \
src/Vehicle/StateMachine.cc \
src/Vehicle/StandardModes.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/VehicleLocalPositionFactGroup.cc \
src/Vehicle/VehicleLocalPositionSetpointFactGroup.cc \
src/Vehicle/VehicleGPSFactGroup.cc \
src/Vehicle/VehicleGPS2FactGroup.cc \
src/Vehicle/VehicleLinkManager.cc \
src/Vehicle/VehicleSetpointFactGroup.cc \
src/Vehicle/VehicleTemperatureFactGroup.cc \
src/Vehicle/VehicleVibrationFactGroup.cc \
src/Vehicle/VehicleHygrometerFactGroup.cc \
src/Vehicle/VehicleGeneratorFactGroup.cc \
src/Vehicle/VehicleEFIFactGroup.cc \
src/Vehicle/VehicleWindFactGroup.cc \
src/VehicleSetup/JoystickConfigController.cc \
src/comm/LinkConfiguration.cc \
src/comm/LinkInterface.cc \
src/comm/LinkManager.cc \
src/comm/LogReplayLink.cc \
src/comm/MAVLinkProtocol.cc \
src/comm/QGCMAVLink.cc \
src/comm/TCPLink.cc \
src/comm/UDPLink.cc \
src/comm/UdpIODevice.cc \
src/main.cc \
src/Vehicle/UASMessageHandler.cc \
src/AnalyzeView/GeoTagController.cc \
src/AnalyzeView/ExifParser.cc \
src/Viewer3D/CityMapGeometry.cc \
src/Viewer3D/OsmParser.cc \
src/Viewer3D/Viewer3DQmlBackend.cc \
src/Viewer3D/Viewer3DUtils.cc \
src/Viewer3D/Viewer3DManager.cc \
src/Settings/Viewer3DSettings.cc \
DebugBuild {
SOURCES += \
src/comm/MockLink.cc \
src/comm/MockLinkFTP.cc \
src/comm/MockLinkMissionItemHandler.cc \
}
!contains(DEFINES, NO_SERIAL_LINK) {
SOURCES += \
src/comm/QGCSerialPortInfo.cc \
src/comm/SerialLink.cc \
}
contains(DEFINES, QGC_ENABLE_BLUETOOTH) {
SOURCES += \
src/comm/BluetoothLink.cc \
}
!MobileBuild {
SOURCES += \
src/GPS/Drivers/src/gps_helper.cpp \
src/GPS/Drivers/src/rtcm.cpp \
src/GPS/Drivers/src/ashtech.cpp \
src/GPS/Drivers/src/ubx.cpp \
src/GPS/Drivers/src/sbf.cpp \
src/GPS/GPSManager.cc \
src/GPS/GPSProvider.cc \
src/GPS/RTCM/RTCMMavlink.cc \
src/Joystick/JoystickSDL.cc \
src/RunGuard.cc \
}
#
# Firmware Plugin Support
#
INCLUDEPATH += \
src/AutoPilotPlugins/Common \
src/FirmwarePlugin \
src/VehicleSetup \
HEADERS+= \
src/AutoPilotPlugins/AutoPilotPlugin.h \
src/AutoPilotPlugins/Common/ESP8266Component.h \
src/AutoPilotPlugins/Common/ESP8266ComponentController.h \
src/AutoPilotPlugins/Common/MotorComponent.h \
src/AutoPilotPlugins/Common/RadioComponentController.h \
src/AutoPilotPlugins/Common/SyslinkComponent.h \
src/AutoPilotPlugins/Common/SyslinkComponentController.h \
src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.h \
src/FirmwarePlugin/CameraMetaData.h \
src/FirmwarePlugin/FirmwarePlugin.h \
src/FirmwarePlugin/FirmwarePluginManager.h \
src/VehicleSetup/VehicleComponent.h \
!MobileBuild { !contains(DEFINES, NO_SERIAL_LINK) {
HEADERS += \
src/VehicleSetup/Bootloader.h \
src/VehicleSetup/FirmwareImage.h \
src/VehicleSetup/FirmwareUpgradeController.h \
src/VehicleSetup/PX4FirmwareUpgradeThread.h \
}}
SOURCES += \
src/AutoPilotPlugins/AutoPilotPlugin.cc \
src/AutoPilotPlugins/Common/ESP8266Component.cc \
src/AutoPilotPlugins/Common/ESP8266ComponentController.cc \
src/AutoPilotPlugins/Common/MotorComponent.cc \
src/AutoPilotPlugins/Common/RadioComponentController.cc \
src/AutoPilotPlugins/Common/SyslinkComponent.cc \
src/AutoPilotPlugins/Common/SyslinkComponentController.cc \
src/AutoPilotPlugins/Generic/GenericAutoPilotPlugin.cc \
src/FirmwarePlugin/CameraMetaData.cc \
src/FirmwarePlugin/FirmwarePlugin.cc \
src/FirmwarePlugin/FirmwarePluginManager.cc \
src/VehicleSetup/VehicleComponent.cc \
!MobileBuild { !contains(DEFINES, NO_SERIAL_LINK) {
SOURCES += \
src/VehicleSetup/Bootloader.cc \
src/VehicleSetup/FirmwareImage.cc \
src/VehicleSetup/FirmwareUpgradeController.cc \
src/VehicleSetup/PX4FirmwareUpgradeThread.cc \
}}
# ArduPilot Specific
ArdupilotEnabled {
HEADERS += \
src/Settings/APMMavlinkStreamRateSettings.h \
SOURCES += \
src/Settings/APMMavlinkStreamRateSettings.cc \
}
# ArduPilot FirmwarePlugin
APMFirmwarePlugin {
RESOURCES *= src/FirmwarePlugin/APM/APMResources.qrc
INCLUDEPATH += \
src/AutoPilotPlugins/APM \
src/FirmwarePlugin/APM \
HEADERS += \
src/AutoPilotPlugins/APM/APMAirframeComponent.h \
src/AutoPilotPlugins/APM/APMAirframeComponentController.h \
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.h \
src/AutoPilotPlugins/APM/APMCameraComponent.h \
src/AutoPilotPlugins/APM/APMFlightModesComponent.h \
src/AutoPilotPlugins/APM/APMFlightModesComponentController.h \
src/AutoPilotPlugins/APM/APMFollowComponent.h \
src/AutoPilotPlugins/APM/APMFollowComponentController.h \
src/AutoPilotPlugins/APM/APMHeliComponent.h \
src/AutoPilotPlugins/APM/APMLightsComponent.h \
src/AutoPilotPlugins/APM/APMSubFrameComponent.h \
src/AutoPilotPlugins/APM/APMMotorComponent.h \
src/AutoPilotPlugins/APM/APMPowerComponent.h \
src/AutoPilotPlugins/APM/APMRadioComponent.h \
src/AutoPilotPlugins/APM/APMSafetyComponent.h \
src/AutoPilotPlugins/APM/APMSensorsComponent.h \
src/AutoPilotPlugins/APM/APMSensorsComponentController.h \
src/AutoPilotPlugins/APM/APMSubMotorComponentController.h \
src/AutoPilotPlugins/APM/APMTuningComponent.h \
src/AutoPilotPlugins/APM/APMRemoteSupportComponent.h \
src/FirmwarePlugin/APM/APMFirmwarePlugin.h \
src/FirmwarePlugin/APM/APMParameterMetaData.h \
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.h \
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.h \
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.h \
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.h \
SOURCES += \
src/AutoPilotPlugins/APM/APMAirframeComponent.cc \
src/AutoPilotPlugins/APM/APMAirframeComponentController.cc \
src/AutoPilotPlugins/APM/APMAutoPilotPlugin.cc \
src/AutoPilotPlugins/APM/APMCameraComponent.cc \
src/AutoPilotPlugins/APM/APMFlightModesComponent.cc \
src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc \
src/AutoPilotPlugins/APM/APMFollowComponent.cc \
src/AutoPilotPlugins/APM/APMFollowComponentController.cc \
src/AutoPilotPlugins/APM/APMHeliComponent.cc \
src/AutoPilotPlugins/APM/APMLightsComponent.cc \
src/AutoPilotPlugins/APM/APMSubFrameComponent.cc \
src/AutoPilotPlugins/APM/APMMotorComponent.cc \
src/AutoPilotPlugins/APM/APMPowerComponent.cc \
src/AutoPilotPlugins/APM/APMRadioComponent.cc \
src/AutoPilotPlugins/APM/APMSafetyComponent.cc \
src/AutoPilotPlugins/APM/APMSensorsComponent.cc \
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc \
src/AutoPilotPlugins/APM/APMSubMotorComponentController.cc \
src/AutoPilotPlugins/APM/APMTuningComponent.cc \
src/AutoPilotPlugins/APM/APMRemoteSupportComponent.cc \
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc \
src/FirmwarePlugin/APM/APMParameterMetaData.cc \
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc \
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc \
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc \
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc \
}
APMFirmwarePluginFactory {
HEADERS += src/FirmwarePlugin/APM/APMFirmwarePluginFactory.h
SOURCES += src/FirmwarePlugin/APM/APMFirmwarePluginFactory.cc
}
# PX4 FirmwarePlugin
PX4FirmwarePlugin {
RESOURCES *= src/FirmwarePlugin/PX4/PX4Resources.qrc
INCLUDEPATH += \
src/AutoPilotPlugins/PX4 \
src/FirmwarePlugin/PX4 \
HEADERS+= \
src/AutoPilotPlugins/PX4/ActuatorComponent.h \
src/AutoPilotPlugins/PX4/AirframeComponent.h \
src/AutoPilotPlugins/PX4/AirframeComponentAirframes.h \
src/AutoPilotPlugins/PX4/AirframeComponentController.h \
src/AutoPilotPlugins/PX4/CameraComponent.h \
src/AutoPilotPlugins/PX4/FlightModesComponent.h \
src/AutoPilotPlugins/PX4/PX4AirframeLoader.h \
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.h \
src/AutoPilotPlugins/PX4/PX4FlightBehavior.h \
src/AutoPilotPlugins/PX4/PX4RadioComponent.h \
src/AutoPilotPlugins/PX4/PX4SimpleFlightModesController.h \
src/AutoPilotPlugins/PX4/PX4TuningComponent.h \
src/AutoPilotPlugins/PX4/PowerComponent.h \
src/AutoPilotPlugins/PX4/PowerComponentController.h \
src/AutoPilotPlugins/PX4/SafetyComponent.h \
src/AutoPilotPlugins/PX4/SensorsComponent.h \
src/AutoPilotPlugins/PX4/SensorsComponentController.h \
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h \
src/FirmwarePlugin/PX4/PX4ParameterMetaData.h \
SOURCES += \
src/AutoPilotPlugins/PX4/ActuatorComponent.cc \
src/AutoPilotPlugins/PX4/AirframeComponent.cc \
src/AutoPilotPlugins/PX4/AirframeComponentAirframes.cc \
src/AutoPilotPlugins/PX4/AirframeComponentController.cc \
src/AutoPilotPlugins/PX4/CameraComponent.cc \
src/AutoPilotPlugins/PX4/FlightModesComponent.cc \
src/AutoPilotPlugins/PX4/PX4AirframeLoader.cc \
src/AutoPilotPlugins/PX4/PX4AutoPilotPlugin.cc \
src/AutoPilotPlugins/PX4/PX4FlightBehavior.cc \
src/AutoPilotPlugins/PX4/PX4RadioComponent.cc \
src/AutoPilotPlugins/PX4/PX4SimpleFlightModesController.cc \
src/AutoPilotPlugins/PX4/PX4TuningComponent.cc \
src/AutoPilotPlugins/PX4/PowerComponent.cc \
src/AutoPilotPlugins/PX4/PowerComponentController.cc \
src/AutoPilotPlugins/PX4/SafetyComponent.cc \
src/AutoPilotPlugins/PX4/SensorsComponent.cc \
src/AutoPilotPlugins/PX4/SensorsComponentController.cc \
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc \
src/FirmwarePlugin/PX4/PX4ParameterMetaData.cc \
}
PX4FirmwarePluginFactory {
HEADERS += src/FirmwarePlugin/PX4/PX4FirmwarePluginFactory.h
SOURCES += src/FirmwarePlugin/PX4/PX4FirmwarePluginFactory.cc
}
# Fact System code
INCLUDEPATH += \
src/FactSystem \
src/FactSystem/FactControls \
HEADERS += \
src/FactSystem/Fact.h \
src/FactSystem/FactControls/FactPanelController.h \
src/FactSystem/FactGroup.h \
src/FactSystem/FactMetaData.h \
src/FactSystem/FactSystem.h \
src/FactSystem/FactValueSliderListModel.h \
src/FactSystem/ParameterManager.h \
src/FactSystem/SettingsFact.h \
SOURCES += \
src/FactSystem/Fact.cc \
src/FactSystem/FactControls/FactPanelController.cc \
src/FactSystem/FactGroup.cc \
src/FactSystem/FactMetaData.cc \
src/FactSystem/FactSystem.cc \
src/FactSystem/FactValueSliderListModel.cc \
src/FactSystem/ParameterManager.cc \
src/FactSystem/SettingsFact.cc \
#-------------------------------------------------------------------------------------
# MAVLink Inspector
contains (DEFINES, QGC_DISABLE_MAVLINK_INSPECTOR) {
message("Disable mavlink inspector")
} else {
HEADERS += \
src/AnalyzeView/MAVLinkInspectorController.h
SOURCES += \
src/AnalyzeView/MAVLinkInspectorController.cc
QT += \
charts
}
#-------------------------------------------------------------------------------------
# Airlink
contains (DEFINES, QGC_AIRLINK_DISABLED) {
message("AirLink disabled")
} else {
message("AirLink enabled")
INCLUDEPATH += \
src/AirLink
HEADERS += \
src/AirLink/AirlinkLink.h \
src/AirLink/AirLinkManager.h
SOURCES += \
src/AirLink/AirlinkLink.cc \
src/AirLink/AirLinkManager.cc
}
#-------------------------------------------------------------------------------------
# Video Streaming
INCLUDEPATH += \
src/VideoManager
HEADERS += \
src/VideoManager/SubtitleWriter.h \
src/VideoManager/VideoManager.h
SOURCES += \
src/VideoManager/SubtitleWriter.cc \
src/VideoManager/VideoManager.cc
contains (CONFIG, DISABLE_VIDEOSTREAMING) {
message("Skipping support for video streaming (manual override from command line)")
# Otherwise the user can still disable this feature in the user_config.pri file.
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, DISABLE_VIDEOSTREAMING) {
message("Skipping support for video streaming (manual override from user_config.pri)")
} else {
QT += \
opengl \
gui-private
include(src/VideoReceiver/VideoReceiver.pri)
}
!VideoEnabled {
INCLUDEPATH += \
src/VideoReceiver
HEADERS += \
src/VideoManager/GLVideoItemStub.h \
src/VideoReceiver/VideoReceiver.h
SOURCES += \
src/VideoManager/GLVideoItemStub.cc
}
#-------------------------------------------------------------------------------------
# Android
AndroidBuild {
contains (CONFIG, DISABLE_BUILTIN_ANDROID) {
message("Skipping builtin support for Android")
} else {
QT -= core-private
include(android.pri)
}
}
#-------------------------------------------------------------------------------------
#
# Localization
#
TRANSLATIONS += $$files($$PWD/translations/qgc_*.ts)
CONFIG+=lrelease embed_translations
#-------------------------------------------------------------------------------------
#
# Post link configuration
#
contains (CONFIG, QGC_DISABLE_BUILD_SETUP) {
message("Disable standard build setup")
} else {
include(QGCPostLinkCommon.pri)
}
#
# Installer targets
#
contains (CONFIG, QGC_DISABLE_INSTALLER_SETUP) {
message("Disable standard installer setup")
} else {
include(QGCPostLinkInstaller.pri)
}
DISTFILES += \
src/QmlControls/QGroundControl/Specific/qmldir
#
# Steps for "install" target on Linux
#
LinuxBuild {
target.path = $${PREFIX}/bin/
share_qgroundcontrol.path = $${PREFIX}/share/qgroundcontrol/
share_qgroundcontrol.files = $${IN_PWD}/resources/
share_icons.path = $${PREFIX}/share/icons/hicolor/128x128/apps/
share_icons.files = $${IN_PWD}/resources/icons/qgroundcontrol.png
share_metainfo.path = $${PREFIX}/share/metainfo/
share_metainfo.files = $${IN_PWD}/deploy/linux/org.mavlink.qgroundcontrol.metainfo.xml
share_applications.path = $${PREFIX}/share/applications/
share_applications.files = $${IN_PWD}/deploy/linux/qgroundcontrol.desktop
INSTALLS += target share_qgroundcontrol share_icons share_metainfo share_applications
}
# UTM Adapter Enabled
contains (DEFINES, CONFIG_UTM_ADAPTER) {
message("UTM enabled")
#-- To test with UTM Adapter Enabled Flag
INCLUDEPATH += \
src/UTMSP \
RESOURCES += \
src/UTMSP/utmsp.qrc
HEADERS += \
src/UTMSP/UTMSPLogger.h \
src/UTMSP/UTMSPRestInterface.h \
src/UTMSP/UTMSPBlenderRestInterface.h \
src/UTMSP/UTMSPAuthorization.h \
src/UTMSP/UTMSPNetworkRemoteIDManager.h \
src/UTMSP/UTMSPAircraft.h \
src/UTMSP/UTMSPFlightDetails.h \
src/UTMSP/UTMSPOperator.h \
src/UTMSP/UTMSPFlightPlanManager.h \
src/UTMSP/UTMSPServiceController.h \
src/UTMSP/UTMSPVehicle.h \
src/UTMSP/UTMSPManager.h
SOURCES += \
src/UTMSP/UTMSPRestInterface.cpp \
src/UTMSP/UTMSPBlenderRestInterface.cpp \
src/UTMSP/UTMSPAuthorization.cpp \
src/UTMSP/UTMSPNetworkRemoteIDManager.cpp \
src/UTMSP/UTMSPAircraft.cpp \
src/UTMSP/UTMSPFlightDetails.cpp \
src/UTMSP/UTMSPOperator.cpp \
src/UTMSP/UTMSPFlightPlanManager.cpp \
src/UTMSP/UTMSPServiceController.cpp \
src/UTMSP/UTMSPVehicle.cpp \
src/UTMSP/UTMSPManager.cpp
}
else {
#-- Dummy UTM Adapter resource file created to override UTM adapter qml files
INCLUDEPATH += \
src/UTMSP/dummy
RESOURCES += \
src/UTMSP/dummy/utmsp_dummy.qrc
}
include(test/QGCTest.pri)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化