]> sigrok.org Git - libsigrok.git/blame - include/libsigrok/version.h.in
output/csv: use intermediate time_t var, silence compiler warning
[libsigrok.git] / include / libsigrok / version.h.in
CommitLineData
45c59c8b 1/*
50985c20 2 * This file is part of the libsigrok project.
45c59c8b
BV
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
5bce22ac
GS
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
c27e5f1e
UH
38/**
39 * @file
40 *
41 * Version number definitions and macros.
42 */
43
44/**
45 * @ingroup grp_versions
46 *
47 * @{
48 */
49
45c59c8b
BV
50/*
51 * Package version macros (can be used for conditional compilation).
52 */
53
54/** The libsigrok package 'major' version number. */
b2478a23 55#undef SR_PACKAGE_VERSION_MAJOR
45c59c8b
BV
56
57/** The libsigrok package 'minor' version number. */
b2478a23 58#undef SR_PACKAGE_VERSION_MINOR
45c59c8b
BV
59
60/** The libsigrok package 'micro' version number. */
b2478a23 61#undef SR_PACKAGE_VERSION_MICRO
45c59c8b
BV
62
63/** The libsigrok package version ("major.minor.micro") as string. */
5bce22ac
GS
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)
45c59c8b
BV
68
69/*
70 * Library/libtool version macros (can be used for conditional compilation).
71 */
72
73/** The libsigrok libtool 'current' version number. */
b2478a23 74#undef SR_LIB_VERSION_CURRENT
45c59c8b
BV
75
76/** The libsigrok libtool 'revision' version number. */
b2478a23 77#undef SR_LIB_VERSION_REVISION
45c59c8b
BV
78
79/** The libsigrok libtool 'age' version number. */
b2478a23 80#undef SR_LIB_VERSION_AGE
45c59c8b
BV
81
82/** The libsigrok libtool version ("current:revision:age") as string. */
b2478a23 83#undef SR_LIB_VERSION_STRING
45c59c8b 84
c27e5f1e 85/** @} */
45c59c8b 86
c27e5f1e 87#endif