[aravis] gst: be consistent with gst-template autoconf setup.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] gst: be consistent with gst-template autoconf setup.
- Date: Sat, 24 Apr 2010 13:07:50 +0000 (UTC)
commit 0c5edb38871481ce65c8ed41500c174e2f75fffe
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Sat Apr 24 11:27:42 2010 +0200
gst: be consistent with gst-template autoconf setup.
configure.ac | 10 ++++++++++
gst/Makefile.am | 18 +++++++++---------
2 files changed, 19 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b5d46d3..4896b13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,6 +61,16 @@ if test "x$enable_gstreamer" = "xyes"; then
fi
AM_CONDITIONAL(ARAVIS_WITH_GSTREAMER, test "x$with_gstreamer" = "xyes")
+if test "x${prefix}" = "x$HOME"; then
+ gstplugindir="$HOME/.gstreamer-0.10/plugins"
+else
+ gstplugindir="\$(libdir)/gstreamer-0.10"
+fi
+AC_SUBST(gstplugindir)
+
+GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
+AC_SUBST(GST_PLUGIN_LDFLAGS)
+
PKG_CHECK_MODULES(ARAVIS, $ARAVIS_REQUIRES)
AC_SUBST(ARAVIS_CFLAGS)
diff --git a/gst/Makefile.am b/gst/Makefile.am
index fcedae2..5931c9f 100644
--- a/gst/Makefile.am
+++ b/gst/Makefile.am
@@ -12,17 +12,17 @@ AM_CFLAGS =\
if ARAVIS_WITH_GSTREAMER
-lib_LTLIBRARIES = libgstaravis.la
+gstplugin_LTLIBRARIES = libgstaravis.la
-libgstaravis_la_LIBADD = \
- $(ARAVIS_LIBS)
-
-libgstaravis_la_SOURCES = \
- gstaravis.c
-
-libgstaravis_la_HEADERS = \
- gstaravis.h
+libgstaravis_la_SOURCES = gstaravis.c
+libgstaravis_la_HEADERS = gstaravis.h
+libgstaravis_la_CFLAGS = $(ARAVIS_CFLAGS)
+libgstaravis_la_LIBADD = $(ARAVIS_LIBS)
+libgstaravis_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+libgstaravis_la_LIBTOOLFLAGS = --tag=disable-static
libgstaravis_ladir = $(includedir)/aravis
+noinst_HEADERS = gstaravis.h
+
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]