]> git.lyx.org Git - lyx.git/blobdiff - src/version.cpp
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / version.cpp
index 6027f9a06cb1b963b3f2232e4112dfd628140837..6701accdf95180878a3cf816eb1e545d6229449b 100644 (file)
@@ -7,17 +7,30 @@
  * \author Jean-Marc Lasgouttes
  *
  * Full author contact details are available in file CREDITS.
- *
- * Warning! This file is autogenerated from version.cpp.in.
- * All changes to this file will be lost.
  */
 
 #include <config.h>
 
+#if ! defined(LYX_DATE)
+#include "lyx_date.h"
+#endif
+
+#if ! defined(LYX_GIT_COMMIT_HASH)
+#include "lyx_commit_hash.h"
+#endif
+
 ///
-char const * lyx_version = PACKAGE_VERSION;
+extern char const * const lyx_version = PACKAGE_VERSION;
 ///
-char const * lyx_release_date = LYX_DATE;
+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;
+
+/// Package identifier (lyx[-<version-suffix>])
+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;