diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2014-10-24 17:46:31 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2014-11-27 14:27:33 +0100 |
commit | ab12cf414c87e0cc3b43bdc47f57bef837986f3b (patch) | |
tree | 15749a4fc49cdb336fab3f315da4d28639b12e3d /server/spice-version.h.in | |
parent | 6f798ba1f75360e6c66260b0ac2de76efa0a7d1d (diff) | |
download | spice-ab12cf414c87e0cc3b43bdc47f57bef837986f3b.tar.gz spice-ab12cf414c87e0cc3b43bdc47f57bef837986f3b.tar.xz spice-ab12cf414c87e0cc3b43bdc47f57bef837986f3b.zip |
build-sys: generate spice-version.h
Editing the hexadecimal value of spice-version and keeping it in sync
with actual release is a bit tedious. Let's generate it
automatically (although handling of bumps will need temporarily static
versions, when 0.12 -> 1.0 for example)
Diffstat (limited to 'server/spice-version.h.in')
-rw-r--r-- | server/spice-version.h.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/server/spice-version.h.in b/server/spice-version.h.in new file mode 100644 index 00000000..69e97e9f --- /dev/null +++ b/server/spice-version.h.in @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2009-2014 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef SPICE_VERSION_H_ +#define SPICE_VERSION_H_ + +#if !defined(SPICE_H_INSIDE) && !defined(SPICE_SERVER_INTERNAL) +#error "Only spice.h can be included directly." +#endif + +#define SPICE_SERVER_VERSION @SPICE_SERVER_VERSION@ + +#endif /* SPICE_VERSION_H_ */ |