mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-02 14:01:10 +00:00
419f32df91
Creating LYX_DATE dynamically at configure-time caused unwanted recompilation of the whole directories (src + src/tex2lyx) because all the relevant objects were dependent of a common file (flags.make in case of "Unix makefiles") which changed accordingly. There is now a new include (lyx_date.h, with only one definition) Nothing changes for automake, since in this case LYX_DATE is defined in config.h
30 lines
784 B
C++
30 lines
784 B
C++
/* -*- C++ -*- */
|
|
/**
|
|
* \file version.cpp
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Jean-Marc Lasgouttes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#include <config.h>
|
|
#if ! defined(LYX_DATE)
|
|
#include <lyx_date.h>
|
|
#endif
|
|
|
|
///
|
|
extern char const * 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_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'
|
|
extern char const * const lyx_version_info = VERSION_INFO;
|