aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/utils/BuildInfoUtils.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-22 22:06:30 +0000
committersaturneric <[email protected]>2024-11-22 22:06:30 +0000
commite16e15db09d89a997db73e313b966f95e6c59f56 (patch)
tree4f6be7375b983eda33b5faa37b9c7a3af0a57ed6 /src/core/utils/BuildInfoUtils.cpp
parentfix: correct the path to the executable of app image mode (diff)
downloadGpgFrontend-e16e15db09d89a997db73e313b966f95e6c59f56.tar.gz
GpgFrontend-e16e15db09d89a997db73e313b966f95e6c59f56.zip
feat: rewrite core init processes and add env option
Diffstat (limited to 'src/core/utils/BuildInfoUtils.cpp')
-rw-r--r--src/core/utils/BuildInfoUtils.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/utils/BuildInfoUtils.cpp b/src/core/utils/BuildInfoUtils.cpp
index 9e5314b5..ed72cebe 100644
--- a/src/core/utils/BuildInfoUtils.cpp
+++ b/src/core/utils/BuildInfoUtils.cpp
@@ -28,6 +28,9 @@
#include "BuildInfoUtils.h"
+#include <archive.h>
+#include <openssl/opensslv.h>
+
#include "GpgFrontendBuildInfo.h"
namespace GpgFrontend {
@@ -52,5 +55,15 @@ auto GetProjectBuildGitCommitHash() -> QString { return GIT_COMMIT_HASH; }
auto GetProjectBuildGitVersion() -> QString { return GIT_VERSION; }
+auto GetProjectQtVersion() -> QString { return {qVersion()}; }
+
+auto GetProjectOpenSSLVersion() -> QString {
+ return {OPENSSL_FULL_VERSION_STR};
+}
+
+auto GetProjectLibarchiveVersion() -> QString {
+ return {ARCHIVE_VERSION_ONLY_STRING};
+}
+
auto GetHttpRequestUserAgent() -> QString { return HTTP_REQUEST_USER_AGENT; }
}; // namespace GpgFrontend \ No newline at end of file