From f994c4fafe1349b619695a9e6fd1e42109d66045 Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Tue, 17 Apr 2001 02:19:08 +0000 Subject: [PATCH] added gstversion.h Original commit message from CVS: added gstversion.h --- configure.in | 39 ++++++++++++++++++++------------------- gst/.gitignore | 1 + gst/Makefile.am | 3 ++- gst/gst.h | 2 ++ gst/gstversion.h.in | 31 +++++++++++++++++++++++++++++++ 5 files changed, 56 insertions(+), 20 deletions(-) create mode 100644 gst/gstversion.h.in diff --git a/configure.in b/configure.in index eff0c92e17..81f88dfb74 100644 --- a/configure.in +++ b/configure.in @@ -4,44 +4,44 @@ AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(config.h) -dnl FIXME this should be GSTREAMER_ now -STREAMER_MAJOR_VERSION=0 -STREAMER_MINOR_VERSION=1 -STREAMER_MICRO_VERSION=1 -STREAMER_VERSION=$STREAMER_MAJOR_VERSION.$STREAMER_MINOR_VERSION.$STREAMER_MICRO_VERSION +GST_VERSION_MAJOR=0 +GST_VERSION_MINOR=1 +GST_VERSION_MICRO=1 +GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_MICRO PACKAGE=gstreamer -VERSION=$STREAMER_VERSION +VERSION=$GST_VERSION AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") AC_DEFINE_UNQUOTED(VERSION, "$VERSION") AC_SUBST(PACKAGE) AC_SUBST(VERSION) dnl libtool -STREAMER_CURRENT=0 -STREAMER_REVISION=0 -STREAMER_AGE=0 -GSTREAMER_LIBVERSION=$STREAMER_CURRENT:$STREAMER_REVISION:$STREAMER_AGE +GST_CURRENT=0 +GST_REVISION=0 +GST_AGE=0 +GST_LIBVERSION=$GST_CURRENT:$GST_REVISION:$GST_AGE AM_INIT_AUTOMAKE($PACKAGE, $VERSION) dnl Add parameters for aclocal dnl (This must come after AM_INIT_AUTOMAKE, since it modifies ACLOCAL) ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" -AC_SUBST(STREAMER_MAJOR_VERSION) -AC_SUBST(STREAMER_MINOR_VERSION) -AC_SUBST(STREAMER_MICRO_VERSION) -AC_SUBST(STREAMER_VERSION) +AC_SUBST(GST_VERSION_MAJOR) +AC_SUBST(GST_VERSION_MINOR) +AC_SUBST(GST_VERSION_MICRO) +AC_SUBST(GST_VERSION) -AC_SUBST(STREAMER_CURRENT) -AC_SUBST(STREAMER_REVISION) -AC_SUBST(STREAMER_AGE) -AC_SUBST(GSTREAMER_LIBVERSION) +AC_SUBST(GST_CURRENT) +AC_SUBST(GST_REVISION) +AC_SUBST(GST_AGE) +AC_SUBST(GST_LIBVERSION) AM_MAINTAINER_MODE AC_PROG_CC +AC_PROG_CXX AC_ISC_POSIX AC_STDC_HEADERS AC_ARG_PROGRAM @@ -775,6 +775,7 @@ AC_OUTPUT([Makefile include/Makefile include/wine/Makefile gst/Makefile +gst/gstversion.h gst/types/Makefile gst/meta/Makefile gst/elements/Makefile @@ -860,7 +861,7 @@ plugins/esd/Makefile plugins/esd/esdsink/Makefile plugins/artsd/Makefile plugins/xmms/Makefile -plugins/mulaw/Makefile +plugins/arts/Makefile gstplay/Makefile dnl components/bonobo-gstmediaplay/Makefile test/Makefile diff --git a/gst/.gitignore b/gst/.gitignore index 08f5ed37d8..8e3b99e373 100644 --- a/gst/.gitignore +++ b/gst/.gitignore @@ -5,3 +5,4 @@ Makefile.in *.la .deps .libs +gstversion.h diff --git a/gst/Makefile.am b/gst/Makefile.am index 0ccec0b034..ee16394b8e 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -115,7 +115,8 @@ libgstinclude_HEADERS = \ gsttypefind.h \ gstutils.h \ gstparse.h \ - gstxml.h + gstxml.h \ + gstversion.h noinst_HEADERS = \ gst_private.h \ diff --git a/gst/gst.h b/gst/gst.h index 98e27aac25..94a1444f2e 100644 --- a/gst/gst.h +++ b/gst/gst.h @@ -26,6 +26,8 @@ #include +#include + #include #include #include diff --git a/gst/gstversion.h.in b/gst/gstversion.h.in new file mode 100644 index 0000000000..820e7fc7f7 --- /dev/null +++ b/gst/gstversion.h.in @@ -0,0 +1,31 @@ +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstversion.h: Version information for GStreamer + * + * 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., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#ifndef __GST_VERSION_H__ +#define __GST_VERSION_H__ + +#define GST_VERSION_MAJOR @GST_VERSION_MAJOR@ +#define GST_VERSION_MINOR @GST_VERSION_MINOR@ +#define GST_VERSION_MICRO @GST_VERSION_MICRO@ + +#endif /* __GST_H__ */