goldendict-ng/src/version.hh
shenleban tongying 5406b3022a
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
dev: generally improve cmake build script
2024-11-22 16:50:55 -05:00

46 lines
832 B
C++

#pragma once
#include <QString>
namespace Version {
const QLatin1String flags = QLatin1String(
#ifdef MAKE_ZIM_SUPPORT
" MAKE_ZIM_SUPPORT"
#endif
#ifdef EPWING_SUPPORT
" EPWING_SUPPORT"
#endif
#ifdef USE_ICONV
" USE_ICONV"
#endif
#ifdef MAKE_CHINESE_CONVERSION_SUPPORT
" MAKE_CHINESE_CONVERSION_SUPPORT"
#endif
#ifdef TTS_SUPPORT
" TTS_SUPPORT"
#endif
#ifndef MAKE_FFMPEG_PLAYER
" no_ffmpeg_player"
#endif
);
const QLatin1String compiler = QLatin1String(
#if defined( Q_CC_MSVC )
"MSVC " 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