X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fversion.cpp;h=e5ac23034e332eb010f811b0adcd8d1966c4e256;hb=49ac79100bc36bcd8e54c0224596ae36af9c3c77;hp=00dd34f9fa038da67754691852dcbd6249a94e28;hpb=c87247ed39d37fa941937b209ae3854244b644d2;p=lyx.git diff --git a/src/version.cpp b/src/version.cpp index 00dd34f9fa..e5ac23034e 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -11,16 +11,31 @@ #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; +/// +extern char const * const lyx_git_commit_hash = LYX_GIT_COMMIT_HASH; +/// +extern char const * const lyx_release_date = LYX_DATE; + /// -int lyx_version_major = LYX_MAJOR_VERSION; -int lyx_version_minor = LYX_MINOR_VERSION; +extern char const * const lyx_build_date = __DATE__; /// -char const * lyx_release_date = LYX_DATE; +extern char const * const lyx_build_time = __TIME__; /// 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;