mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-17 23:44:35 +00:00
ade58f9c49
Allow appending arbitrary text to the libabigail version string representation. That is useful to identify custom versions of the library (e.g. development versions or versions of a particular origin). The feature can be enabled by passing VERSION_SUFFIX to `configure`, e.g. $ configure VERSION_SUFFIX="-dev" That will extend the version string to (currently) 1.7.0-dev. The behaviour before this patch remains the default behaviour of not appending any additional text. The feature stays intentionally undocumented as the main release of libabigail will usually not carry a version suffix. * configure.ac: add substitution for VERSION_SUFFIX * include/abg-version.h.in: add define for ABIGAIL_VERSION_SUFFIX * include/abg-config.h(abigail_get_library_version): add support for a version suffix * src/abg-config.cc(abigail_get_library_version): Likewise. * src/abg-tools-utils.cc(get_library_version_string): Likewise. Reviewed-by: Dodji Seketeli <dodji@seketeli.org> Signed-off-by: Matthias Maennich <maennich@google.com>
8 lines
259 B
C
8 lines
259 B
C
#ifndef __ABG_VERSION_H__
|
|
#define __ABG_VERSION_H__
|
|
#define ABIGAIL_VERSION_MAJOR "@VERSION_MAJOR@"
|
|
#define ABIGAIL_VERSION_MINOR "@VERSION_MINOR@"
|
|
#define ABIGAIL_VERSION_REVISION "@VERSION_REVISION@"
|
|
#define ABIGAIL_VERSION_SUFFIX "@VERSION_SUFFIX@"
|
|
#endif
|