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
a2ebe500
Commit
a2ebe500
authored
Oct 23, 2015
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some work for iOS
parent
af824e20
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
52 additions
and
78 deletions
+52
-78
QGCApplication.pro
QGCApplication.pro
+1
-2
QGCCommon.pri
QGCCommon.pri
+22
-12
git_version.pri
git_version.pri
+0
-30
qgroundcontrol.pro
qgroundcontrol.pro
+0
-2
GAudioOutput.cc
src/GAudioOutput.cc
+1
-0
QGCApplication.cc
src/QGCApplication.cc
+27
-28
glutils.h
src/VideoStreaming/gstqtvideosink/utils/glutils.h
+1
-1
git_version.h
src/git_version.h
+0
-3
No files found.
QGCApplication.pro
View file @
a2ebe500
...
...
@@ -18,7 +18,6 @@
#
-------------------------------------------------
include
(
QGCCommon
.
pri
)
include
(
git_version
.
pri
)
TARGET
=
qgroundcontrol
TEMPLATE
=
app
...
...
QGCCommon.pri
View file @
a2ebe500
...
...
@@ -69,6 +69,16 @@ MobileBuild {
DEFINES += __mobile__
}
# set the QGC version from git
exists ($$PWD/.git) {
GIT_DESCRIBE = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
} else {
GIT_DESCRIBE = None
}
DEFINES += GIT_VERSION=\"\\\"$$GIT_DESCRIBE\\\"\"
# Installer configuration
installer {
...
...
git_version.pri
deleted
100644 → 0
View file @
af824e20
# set the QGC version from git
exists ($$PWD/.git) {
GIT_DESCRIBE = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
WindowsBuild {
QGC_GIT_VER = echo extern \"C\" { const char *git_version() { return \"$$GIT_DESCRIBE\"; } } > git_version.cpp
LIBS += git_version.obj
} else {
QGC_GIT_VER = echo \"extern \\\"C\\\" { const char *git_version() { return \\\"$$GIT_DESCRIBE\\\"; } }\" > git_version.cpp
LIBS += git_version.o
}
}
WindowsBuild {
LIBS += git_version.obj
} else {
LIBS += git_version.o
}
CONFIG(debug) {
GIT_VERSION_CXXFLAGS = $$QMAKE_CXXFLAGS_DEBUG
} else {
GIT_VERSION_CXXFLAGS = $$QMAKE_CXXFLAGS_RELEASE
}
MacBuild {
QMAKE_PRE_LINK += $$QGC_GIT_VER && $$QMAKE_CXX -mmacosx-version-min=$$QMAKE_MACOSX_DEPLOYMENT_TARGET -c $$GIT_VERSION_CXXFLAGS git_version.cpp
} else {
QMAKE_PRE_LINK += $$QGC_GIT_VER && $$QMAKE_CXX -c $$GIT_VERSION_CXXFLAGS git_version.cpp
}
qgroundcontrol.pro
View file @
a2ebe500
...
...
@@ -22,8 +22,6 @@ CONFIG += ordered
SUBDIRS
=
.
/
QGCLocationPlugin
.
pro
SUBDIRS
+=
.
/
QGCApplication
.
pro
include
(
git_version
.
pri
)
QGCApplication
.
depends
=
QGCLocationPlugin
message
(
Qt
version
$$
[
QT_VERSION
])
...
...
src/GAudioOutput.cc
View file @
a2ebe500
...
...
@@ -95,6 +95,7 @@ bool GAudioOutput::say(const QString& inText, int severity)
if
(
!
muted
)
{
#if defined __android__
#if defined QGC_SPEECH_ENABLED
Q_UNUSED
(
severity
);
static
const
char
V_jniClassName
[]
{
"org/qgroundcontrol/qgchelper/UsbDeviceJNI"
};
QAndroidJniEnvironment
env
;
if
(
env
->
ExceptionCheck
())
{
...
...
src/QGCApplication.cc
View file @
a2ebe500
...
...
@@ -41,7 +41,6 @@
#include "VideoStreaming.h"
#include "git_version.h"
#include "QGC.h"
#include "QGCApplication.h"
#include "MainWindow.h"
...
...
@@ -283,7 +282,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
setOrganizationName
(
QGC_ORG_NAME
);
setOrganizationDomain
(
QGC_ORG_DOMAIN
);
QString
versionString
(
git_version
()
);
QString
versionString
(
GIT_VERSION
);
// stable versions are on tags (v1.2.3)
// development versions are full git describe versions (v1.2.3-18-g879e8b3)
if
(
versionString
.
length
()
>
8
)
{
...
...
src/VideoStreaming/gstqtvideosink/utils/glutils.h
View file @
a2ebe500
...
...
@@ -30,7 +30,7 @@ This file is part of the QGROUNDCONTROL project
#ifndef GLUTILS_H
#define GLUTILS_H
#ifdef __
android
__
#ifdef __
mobile
__
#include <QOpenGLFunctions>
#define getQOpenGLFunctions() QOpenGLContext::currentContext()->functions()
#define QOpenGLFunctionsDef QOpenGLFunctions
...
...
src/git_version.h
deleted
100644 → 0
View file @
af824e20
extern
"C"
{
const
char
*
git_version
();
}
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