use_libdl=yes, use_libdl=no)
AC_ARG_ENABLE(gst,
- AS_HELP_STRING([--enable-gst], [enable gstreamer on Win32]),
- w32_gst=yes, w32_gst=no)
+ AS_HELP_STRING([--disable-gst], [disable gstreamer (live preview)]),
+ gst_disable=yes, gst_disable=no)
AC_ARG_ENABLE(update-checks,
AS_HELP_STRING([--disable-update-checks], [disable update checks]),
case $host in
*-*-mingw*)
- if test "x$w32_gst" = "xyes" ; then
- GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0"
- else
+ if test "x$gst_disable" = "xyes" ; then
GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gio-2.0"
+ else
+ GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0"
fi
mingw_flag=yes
;;
*)
- GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0 libnotify gudev-1.0"
+ if test "x$gst_disable" = "xyes" ; then
+ GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gio-2.0 libnotify gudev-1.0"
+ else
+ GHB_PACKAGES="gtk+-2.0 >= 2.10 gthread-2.0 gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gio-2.0 libnotify gudev-1.0"
+ fi
mingw_flag=no
;;
esac
-if test "x$w32_gst" = "xyes" -o "x$mingw_flag" != "xyes" ; then
+if test "x$gst_disable" = "xno" ; then
CXXFLAGS="$CXXFLAGS -D_ENABLE_GST"
CFLAGS="$CFLAGS -D_ENABLE_GST"
fi
###############################################################################
ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
-GTK.CONFIGURE.extra += --host=$(BUILD.spec)
+GTK.CONFIGURE.extra += --host=$(BUILD.spec) --disable-gst
ifeq ($(HAS.dlfcn),1)
GTK.CONFIGURE.extra += --enable-dl
endif
GTK.CONFIGURE.extra += --disable-update-checks
endif
+ifeq (0,$(FEATURE.gst))
+ GTK.CONFIGURE.extra += --disable-gst
+endif
+
#include <gtk/gtk.h>
-#if !defined(_WIN32)
+#if defined(_ENABLE_GST)
#include <gst/gst.h>
+#endif
+
+#if !defined(_WIN32)
#include <libnotify/notify.h>
#include <dbus/dbus-glib.h>
#else
context = g_option_context_new ("- Rip and encode DVD or MPEG file");
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
g_option_context_add_group (context, gtk_get_option_group (TRUE));
-#if !defined(_WIN32)
+#if defined(_ENABLE_GST)
g_option_context_add_group (context, gst_init_get_option_group ());
#endif
g_option_context_parse (context, &argc, &argv, &error);
grp.add_option( '--disable-gtk-update-checks', default=False, action='store_true', help=h )
h = IfHost( 'enable GTK GUI (mingw)', '*-*-mingw*', none=optparse.SUPPRESS_HELP ).value
grp.add_option( '--enable-gtk-mingw', default=False, action='store_true', help=h )
+ h = IfHost( 'disable gstreamer (live preview)', '*-*-linux*', none=optparse.SUPPRESS_HELP ).value
+ grp.add_option( '--disable-gst', default=False, action='store_true', help=h )
h = IfHost( 'enable use of ffmpeg mpeg2 decoding', '*-*-*', none=optparse.SUPPRESS_HELP ).value
grp.add_option( '--enable-ff-mpeg2', default=False, action='store_true', help=h )
doc.add( 'FEATURE.gtk', int( not options.disable_gtk ))
doc.add( 'FEATURE.gtk.update.checks', int( not options.disable_gtk_update_checks ))
doc.add( 'FEATURE.gtk.mingw', int( options.enable_gtk_mingw ))
+ doc.add( 'FEATURE.gst', int( not options.disable_gst ))
doc.add( 'FEATURE.ff.mpeg2', int( options.enable_ff_mpeg2 ))
doc.add( 'FEATURE.xcode', int( not (Tools.xcodebuild.fail or options.disable_xcode or options.cross) ))