2 * This file is part of the libsigrok project.
4 * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef LIBSIGROK_VERSION_H
21 #define LIBSIGROK_VERSION_H
24 * Only libsigrok library builds, and only parts of the library build,
25 * need to reference the git-version.h header file. Which contains the
26 * version suffix, which is relevant to local development, but is not
27 * applicable to release builds. Application builds need not bother with
28 * internal library version details, and always can get this information
29 * in text form for display purposes from the library at runtime.
31 #if defined WANT_LIBSIGROK_GIT_VERSION_H
32 # include <libsigrok/git-version.h>
34 # undef SR_PACKAGE_VERSION_STRING_SUFFIX
35 # define SR_PACKAGE_VERSION_STRING_SUFFIX ""
41 * Version number definitions and macros.
45 * @ingroup grp_versions
51 * Package version macros (can be used for conditional compilation).
54 /** The libsigrok package 'major' version number. */
55 #undef SR_PACKAGE_VERSION_MAJOR
57 /** The libsigrok package 'minor' version number. */
58 #undef SR_PACKAGE_VERSION_MINOR
60 /** The libsigrok package 'micro' version number. */
61 #undef SR_PACKAGE_VERSION_MICRO
63 /** The libsigrok package version ("major.minor.micro") as string. */
64 #define SR_PACKAGE_VERSION_STRING_PREFIX
66 /** The libsigrok package version with git commit suffix. */
67 #define SR_PACKAGE_VERSION_STRING (SR_PACKAGE_VERSION_STRING_PREFIX SR_PACKAGE_VERSION_STRING_SUFFIX)
70 * Library/libtool version macros (can be used for conditional compilation).
73 /** The libsigrok libtool 'current' version number. */
74 #undef SR_LIB_VERSION_CURRENT
76 /** The libsigrok libtool 'revision' version number. */
77 #undef SR_LIB_VERSION_REVISION
79 /** The libsigrok libtool 'age' version number. */
80 #undef SR_LIB_VERSION_AGE
82 /** The libsigrok libtool version ("current:revision:age") as string. */
83 #undef SR_LIB_VERSION_STRING