summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@collabora.com>2014-03-15 10:34:17 +0100
committerThibault Saunier <tsaunier@gnome.org>2014-03-15 20:01:48 +0100
commit9ef7344a21e58b02f8002485aec72d67a15699fb (patch)
tree00550aa35519bd9f0b1621f27548291b7d118ff0
parent9b050a54cdf060df5d9d32eb5a3ca58971981bcd (diff)
Properly generate versioning #define-s during autogen
-rw-r--r--configure.ac11
-rw-r--r--ges/ges-version.h.in32
-rw-r--r--ges/ges.h5
3 files changed, 44 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 29351ca2..8f3a49a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,16 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],
[AM_DEFAULT_VERBOSITY=1
AC_SUBST(AM_DEFAULT_VERBOSITY)])
+dnl GES versioning, this is mostly informational
+GES_VERSION_MAJOR=$PACKAGE_VERSION_MAJOR
+GES_VERSION_MINOR=$PACKAGE_VERSION_MINOR
+GES_VERSION_MICRO=$PACKAGE_VERSION_MICRO
+GES_VERSION_NANO=$PACKAGE_VERSION_NANO
+AC_SUBST(GES_VERSION_MAJOR)
+AC_SUBST(GES_VERSION_MINOR)
+AC_SUBST(GES_VERSION_MICRO)
+AC_SUBST(GES_VERSION_NANO)
+
dnl our libraries and install dirs use major.minor as a version
GST_API_VERSION=$GST_EDITING_SERVICES_VERSION_MAJOR.$GST_EDITING_SERVICES_VERSION_MINOR
dnl we override it here if we need to for the release candidate of new series
@@ -348,6 +358,7 @@ dnl po/Makefile.in
AC_CONFIG_FILES(
Makefile
+ges/ges-version.h
common/Makefile
common/m4/Makefile
gst-editing-services.spec
diff --git a/ges/ges-version.h.in b/ges/ges-version.h.in
new file mode 100644
index 00000000..4dd00e1a
--- /dev/null
+++ b/ges/ges-version.h.in
@@ -0,0 +1,32 @@
+/* GStreamer Editing Services
+ * Copyright (C) 2014 Thibault Saunier <tsaunier@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __GES_VERSION_H__
+#define __GES_VERSION_H__
+
+G_BEGIN_DECLS
+
+#define GES_VERSION_MAJOR (@GES_VERSION_MAJOR@)
+#define GES_VERSION_MINOR (@GES_VERSION_MINOR@)
+#define GES_VERSION_MICRO (@GES_VERSION_MICRO@)
+#define GES_VERSION_NANO (@GES_VERSION_NANO@)
+
+G_END_DECLS
+
+#endif /* __GES_H__ */
diff --git a/ges/ges.h b/ges/ges.h
index b385e9fd..622e3a49 100644
--- a/ges/ges.h
+++ b/ges/ges.h
@@ -78,13 +78,10 @@
#include <ges/ges-gerror.h>
#include <ges/ges-audio-track.h>
#include <ges/ges-video-track.h>
+#include <ges/ges-version.h>
G_BEGIN_DECLS
-#define GES_VERSION_MAJOR (1)
-#define GES_VERSION_MINOR (0)
-#define GES_VERSION_MICRO (0)
-#define GES_VERSION_NANO (0)
gboolean ges_init (void);