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
1f1746ad
Commit
1f1746ad
authored
Jan 29, 2016
by
Nate Weibley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better versioning info and auto RC geenration for Windows
parent
bb93217c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
27 deletions
+13
-27
QGCCommon.pri
QGCCommon.pri
+7
-2
qgroundcontrol.pro
qgroundcontrol.pro
+5
-3
qgroundcontrol.rc
qgroundcontrol.rc
+0
-21
QGCApplication.cc
src/QGCApplication.cc
+1
-1
No files found.
QGCCommon.pri
View file @
1f1746ad
...
...
@@ -89,12 +89,17 @@ MobileBuild {
exists ($$PWD/.git) {
GIT_DESCRIBE = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
message(QGroundControl version $${GIT_DESCRIBE})
GIT_HASH = $$system(git rev-parse HEAD)
VERSION = $$replace(GIT_DESCRIBE, "v", "")
message(QGroundControl version $${GIT_DESCRIBE} hash $${GIT_HASH})
} else {
GIT_DESCRIBE = None
GIT_HASH = None
VERSION = 0.0.0 # Marker to indicate out-of-tree build
}
DEFINES += GIT_VERSION=\"\\\"$$GIT_DESCRIBE\\\"\"
DEFINES += GIT_TAG=\"\\\"$$GIT_DESCRIBE\\\"\"
DEFINES += GIT_HASH=\"\\\"$$GIT_HASH\\\"\"
# Installer configuration
...
...
qgroundcontrol.pro
View file @
1f1746ad
...
...
@@ -130,9 +130,11 @@ LinuxBuild {
CONFIG
+=
qesp_linux_udev
}
WindowsBuild
{
RC_FILE
=
$$
{
BASEDIR
}
/
qgroundcontrol
.
rc
}
RC_ICONS
=
resources
/
icons
/
qgroundcontrol
.
ico
QMAKE_TARGET_COMPANY
=
"qgroundcontrol.org"
QMAKE_TARGET_DESCRIPTION
=
"Open source ground control app provided by QGroundControl dev team"
QMAKE_TARGET_COPYRIGHT
=
"Copyright (C) 2016 QGroundControl Development Team. All rights reserved."
QMAKE_TARGET_PRODUCT
=
"qgroundcontrol"
#
#
Build
-
specific
settings
...
...
qgroundcontrol.rc
deleted
100644 → 0
View file @
bb93217c
IDI_ICON1 ICON DISCARDABLE "resources/icons/qgroundcontrol.ico"
1 VERSIONINFO
FILEVERSION 2,0,0,227
PRODUCTVERSION 2,0,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "qgroundcontrol.org"
VALUE "FileDescription", "Open source ground control app provided by QGroundControl dev team"
VALUE "FileVersion", "2.0.0.227"
VALUE "LegalCopyright", "Copyright (C) 2013 QGroundControl Development Team. All rights reserved."
VALUE "ProductName", "qgroundcontrol"
VALUE "ProductVersion", "2.0"
VALUE "InternalName", "qgroundcontrol"
VALUE "OriginalFilename", "qgroundcontrol.exe"
END
END
END
src/QGCApplication.cc
View file @
1f1746ad
...
...
@@ -337,7 +337,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
setOrganizationName
(
QGC_ORG_NAME
);
setOrganizationDomain
(
QGC_ORG_DOMAIN
);
QString
versionString
(
GIT_
VERSION
);
QString
versionString
(
GIT_
TAG
);
// stable versions are on tags (v1.2.3)
// development versions are full git describe versions (v1.2.3-18-g879e8b3)
if
(
versionString
.
length
()
>
8
)
{
...
...
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