]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- added version header file
authorArvin Schnell <aschnell@suse.de>
Mon, 15 Jul 2013 12:52:36 +0000 (14:52 +0200)
committerArvin Schnell <aschnell@suse.de>
Mon, 15 Jul 2013 12:52:36 +0000 (14:52 +0200)
configure.ac
snapper/.gitignore
snapper/Makefile.am
snapper/Version.h.in [new file with mode: 0644]

index cc29ebe40ba0b9a8fac2ecc2e30192233c94ecee..94ccd8e59d601917aeb44326a4c6e499412c490e 100644 (file)
@@ -115,6 +115,8 @@ PKG_CHECK_MODULES(DBUS, dbus-1)
 
 AC_SUBST(VERSION)
 AC_SUBST(LIBVERSION_MAJOR)
+AC_SUBST(LIBVERSION_MINOR)
+AC_SUBST(LIBVERSION_PATCHLEVEL)
 AC_SUBST(LIBVERSION_INFO)
 AC_SUBST(docdir)
 AC_SUBST(fillupdir)
@@ -122,6 +124,7 @@ AC_SUBST(fillupdir)
 AC_OUTPUT(
        Makefile
        snapper/Makefile
+       snapper/Version.h:snapper/Version.h.in
        examples/Makefile
        examples/c/Makefile
        examples/c++-lib/Makefile
index 66a3f3fe7c74b712fc28b5083e1d1605bdc2cbd1..694c0b5ae4f316e46097efcddad07579820b1c35 100644 (file)
@@ -1,2 +1,3 @@
 *.lo
 *.la
+Version.h
index c68cdd0b38698842fd0df2f01e6b580ec0ad9efd..83bd5797b333b48edc51e817f1d8869b573bceb4 100644 (file)
@@ -33,6 +33,7 @@ libsnapper_la_SOURCES =                                       \
        SnapperTmpl.h                                   \
        SnapperTypes.h                                  \
        SnapperDefines.h                                \
+       Version.h                                       \
        $(TMP_XA)
 
 
@@ -58,6 +59,7 @@ libsnapper_la_LIBADD = -lboost_thread-mt -lboost_system-mt -lxml2 -lz -lm
 pkgincludedir = $(includedir)/snapper
 
 pkginclude_HEADERS =                                   \
+       Version.h                                       \
        Factory.h                                       \
        Snapper.h                                       \
        Snapshot.h                                      \
diff --git a/snapper/Version.h.in b/snapper/Version.h.in
new file mode 100644 (file)
index 0000000..fa9c1f5
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2013 Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as published
+ * by the Free Software Foundation.
+ *
+ * This program 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 General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, contact Novell, Inc.
+ *
+ * To contact Novell about this file by physical or electronic mail, you may
+ * find current contact information at www.novell.com.
+ */
+
+
+#ifndef SNAPPER_VERSION_H
+#define SNAPPER_VERSION_H
+
+
+#define LIBSNAPPER_MAJOR="@LIBVERSION_MAJOR@"
+#define LIBSNAPPER_MINOR="@LIBVERSION_MINOR@"
+#define LIBSNAPPER_PATCHLEVEL="@LIBVERSION_PATCHLEVEL@"
+
+#define LIBSNAPPER_VERSION ( LIBSNAPPER_MAJOR * 10000 + \\
+                            LIBSNAPPER_MINOR * 100 + \\
+                            LIBSNAPPER_PATCHLEVEL )
+
+
+#endif