Reviewed by Martin Robinson.
check USE(GSTREAMER) instead of ENABLE(VIDEO) in gstreamer/ files
https://bugs.webkit.org/show_bug.cgi?id=46717
Define WTF_USE_GSTREAMER if configure found the gstreamer
development files and add the macro in the gcc command-line if needed.
* GNUmakefile.am:
* configure.ac:
WebCore:
Reviewed by Martin Robinson.
check USE(GSTREAMER) instead of ENABLE(VIDEO) in gstreamer/ files
https://bugs.webkit.org/show_bug.cgi?id=46717
Guard the gstreamer/ files with USE(GSTREAMER), which is more
explicit than ENABLE(VIDEO).
* GNUmakefile.am: Define WTF_USE_GSTREAMER only if GStreamer
support is enabled.
* platform/graphics/gstreamer/DataSourceGStreamer.cpp:
* platform/graphics/gstreamer/DataSourceGStreamer.h:
* platform/graphics/gstreamer/GOwnPtrGStreamer.cpp:
* platform/graphics/gstreamer/GOwnPtrGStreamer.h:
* platform/graphics/gstreamer/GStreamerGWorld.cpp:
* platform/graphics/gstreamer/GStreamerGWorld.h:
* platform/graphics/gstreamer/ImageGStreamer.h:
* platform/graphics/gstreamer/ImageGStreamerCG.mm:
* platform/graphics/gstreamer/ImageGStreamerCairo.cpp:
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
* platform/graphics/gstreamer/PlatformVideoWindow.h:
* platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp:
* platform/graphics/gstreamer/PlatformVideoWindowGtk.cpp:
* platform/graphics/gstreamer/VideoSinkGStreamer.cpp:
* platform/graphics/gstreamer/VideoSinkGStreamer.h:
* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
* platform/graphics/gstreamer/WebKitWebSourceGStreamer.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@68632
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2010-09-28 Philippe Normand <pnormand@igalia.com>
+
+ Reviewed by Martin Robinson.
+
+ check USE(GSTREAMER) instead of ENABLE(VIDEO) in gstreamer/ files
+ https://bugs.webkit.org/show_bug.cgi?id=46717
+
+ Define WTF_USE_GSTREAMER if configure found the gstreamer
+ development files and add the macro in the gcc command-line if needed.
+
+ * GNUmakefile.am:
+ * configure.ac:
+
2010-09-28 Kevin Ollivier <kevino@theolliviers.com>
[wx] Build fix, build sources that used to be built as part of other sources.
-DUSE_SYSTEM_MALLOC
endif
+if USE_GSTREAMER
+global_cppflags += \
+ -DWTF_USE_GSTREAMER=1
+endif
+
# ----
# GTK+ 2.x/3.x support
# ----
+2010-09-28 Philippe Normand <pnormand@igalia.com>
+
+ Reviewed by Martin Robinson.
+
+ check USE(GSTREAMER) instead of ENABLE(VIDEO) in gstreamer/ files
+ https://bugs.webkit.org/show_bug.cgi?id=46717
+
+ Guard the gstreamer/ files with USE(GSTREAMER), which is more
+ explicit than ENABLE(VIDEO).
+
+ * GNUmakefile.am: Define WTF_USE_GSTREAMER only if GStreamer
+ support is enabled.
+ * platform/graphics/gstreamer/DataSourceGStreamer.cpp:
+ * platform/graphics/gstreamer/DataSourceGStreamer.h:
+ * platform/graphics/gstreamer/GOwnPtrGStreamer.cpp:
+ * platform/graphics/gstreamer/GOwnPtrGStreamer.h:
+ * platform/graphics/gstreamer/GStreamerGWorld.cpp:
+ * platform/graphics/gstreamer/GStreamerGWorld.h:
+ * platform/graphics/gstreamer/ImageGStreamer.h:
+ * platform/graphics/gstreamer/ImageGStreamerCG.mm:
+ * platform/graphics/gstreamer/ImageGStreamerCairo.cpp:
+ * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
+ * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
+ * platform/graphics/gstreamer/PlatformVideoWindow.h:
+ * platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp:
+ * platform/graphics/gstreamer/PlatformVideoWindowGtk.cpp:
+ * platform/graphics/gstreamer/VideoSinkGStreamer.cpp:
+ * platform/graphics/gstreamer/VideoSinkGStreamer.h:
+ * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
+ * platform/graphics/gstreamer/WebKitWebSourceGStreamer.h:
+
2010-09-28 Kent Tamura <tkent@chromium.org>
Unreviewed, windows build fix for r68629.
webcoregtk_cppflags += \
-DWEBKITGTK_API_VERSION_STRING=\"@WEBKITGTK_API_VERSION@\" \
-DWTF_USE_SOUP=1 \
- -DWTF_USE_GSTREAMER=1 \
-I$(srcdir)/WebCore/accessibility/gtk \
-I$(srcdir)/WebCore/loader/gtk \
-I$(srcdir)/WebCore/page/gtk \
HTML_FEATURES += ENABLE_VIDEO=1
webcore_cppflags += -DENABLE_VIDEO=1
+if USE_GSTREAMER
if ENABLE_DEBUG
webcore_cppflags += -DGST_DISABLE_DEPRECATED
endif # END ENABLE_DEBUG
-lgstvideo-0.10 \
-lgstpbutils-0.10 \
-lgstapp-0.10
+endif # END USE_GSTREAMER
endif # END ENABLE_VIDEO
# ----
#include "config.h"
#include "DataSourceGStreamer.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include <gio/gio.h>
#include <glib.h>
iface->set_uri = webkit_data_src_uri_set_uri;
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#ifndef DataSourceGStreamer_h
#define DataSourceGStreamer_h
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include <glib-object.h>
#include <gst/base/gstbasesrc.h>
G_END_DECLS
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#endif
#include "config.h"
#include "GOwnPtrGStreamer.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include <gst/gstelement.h>
namespace WTF {
}
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#ifndef GOwnPtrGStreamer_h
#define GOwnPtrGStreamer_h
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "GOwnPtr.h"
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#endif
#include "config.h"
#include "GStreamerGWorld.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "GOwnPtrGStreamer.h"
#include <gst/gst.h>
}
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#ifndef GStreamerGWorld_h
#define GStreamerGWorld_h
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "PlatformVideoWindow.h"
#include "RefCounted.h"
};
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#endif
#ifndef ImageGStreamer_h
#define ImageGStreamer_h
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "BitmapImage.h"
#include <gst/gst.h>
};
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#endif
#include "config.h"
#include "ImageGStreamer.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
using namespace WebCore;
m_image = 0;
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#include "config.h"
#include "ImageGStreamer.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "GOwnPtr.h"
m_image = 0;
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#include "config.h"
#include "MediaPlayerPrivateGStreamer.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "ColorSpace.h"
#include "DataSourceGStreamer.h"
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#ifndef MediaPlayerPrivateGStreamer_h
#define MediaPlayerPrivateGStreamer_h
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include <wtf/Forward.h>
#include "MediaPlayerPrivate.h"
};
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#endif
#ifndef PlatformVideoWindow_h
#define PlatformVideoWindow_h
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "Widget.h"
#include <wtf/PassRefPtr.h>
};
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#endif
#include "config.h"
#include "PlatformVideoWindow.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "NotImplemented.h"
notImplemented();
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#include "config.h"
#include "PlatformVideoWindow.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include <gtk/gtk.h>
m_videoWindowId = 0;
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#include "config.h"
#include "VideoSinkGStreamer.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include <glib.h>
#include <gst/gst.h>
return (GstElement*)g_object_new(WEBKIT_TYPE_VIDEO_SINK, 0);
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#ifndef VideoSinkGStreamer_h
#define VideoSinkGStreamer_h
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include <glib-object.h>
#include <gst/video/gstvideosink.h>
G_END_DECLS
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#endif
#include "config.h"
#include "WebKitWebSourceGStreamer.h"
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "Document.h"
#include "GOwnPtr.h"
GST_ELEMENT_ERROR(m_src, RESOURCE, OPEN_READ, ("Can't show \"%s\"", m_src->priv->uri), (0));
}
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#ifndef WebKitWebSourceGStreamer_h
#define WebKitWebSourceGStreamer_h
-#if ENABLE(VIDEO)
+#if USE(GSTREAMER)
#include "Frame.h"
#include <gst/gst.h>
G_END_DECLS
-#endif // ENABLE(VIDEO)
+#endif // USE(GSTREAMER)
#endif
gstreamer-interfaces-0.10
gstreamer-pbutils-0.10
gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
- gstreamer-video-0.10])
+ gstreamer-video-0.10],
+ [have_gstreamer=yes],
+ [have_gstreamer=no])
+
AC_SUBST([GSTREAMER_CFLAGS])
AC_SUBST([GSTREAMER_LIBS])
fi
# GLib/GIO feature conditionals
AM_CONDITIONAL([USE_GSETTINGS], [test "$have_gsettings" = "yes"])
+# GStreamer feature conditional
+AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
+
# WebKit feature conditionals
AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
AM_CONDITIONAL([ENABLE_3D_TRANSFORMS],[test "$enable_3D_transforms" = "yes"])