Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
cb2f45ae
Unverified
Commit
cb2f45ae
authored
May 30, 2020
by
Don Gagne
Committed by
GitHub
May 30, 2020
Browse files
Merge pull request #8790 from airmap/custom_start_script
Deploy custom start script for custom build
parents
d276ef61
771e60a4
Changes
5
Show whitespace changes
Inline
Side-by-side
QGCSetup.pri
View file @
cb2f45ae
...
...
@@ -90,7 +90,7 @@ LinuxBuild {
QMAKE_POST_LINK += && mkdir -p $$DESTDIR/Qt/libs && mkdir -p $$DESTDIR/Qt/plugins
# QT_INSTALL_LIBS
QT_LIB_LIST = \
QT_LIB_LIST
+
= \
libQt5Charts.so.5 \
libQt5Core.so.5 \
libQt5DBus.so.5 \
...
...
@@ -160,7 +160,11 @@ LinuxBuild {
}
# QGroundControl start script
contains (CONFIG, QGC_DISABLE_CUSTOM_BUILD) | !exists($$PWD/custom/custom.pri) {
QMAKE_POST_LINK += && $$QMAKE_COPY $$BASEDIR/deploy/qgroundcontrol-start.sh $$DESTDIR
QMAKE_POST_LINK += && $$QMAKE_COPY $$BASEDIR/deploy/qgroundcontrol.desktop $$DESTDIR
QMAKE_POST_LINK += && $$QMAKE_COPY $$BASEDIR/resources/icons/qgroundcontrol.png $$DESTDIR
} else {
include($$PWD/custom/custom_deploy.pri)
}
}
custom-example/custom.pri
View file @
cb2f45ae
...
...
@@ -55,6 +55,14 @@ RESOURCES += \
QML_IMPORT_PATH += \
$$PWD/res
LinuxBuild {
# Our QT_INSTALL_LIBS
QT_LIB_LIST += \
libQt5VirtualKeyboard.so.5 \
}
# Our own, custom sources
SOURCES += \
$$PWD/src/CustomPlugin.cc \
...
...
custom-example/custom_deploy.pri
0 → 100644
View file @
cb2f45ae
QMAKE_POST_LINK += && $$QMAKE_COPY $$PWD/deploy/qgroundcontrol-start.sh $$DESTDIR
QMAKE_POST_LINK += && $$QMAKE_COPY $$PWD/deploy/qgroundcontrol.desktop $$DESTDIR
QMAKE_POST_LINK += && $$QMAKE_COPY $$PWD/res/Images/CustomAppIcon.png $$DESTDIR
custom-example/deploy/qgroundcontrol-start.sh
View file @
cb2f45ae
...
...
@@ -3,8 +3,9 @@ HERE="$(dirname "$(readlink -f "${0}")")"
export
LD_LIBRARY_PATH
=
"
${
HERE
}
/usr/lib/x86_64-linux-gnu"
:
"
${
HERE
}
/Qt/libs"
:
$LD_LIBRARY_PATH
export
QML2_IMPORT_PATH
=
"
${
HERE
}
/Qt/qml"
export
QT_PLUGIN_PATH
=
"
${
HERE
}
/Qt/plugins"
export
QT_IM_MODULE
=
qtvirtualkeyboard
# hack until icon issue with AppImage is resolved
mkdir
-p
~/.icons
&&
\c
p
-f
${
HERE
}
/qgroundcontrol.png ~/.icons
"
${
HERE
}
/CustomQG
C
"
"
$@
"
"
${
HERE
}
/CustomQG
roundControl
"
"
$@
"
custom-example/deploy/qgroundcontrol.desktop
0 → 100644
View file @
cb2f45ae
[Desktop Entry]
Type=Application
Name=CustomQGroundControl
GenericName=Ground Control Station
Comment=UAS ground control station
Icon=CustomAppIcon
Exec=qgroundcontrol-start.sh
Terminal=false
Categories=Utility;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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