mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
Make version control info available at run-time
This commit is contained in:
parent
0302d580db
commit
4aa7f8f59a
2 changed files with 13 additions and 0 deletions
|
@ -506,6 +506,8 @@ namespace {
|
|||
string_checkconfig_ro("/external_root/opt/isa/version");
|
||||
global::systemInfoText.append(checkconfig_str_val);
|
||||
global::systemInfoText.append("</b>");
|
||||
global::systemInfoText.append("<br><b>Git:</b> ");
|
||||
global::systemInfoText.append(GIT_VERSION);
|
||||
global::systemInfoText.append("<br><b>Device UID:</b> ");
|
||||
global::systemInfoText.append(deviceUID);
|
||||
global::systemInfoText.append("<br><b>Kernel version:</b> ");
|
||||
|
|
11
inkbox.pro
11
inkbox.pro
|
@ -6,6 +6,17 @@ CONFIG += c++11 c++17
|
|||
|
||||
QMAKE_CXXFLAGS += -Wno-unused-function -Wno-unused-parameter
|
||||
|
||||
# Thanks to https://github.com/mrbindraw/TestVersion/blob/master/TestVersion.pro
|
||||
GIT_VERSION = $$system(git describe --always --tags)
|
||||
COMMAND_REMOVE_MAKEFILES=$$quote(rm $$system_path($$OUT_PWD\Makefile*))
|
||||
PRE_BUILD_TARGET = .dummyfile
|
||||
updatemakefiles.target = $$PRE_BUILD_TARGET
|
||||
updatemakefiles.commands = $$COMMAND_REMOVE_MAKEFILES
|
||||
updatemakefiles.depends = FORCE
|
||||
PRE_TARGETDEPS += $$PRE_BUILD_TARGET
|
||||
QMAKE_EXTRA_TARGETS += updatemakefiles
|
||||
DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\"
|
||||
|
||||
# You can make your code fail to compile if it uses deprecated APIs.
|
||||
# In order to do so, uncomment the following line.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
|
Loading…
Reference in a new issue