aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-02-29 10:15:57 +0000
committersaturneric <[email protected]>2024-02-29 10:15:57 +0000
commitc1f5b3336836e15d193582e9b8f3e044f7d8bc1b (patch)
tree35e9edb2e8f0c80dbafb76cc05ad6fe92c2c11d0 /src/cmd.cpp
parentfeat: upgrade module system (diff)
downloadGpgFrontend-c1f5b3336836e15d193582e9b8f3e044f7d8bc1b.tar.gz
GpgFrontend-c1f5b3336836e15d193582e9b8f3e044f7d8bc1b.zip
feat: add module controller and continue to work on module system
1. speed up building by reducing build info sheader including 2. add module controller 3. continue to work on module system
Diffstat (limited to 'src/cmd.cpp')
-rw-r--r--src/cmd.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd.cpp b/src/cmd.cpp
index cef0a984..d41b6de0 100644
--- a/src/cmd.cpp
+++ b/src/cmd.cpp
@@ -28,13 +28,13 @@
#include "cmd.h"
+#include "core/utils/BuildInfoUtils.h"
#include "main.h"
// std
#include <iostream>
// GpgFrontend
-#include "GpgFrontendBuildInfo.h"
#include "GpgFrontendContext.h"
#include "test/GpgFrontendTest.h"
@@ -42,19 +42,19 @@ namespace GpgFrontend {
auto PrintVersion() -> int {
QTextStream stream(stdout);
- stream << PROJECT_NAME << " "
- << "v" << VERSION_MAJOR << "." << VERSION_MINOR << "." << VERSION_PATCH
- << '\n';
+ stream << PROJECT_NAME << " " << GetProjectVersion() << '\n';
stream << "Copyright (©) 2021 Saturneric <[email protected]>" << '\n'
<< QCoreApplication::tr(
"This is free software; see the source for copying conditions.")
<< '\n'
<< '\n';
- stream << QCoreApplication::tr("Build DateTime: ") << BUILD_TIMESTAMP << '\n'
- << QCoreApplication::tr("Build Version: ") << BUILD_VERSION << '\n'
- << QCoreApplication::tr("Source Code Version: ") << GIT_VERSION
- << '\n';
+ stream << QCoreApplication::tr("Build DateTime: ")
+ << QLocale().toString(GetProjectBuildTimestamp()) << '\n'
+ << QCoreApplication::tr("Build Version: ") << GetProjectBuildVersion()
+ << '\n'
+ << QCoreApplication::tr("Source Code Version: ")
+ << GetProjectBuildGitVersion() << '\n';
stream << Qt::endl;
return 0;