Reviewed by Xan Lopez.
[GTK] GTK port doesnt compile with video turned off
https://bugs.webkit.org/show_bug.cgi?id=44236
Generate the audio GObject DOM bindings only if video enabled
* WebCore/GNUMakefile.am
* WebCore/bindings/gobject/WebKitHTMLElementWrapperFactory.cpp:
Make the audio code invocation conditional
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@66009
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
DerivedSources/webkit/WebKitDOMHTMLAnchorElement.h \
DerivedSources/webkit/WebKitDOMHTMLAppletElement.h \
DerivedSources/webkit/WebKitDOMHTMLAreaElement.h \
- DerivedSources/webkit/WebKitDOMHTMLAudioElement.h \
DerivedSources/webkit/WebKitDOMHTMLBaseElement.h \
DerivedSources/webkit/WebKitDOMHTMLBaseFontElement.h \
DerivedSources/webkit/WebKitDOMHTMLBlockquoteElement.h \
DerivedSources/webkit/WebKitDOMHTMLAppletElementPrivate.h \
DerivedSources/webkit/WebKitDOMHTMLAreaElement.cpp \
DerivedSources/webkit/WebKitDOMHTMLAreaElementPrivate.h \
- DerivedSources/webkit/WebKitDOMHTMLAudioElement.cpp \
- DerivedSources/webkit/WebKitDOMHTMLAudioElementPrivate.h \
DerivedSources/webkit/WebKitDOMHTMLBaseElement.cpp \
DerivedSources/webkit/WebKitDOMHTMLBaseElementPrivate.h \
DerivedSources/webkit/WebKitDOMHTMLBaseFontElement.cpp \
DerivedSources/webkit/WebKitDOMGeolocationPrivate.h
endif
+if ENABLE_VIDEO
+webkitgtk_built_h_api += \
+ $(top_builddir)/DerivedSources/webkit/WebKitDOMHTMLAudioElement.h
+
+webkitgtk_gdom_built_sources += \
+ DerivedSources/webkit/WebKitDOMHTMLAudioElement.cpp \
+ DerivedSources/webkit/WebKitDOMHTMLAudioElementPrivate.h
+endif
+
# webkitenumtypes.{h,cpp} cannot be in webkitgtk_built_h_api, because
# the rule that builds it depends on webkitgtk_built_h_api (circular dependency).
webkitgtk_built_sources += \
+2010-08-25 Zaheer Ahmad <zaheer.mot@gmail.com>
+
+ Reviewed by Xan Lopez.
+
+ [GTK] GTK port doesnt compile with video turned off
+ https://bugs.webkit.org/show_bug.cgi?id=44236
+
+ Generate the audio GObject DOM bindings only if video enabled
+ * WebCore/GNUMakefile.am
+ * WebCore/bindings/gobject/WebKitHTMLElementWrapperFactory.cpp:
+ Make the audio code invocation conditional
+
+
2010-08-24 Pavel Podivilov <podivilov@chromium.org>
Reviewed by Pavel Feldman.
#include "webkit/WebKitDOMHTMLAnchorElementPrivate.h"
#include "webkit/WebKitDOMHTMLAppletElementPrivate.h"
#include "webkit/WebKitDOMHTMLAreaElementPrivate.h"
-#include "webkit/WebKitDOMHTMLAudioElementPrivate.h"
#include "webkit/WebKitDOMHTMLBRElementPrivate.h"
#include "webkit/WebKitDOMHTMLBaseElementPrivate.h"
#include "webkit/WebKitDOMHTMLBaseFontElementPrivate.h"
#include "webkit/WebKitDOMHTMLUListElementPrivate.h"
#include "webkit/webkitdom.h"
+#if ENABLE(VIDEO)
+#include "webkit/WebKitDOMHTMLAudioElementPrivate.h"
+#endif
+
#include <wtf/text/CString.h>
namespace WebKit {
return wrapHTMLAreaElement(static_cast<HTMLAreaElement*>(element.get()));
}
+#if ENABLE(VIDEO)
static gpointer createAudioWrapper(PassRefPtr<HTMLElement> element)
{
return wrapHTMLAudioElement(static_cast<HTMLAudioElement*>(element.get()));
}
+#endif
static gpointer createBaseWrapper(PassRefPtr<HTMLElement> element)
{
if (map.isEmpty()) {
map.set(aTag.localName().impl(), createAnchorWrapper);
map.set(appletTag.localName().impl(), createAppletWrapper);
+#if ENABLE(VIDEO)
map.set(audioTag.localName().impl(), createAudioWrapper);
+#endif
map.set(areaTag.localName().impl(), createAreaWrapper);
map.set(baseTag.localName().impl(), createBaseWrapper);
map.set(basefontTag.localName().impl(), createBaseFontWrapper);