X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fversion.cpp;h=6701accdf95180878a3cf816eb1e545d6229449b;hb=355395174bf50e1a3b8514e8eebec978c496d6ba;hp=5e0fdee358351bc567318452623398962ca827cc;hpb=b9b6c1278287dcff75d3da61ad269bf5c4ad130c;p=lyx.git diff --git a/src/version.cpp b/src/version.cpp index 5e0fdee358..6701accdf9 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -11,16 +11,26 @@ #include +#if ! defined(LYX_DATE) +#include "lyx_date.h" +#endif + +#if ! defined(LYX_GIT_COMMIT_HASH) +#include "lyx_commit_hash.h" +#endif + +/// +extern char const * const lyx_version = PACKAGE_VERSION; /// -char const * lyx_version = PACKAGE_VERSION; +extern const int lyx_version_major = LYX_MAJOR_VERSION; +extern const int lyx_version_minor = LYX_MINOR_VERSION; /// -const int lyx_version_major = LYX_MAJOR_VERSION; -const int lyx_version_minor = LYX_MINOR_VERSION; +extern char const * const lyx_git_commit_hash = LYX_GIT_COMMIT_HASH; /// -char const * lyx_release_date = LYX_DATE; +extern char const * const lyx_release_date = LYX_DATE; /// Package identifier (lyx[-]) -char const * lyx_package = PACKAGE; +extern char const * const lyx_package = PACKAGE; /// This is the version information shown by 'lyx --version' -char const * lyx_version_info = VERSION_INFO; +extern char const * const lyx_version_info = VERSION_INFO;