]> sigrok.org Git - libsigrok.git/blame_incremental - include/libsigrok/version.h.in
output/csv: use intermediate time_t var, silence compiler warning
[libsigrok.git] / include / libsigrok / version.h.in
... / ...
CommitLineData
1/*
2 * This file is part of the libsigrok project.
3 *
4 * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
5 *
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.
10 *
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.
15 *
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/>.
18 */
19
20#ifndef LIBSIGROK_VERSION_H
21#define LIBSIGROK_VERSION_H
22
23/*
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.
30 */
31#if defined WANT_LIBSIGROK_GIT_VERSION_H
32# include <libsigrok/git-version.h>
33#else
34# undef SR_PACKAGE_VERSION_STRING_SUFFIX
35# define SR_PACKAGE_VERSION_STRING_SUFFIX ""
36#endif
37
38/**
39 * @file
40 *
41 * Version number definitions and macros.
42 */
43
44/**
45 * @ingroup grp_versions
46 *
47 * @{
48 */
49
50/*
51 * Package version macros (can be used for conditional compilation).
52 */
53
54/** The libsigrok package 'major' version number. */
55#undef SR_PACKAGE_VERSION_MAJOR
56
57/** The libsigrok package 'minor' version number. */
58#undef SR_PACKAGE_VERSION_MINOR
59
60/** The libsigrok package 'micro' version number. */
61#undef SR_PACKAGE_VERSION_MICRO
62
63/** The libsigrok package version ("major.minor.micro") as string. */
64#define SR_PACKAGE_VERSION_STRING_PREFIX
65
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)
68
69/*
70 * Library/libtool version macros (can be used for conditional compilation).
71 */
72
73/** The libsigrok libtool 'current' version number. */
74#undef SR_LIB_VERSION_CURRENT
75
76/** The libsigrok libtool 'revision' version number. */
77#undef SR_LIB_VERSION_REVISION
78
79/** The libsigrok libtool 'age' version number. */
80#undef SR_LIB_VERSION_AGE
81
82/** The libsigrok libtool version ("current:revision:age") as string. */
83#undef SR_LIB_VERSION_STRING
84
85/** @} */
86
87#endif