Split X11 support to libgstvaapi-x11-*.so.*
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Tue, 16 Mar 2010 09:39:07 +0000 (09:39 +0000)
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Tue, 16 Mar 2010 09:39:07 +0000 (09:39 +0000)
configure.ac
gst-libs/gst/vaapi/Makefile.am
sys/vaapisink/Makefile.am
tests/Makefile.am

index 35f39f9..e6a300d 100644 (file)
@@ -66,6 +66,11 @@ dnl Check for tools
 AC_PROG_CC
 AC_PROG_LIBTOOL
 
+dnl Check for GLib
+PKG_CHECK_MODULES([GLIB], [glib-2.0])
+AC_SUBST(GLIB_CFLAGS)
+AC_SUBST(GLIB_LIBS)
+
 dnl Check for GStreamer
 PKG_CHECK_MODULES([GST],
     [gstreamer-$GST_MAJORMINOR >= $GST_VERSION_REQUIRED]
index 656ba43..25386c6 100644 (file)
@@ -1,4 +1,10 @@
-lib_LTLIBRARIES = libgstvaapi-@GST_MAJORMINOR@.la
+lib_LTLIBRARIES =                              \
+       libgstvaapi-@GST_MAJORMINOR@.la         \
+       libgstvaapi-x11-@GST_MAJORMINOR@.la     \
+       $(NULL)
+
+libgstvaapi_includedir =                       \
+       $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/vaapi
 
 libgstvaapi_source_c =                         \
        gstvaapidisplay.c                       \
@@ -34,6 +40,23 @@ libgstvaapi_source_priv_h =                  \
        gstvaapiutils.h                         \
        $(NULL)
 
+libgstvaapi_x11_source_c =                     \
+       gstvaapidisplay_x11.c                   \
+       gstvaapiutils.c                         \
+       gstvaapiutils_x11.c                     \
+       gstvaapiwindow_x11.c                    \
+       $(NULL)
+
+libgstvaapi_x11_source_h =                     \
+       gstvaapidisplay_x11.h                   \
+       gstvaapiwindow_x11.h                    \
+       $(NULL)
+
+libgstvaapi_x11_source_priv_h =                        \
+       gstvaapiutils.h                         \
+       gstvaapiutils_x11.h                     \
+       $(NULL)
+
 libgstvaapi_@GST_MAJORMINOR@_la_SOURCES =      \
        $(libgstvaapi_source_c)                 \
        $(libgstvaapi_source_priv_h)            \
@@ -44,7 +67,7 @@ libgstvaapi_@GST_MAJORMINOR@include_HEADERS = \
        $(NULL)
 
 libgstvaapi_@GST_MAJORMINOR@includedir =       \
-       $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/vaapi
+       $(libgstvaapi_includedir)
 
 libgstvaapi_@GST_MAJORMINOR@_la_CFLAGS =       \
        -I$(top_srcdir)/gst-libs                \
@@ -59,24 +82,29 @@ libgstvaapi_@GST_MAJORMINOR@_la_LIBADD =    \
        $(LIBVA_LIBS)                           \
        $(NULL)
 
-libgstvaapi_@GST_MAJORMINOR@_la_SOURCES +=     \
-       gstvaapidisplay_x11.c                   \
-       gstvaapiutils_x11.c                     \
-       gstvaapiwindow_x11.c                    \
+libgstvaapi_x11_@GST_MAJORMINOR@_la_SOURCES =  \
+       $(libgstvaapi_x11_source_c)             \
+       $(libgstvaapi_x11_source_priv_h)        \
        $(NULL)
 
-libgstvaapi_@GST_MAJORMINOR@include_HEADERS += \
-       gstvaapidisplay_x11.h                   \
-       gstvaapiutils_x11.h                     \
-       gstvaapiwindow_x11.h                    \
+libgstvaapi_x11_@GST_MAJORMINOR@include_HEADERS = \
+       $(libgstvaapi_x11_source_h)             \
        $(NULL)
 
-libgstvaapi_@GST_MAJORMINOR@_la_CFLAGS +=      \
+libgstvaapi_x11_@GST_MAJORMINOR@includedir =   \
+       $(libgstvaapi_includedir)
+
+libgstvaapi_x11_@GST_MAJORMINOR@_la_CFLAGS =   \
+       -I$(top_srcdir)/gst-libs                \
+       $(GLIB_CFLAGS)                          \
+       $(GST_BASE_CFLAGS)                      \
        $(LIBVA_X11_CFLAGS)                     \
        $(NULL)
 
-libgstvaapi_@GST_MAJORMINOR@_la_LIBADD +=      \
+libgstvaapi_x11_@GST_MAJORMINOR@_la_LIBADD =   \
+       $(GLIB_LIBS)                            \
        $(LIBVA_X11_LIBS)                       \
+       libgstvaapi-@GST_MAJORMINOR@.la         \
        $(NULL)
 
 # Extra clean files so that maintainer-clean removes *everything*
index 7ef17af..9fdb921 100644 (file)
@@ -4,7 +4,7 @@ libgstvaapi_CFLAGS = \
        -I$(top_srcdir)/gst-libs
 
 libgstvaapi_LIBS = \
-       $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-$(GST_MAJORMINOR).la
+       $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11-$(GST_MAJORMINOR).la
 
 libgstvaapisink_la_SOURCES =   \
        gstvaapisink.c          \
index cc7cdcf..de69c18 100644 (file)
@@ -10,7 +10,7 @@ TEST_CFLAGS = \
        $(X11_CFLAGS)
 
 TEST_LIBS = \
-       $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-@GST_MAJORMINOR@.la \
+       $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11-@GST_MAJORMINOR@.la \
        $(X11_LIBS)
 
 test_display_SOURCES   = test-display.c