summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2011-09-20 08:42:31 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2011-09-20 19:34:38 +0200
commit70b0ffd50188001c261f0c88400ce9b09b25669e (patch)
tree0816bf308f5d2fe797cb384def7e0d8fbae24b1b /cmake
parent2f183ac576c77fe50899db868e7c545ee31b510f (diff)
downloaddbus-70b0ffd50188001c261f0c88400ce9b09b25669e.tar.gz
cmake fix: install version string
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40905
Diffstat (limited to 'cmake')
-rw-r--r--cmake/dbus/dbus-arch-deps.h.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/dbus/dbus-arch-deps.h.cmake b/cmake/dbus/dbus-arch-deps.h.cmake
index 7d566e9f..dddbeb4c 100644
--- a/cmake/dbus/dbus-arch-deps.h.cmake
+++ b/cmake/dbus/dbus-arch-deps.h.cmake
@@ -51,6 +51,17 @@ typedef unsigned @DBUS_INT32_TYPE@ dbus_uint32_t;
typedef @DBUS_INT16_TYPE@ dbus_int16_t;
typedef unsigned @DBUS_INT16_TYPE@ dbus_uint16_t;
+/* This is not really arch-dependent, but it's not worth
+ * creating an additional generated header just for this
+ */
+#define DBUS_MAJOR_VERSION @DBUS_MAJOR_VERSION@
+#define DBUS_MINOR_VERSION @DBUS_MINOR_VERSION@
+#define DBUS_MICRO_VERSION @DBUS_MICRO_VERSION@
+
+#define DBUS_VERSION_STRING "@DBUS_VERSION@"
+
+#define DBUS_VERSION ((@DBUS_MAJOR_VERSION@ << 16) | (@DBUS_MINOR_VERSION@ << 8) | (@DBUS_MICRO_VERSION@))
+
DBUS_END_DECLS;
#endif /* DBUS_ARCH_DEPS_H */