mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
46 lines
832 B
C++
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
|