Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
2f79d2f0
Commit
2f79d2f0
authored
Mar 07, 2018
by
mantelt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow setting MAVLINK relative path, absolut path and dialect in user_config.pri
parent
7c2aaf21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
QGCExternalLibs.pri
QGCExternalLibs.pri
+21
-3
qgroundcontrol.pro
qgroundcontrol.pro
+0
-5
No files found.
QGCExternalLibs.pri
View file @
2f79d2f0
...
...
@@ -21,14 +21,32 @@ WindowsBuild {
# In the mean time, it’s possible to define a completely different dialect by defining the
# location and name below.
# check for user defined settings in user_config.pri if not already set as qmake argument
isEmpty(MAVLINKPATH_REL) {
MAVLINKPATH_REL = libs/mavlink/include/mavlink/v2.0
exists(user_config.pri):infile(user_config.pri, MAVLINKPATH_REL) {
MAVLINKPATH_REL = $$fromfile(user_config.pri, MAVLINKPATH_REL)
message($$sprintf("Using user-supplied relativ mavlink path '%1' specified in user_config.pri", $$MAVLINKPATH_REL))
} else {
MAVLINKPATH_REL = libs/mavlink/include/mavlink/v2.0
}
}
isEmpty(MAVLINKPATH) {
MAVLINKPATH = $$BASEDIR/$$MAVLINKPATH_REL
exists(user_config.pri):infile(user_config.pri, MAVLINKPATH) {
MAVLINKPATH = $$fromfile(user_config.pri, MAVLINKPATH)
message($$sprintf("Using user-supplied mavlink path '%1' specified in user_config.pri", $$MAVLINKPATH))
} else {
MAVLINKPATH = $$BASEDIR/$$MAVLINKPATH_REL
}
}
isEmpty(MAVLINK_CONF) {
MAVLINK_CONF = ardupilotmega
exists(user_config.pri):infile(user_config.pri, MAVLINK_CONF) {
MAVLINK_CONF = $$fromfile(user_config.pri, MAVLINK_CONF)
message($$sprintf("Using user-supplied mavlink dialect '%1' specified in user_config.pri", $$MAVLINK_CONF))
} else {
MAVLINK_CONF = ardupilotmega
}
}
# If defined, all APM specific MAVLink messages are disabled
...
...
qgroundcontrol.pro
View file @
2f79d2f0
...
...
@@ -97,11 +97,6 @@ exists(user_config.pri):infile(user_config.pri, CONFIG) {
message
(
$$
sprintf
(
"Using user-supplied additional config: '%1' specified in user_config.pri"
,
$$
fromfile
(
user_config
.
pri
,
CONFIG
)))
}
exists
(
user_config
.
pri
)
:
infile
(
user_config
.
pri
,
MAVLINK_CONF
)
{
MAVLINK_CONF
=
$$
fromfile
(
user_config
.
pri
,
MAVLINK_CONF
)
message
(
$$
sprintf
(
"Using user-supplied mavlink dialect: '%1' specified in user_config.pri"
,
$$
fromfile
(
user_config
.
pri
,
MAVLINK_CONF
)))
}
#
#
Custom
Build
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment