Browse Source

Ensured that a default-configured QGroundControl src repo compiles

QGC4.4
lm 15 years ago
parent
commit
cfd82a5e97
  1. 30
      qgroundcontrol.pro
  2. 14
      src/comm/QGCMAVLink.h
  3. 22
      user_config.pri.dist

30
qgroundcontrol.pro

@ -51,11 +51,38 @@ OBJECTS_DIR = $$BUILDDIR/obj
MOC_DIR = $$BUILDDIR/moc MOC_DIR = $$BUILDDIR/moc
UI_HEADERS_DIR = src/ui/generated UI_HEADERS_DIR = src/ui/generated
MAVLINK_CONF = ""
exists(user_config.pri) { exists(user_config.pri) {
message("----- USING USER QGROUNDCONTROL CONFIG FROM user_config.pri -----") message("----- USING USER QGROUNDCONTROL CONFIG FROM user_config.pri -----")
include(user_config.pri) include(user_config.pri)
} }
INCLUDEPATH += $$BASEDIR/../mavlink/include/common
contains(MAVLINK_CONF, pixhawk) {
# Remove the default set - it is included anyway
INCLUDEPATH -= $$BASEDIR/../mavlink/include/common
# PIXHAWK SPECIAL MESSAGES
INCLUDEPATH += $$BASEDIR/../mavlink/include/pixhawk
DEFINES += QGC_USE_PIXHAWK_MESSAGES
}
contains(MAVLINK_CONF, slugs) {
# Remove the default set - it is included anyway
INCLUDEPATH -= $$BASEDIR/../mavlink/include/common
# SLUGS SPECIAL MESSAGES
INCLUDEPATH += $$BASEDIR/../mavlink/include/slugs
DEFINES += QGC_USE_SLUGS_MESSAGES
}
contains(MAVLINK_CONF, ualberta) {
# Remove the default set - it is included anyway
INCLUDEPATH -= $$BASEDIR/../mavlink/include/common
# UALBERTA SPECIAL MESSAGES
INCLUDEPATH += $$BASEDIR/../mavlink/include/ualberta
DEFINES += QGC_USE_UALBERTA_MESSAGES
}
# } # }
# Include general settings for MAVGround # Include general settings for MAVGround
@ -75,8 +102,7 @@ DEPENDPATH += . \
plugins plugins
INCLUDEPATH += . \ INCLUDEPATH += . \
lib/QMapControl \ lib/QMapControl \
$$BASEDIR/../mavlink/include \ $$BASEDIR/../mavlink/include
$$BASEDIR/../mavlink/include/common
# ../mavlink/include \ # ../mavlink/include \
# MAVLink/include \ # MAVLink/include \

14
src/comm/QGCMAVLink.h

@ -33,20 +33,22 @@ This file is part of the QGROUNDCONTROL project
#include <mavlink_types.h> #include <mavlink_types.h>
#include <mavlink.h> #include <mavlink.h>
//#ifdef QGC_USE_PIXHAWK_MESSAGES #ifdef QGC_USE_PIXHAWK_MESSAGES
#include <pixhawk.h> #include <pixhawk.h>
//#endif #endif
//#ifdef QGC_USE_SLUGS_MESSAGES #ifdef QGC_USE_SLUGS_MESSAGES
#include <slugs.h> #include <slugs.h>
//#endif #endif
//#ifdef QGC_USE_UALBERTA_MESSAGES #ifdef QGC_USE_UALBERTA_MESSAGES
#include <ualberta.h> #include <ualberta.h>
//#endif #endif
#ifdef QGC_USE_ARDUPILOT_MESSAGES #ifdef QGC_USE_ARDUPILOT_MESSAGES
#include <ardupilot.h> #include <ardupilot.h>
#endif #endif
#endif // QGCMAVLINK_H #endif // QGCMAVLINK_H

22
user_config.pri.dist

@ -23,22 +23,10 @@
# #
#------------------------------------------------- #-------------------------------------------------
# Uncomment ONE of these lines to enable the special message set of a project. # Add or remove custom message specs here. The matching mavlink headers are
# Several message sets can be also enabled in parallel, as long as function names # included in the main qgroundcontrol.pro file.
# and message ids do not conflict.
# Remove the default set - it is included anyway MAVLINK_CONF += pixhawk \
INCLUDEPATH -= $$BASEDIR/../mavlink/include/common slugs \
ualberta
# PIXHAWK SPECIAL MESSAGES
INCLUDEPATH += $$BASEDIR/../mavlink/include/pixhawk
DEFINES += QGC_USE_PIXHAWK_MESSAGES
# SLUGS SPECIAL MESSAGES
INCLUDEPATH += $$BASEDIR/../mavlink/include/slugs
DEFINES += QGC_USE_SLUGS_MESSAGES
# UALBERTA SPECIAL MESSAGES
INCLUDEPATH += $$BASEDIR/../mavlink/include/ualberta
DEFINES += QGC_USE_UALBERTA_MESSAGES

Loading…
Cancel
Save