goldendict-ng/src/version.hh
shenleban tongying b9e14f806c
fix: CMake problems found by the openBSD package (#1422)
* fix: CMake problems found by openBSD package

* remove unused WITH_XAPIAN option
* don't link Qt TTS if not requested

* fix: address CMake problems found by openBSD package

* remove unused WITH_XAPIAN option
* don't link Qt TTS if not requested
* Disable some code when TTS is not requested

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-20 11:08:17 +08:00

46 lines
859 B
C++

#pragma once
#include <QString>
namespace Version {
const QLatin1String flags = QLatin1String(
#ifdef MAKE_ZIM_SUPPORT
" MAKE_ZIM_SUPPORT"
#endif
#ifdef NO_EPWING_SUPPORT
" NO_EPWING_SUPPORT"
#endif
#ifdef USE_ICONV
" USE_ICONV"
#endif
#ifdef MAKE_CHINESE_CONVERSION_SUPPORT
" MAKE_CHINESE_CONVERSION_SUPPORT"
#endif
#ifdef NO_TTS_SUPPORT
" NO_TTS_SUPPORT"
#endif
#ifndef MAKE_FFMPEG_PLAYER
" no_ffmpeg_player"
#endif
);
const QLatin1String compiler = QLatin1String(
#if defined( Q_CC_MSVC )
"Visual C++ Compiler " QT_STRINGIFY( _MSC_FULL_VER )
#elif defined( Q_CC_CLANG )
"Clang " __clang_version__
#elif defined( Q_CC_GNU )
"GCC " __VERSION__
#else
"Unknown complier"
#endif
);
/// Version string from the version.txt
QString version();
/// Full report of version & various information
QString everything();
} // namespace Version