camerabin2: Move basecamerasrc to gst-libs
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 13 Dec 2010 22:36:41 +0000 (19:36 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 23 Dec 2010 16:20:31 +0000 (13:20 -0300)
Move the base camera src class to gst-libs/gst/basecamerabinsrc to
allow it to be included from the tests.

13 files changed:
configure.ac
gst-libs/gst/Makefile.am
gst-libs/gst/basecamerabinsrc/Makefile.am [new file with mode: 0644]
gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.c [moved from gst/camerabin2/gstbasecamerasrc.c with 100% similarity]
gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.h [moved from gst/camerabin2/gstbasecamerasrc.h with 100% similarity]
gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.c [moved from gst/camerabin2/gstcamerabin-enum.c with 100% similarity]
gst-libs/gst/basecamerabinsrc/gstcamerabin-enum.h [moved from gst/camerabin2/gstcamerabin-enum.h with 100% similarity]
gst/camerabin2/Makefile.am
gst/camerabin2/gstcamerabin2.c
gst/camerabin2/gstv4l2camerasrc.c
gst/camerabin2/gstv4l2camerasrc.h
tests/check/Makefile.am
tests/check/elements/camerabin2.c

index 8e92c68..89cc9cb 100644 (file)
@@ -1781,6 +1781,7 @@ gst/vmnc/Makefile
 gst/y4m/Makefile
 gst-libs/Makefile
 gst-libs/gst/Makefile
+gst-libs/gst/basecamerabinsrc/Makefile
 gst-libs/gst/interfaces/Makefile
 gst-libs/gst/signalprocessor/Makefile
 gst-libs/gst/video/Makefile
index e48cdd8..561c1f4 100644 (file)
@@ -1,5 +1,9 @@
 
-SUBDIRS = interfaces signalprocessor video
+if BUILD_EXPERIMENTAL
+EXPERIMENTAL_LIBS=basecamerabinsrc
+endif
+
+SUBDIRS = $(EXPERIMENTAL_LIBS) interfaces signalprocessor video
 
 noinst_HEADERS = gst-i18n-plugin.h gettext.h
-DIST_SUBDIRS = interfaces signalprocessor video
+DIST_SUBDIRS = $(EXPERIMENTAL_LIBS) interfaces signalprocessor video
diff --git a/gst-libs/gst/basecamerabinsrc/Makefile.am b/gst-libs/gst/basecamerabinsrc/Makefile.am
new file mode 100644 (file)
index 0000000..d0b69b5
--- /dev/null
@@ -0,0 +1,26 @@
+
+lib_LTLIBRARIES = libgstbasecamerabinsrc-@GST_MAJORMINOR@.la
+
+CLEANFILES = $(BUILT_SOURCES)
+
+libgstbasecamerabinsrc_@GST_MAJORMINOR@_la_SOURCES = \
+        gstcamerabin-enum.c \
+       gstbasecamerasrc.c
+
+libgstbasecamerabinsrc_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/basecamerabinsrc
+libgstbasecamerabinsrc_@GST_MAJORMINOR@include_HEADERS = \
+       gstcamerabin-enum.h \
+       gstbasecamerasrc.h
+
+libgstbasecamerabinsrc_@GST_MAJORMINOR@_la_CFLAGS = \
+       $(GST_PLUGINS_BAD_CFLAGS) \
+       $(GST_PLUGINS_BASE_CFLAGS) \
+       -DGST_USE_UNSTABLE_API \
+       $(GST_CFLAGS)
+libgstbasecamerabinsrc_@GST_MAJORMINOR@_la_LIBADD = \
+        $(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_MAJORMINOR@.la \
+       $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) \
+       -lgstinterfaces-$(GST_MAJORMINOR)
+
+libgstbasecamerabinsrc_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
+
index 92229d7..4cb29bf 100644 (file)
@@ -4,8 +4,6 @@ libgstcamerabin2_la_SOURCES = gstviewfinderbin.c \
                                gstimagecapturebin.c \
                                gstvideorecordingbin.c \
                                camerabingeneral.c \
-                               gstbasecamerasrc.c \
-                               gstcamerabin-enum.c \
                                gstv4l2camerasrc.c \
                                gstcamerabin2.c \
                                gstplugin.c
@@ -17,6 +15,7 @@ libgstcamerabin2_la_CFLAGS = \
 
 libgstcamerabin2_la_LIBADD = \
        $(top_builddir)/gst-libs/gst/interfaces/libgstphotography-$(GST_MAJORMINOR).la \
+       $(top_builddir)/gst-libs/gst/basecamerabinsrc/libgstbasecamerabinsrc-$(GST_MAJORMINOR).la \
        $(GST_LIBS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \
        -lgstinterfaces-$(GST_MAJORMINOR) -lgsttag-$(GST_MAJORMINOR)
 
@@ -27,7 +26,5 @@ noinst_HEADERS = gstviewfinderbin.h \
                gstimagecapturebin.h \
                gstvideorecordingbin.h \
                camerabingeneral.h \
-               gstbasecamerasrc.h \
                gstv4l2camerasrc.h \
-               gstcamerabin2.h \
-               gstcamerabin-enum.h
+               gstcamerabin2.h
index f15dddf..ccb4c18 100644 (file)
@@ -49,9 +49,8 @@
 #include "config.h"
 #endif
 
-#include "gstbasecamerasrc.h"
+#include <gst/basecamerabinsrc/gstbasecamerasrc.h>
 #include "gstcamerabin2.h"
-#include "gstcamerabin-enum.h"
 
 GST_DEBUG_CATEGORY_STATIC (gst_camera_bin_debug);
 #define GST_CAT_DEFAULT gst_camera_bin_debug
index 451b98f..5ea070b 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "gstv4l2camerasrc.h"
 #include "camerabingeneral.h"
-#include "gstcamerabin-enum.h"
 
 enum
 {
index 5f476fc..580af28 100644 (file)
@@ -23,7 +23,7 @@
 #define __GST_V4L2_CAMERA_SRC_H__
 
 #include <gst/gst.h>
-#include "gstbasecamerasrc.h"
+#include <gst/basecamerabinsrc/gstbasecamerasrc.h>
 
 G_BEGIN_DECLS
 #define GST_TYPE_V4L2_CAMERA_SRC \
index 48052a1..864ce08 100644 (file)
@@ -197,6 +197,20 @@ elements_camerabin_LDADD = \
          -lgstinterfaces-@GST_MAJORMINOR@
 elements_camerabin_SOURCES = elements/camerabin.c
 
+if BUILD_EXPERIMENTAL
+elements_camerabin2_CFLAGS = \
+        -I$(top_builddir)/gst-libs \
+        $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
+        $(GST_PLUGINS_BAD_CFLAGS) $(GST_CHECK_CFLAGS) \
+        -DGST_USE_UNSTABLE_API
+elements_camerabin2_LDADD = \
+        $(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_MAJORMINOR@.la \
+        $(top_builddir)/gst-libs/gst/basecamerabinsrc/libgstbasecamerabinsrc-@GST_MAJORMINOR@.la \
+        $(GST_LIBS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \
+        $(GST_CHECK_LIBS)
+elements_camerabin2_SOURCES = elements/camerabin2.c
+endif
+
 elements_jifmux_CFLAGS = $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) $(AM_CFLAGS) $(EXIF_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
 elements_jifmux_LDADD = $(GST_CHECK_LIBS) $(EXIF_LIBS) $(LDADD) $(GST_PLUGINS_BASE_LIBS) -lgsttag-$(GST_MAJORMINOR)
 elements_jifmux_SOURCES = elements/jifmux.c
index 4f46e0c..95d1727 100644 (file)
@@ -29,6 +29,7 @@
 #include <glib.h>
 #include <gst/gst.h>
 #include <gst/check/gstcheck.h>
+#include <gst/basecamerabinsrc/gstbasecamerasrc.h>
 
 #define IMAGE_FILENAME "image"
 #define VIDEO_FILENAME "video"