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
1f1746ad
Commit
1f1746ad
authored
Jan 29, 2016
by
Nate Weibley
Browse files
Better versioning info and auto RC geenration for Windows
parent
bb93217c
Changes
4
Hide whitespace changes
Inline
Side-by-side
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
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