Fix the indexed database build for GTK+.
authormrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 May 2012 00:28:28 +0000 (00:28 +0000)
committermrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 May 2012 00:28:28 +0000 (00:28 +0000)
* GNUmakefile.list.am: Add missing files to the build.
* bindings/gobject/GNUmakefile.am: Be smarter about filtering out deactivating indexed database.
* bindings/scripts/CodeGeneratorGObject.pm:
(SkipAttribute): Always skip attributes that return indexed database types.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@117368 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/bindings/gobject/GNUmakefile.am
Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm

index 40718cf..daa0208 100644 (file)
@@ -1,3 +1,12 @@
+2012-05-16  Martin Robinson  <mrobinson@igalia.com>
+
+        Fix the indexed database build for GTK+.
+
+        * GNUmakefile.list.am: Add missing files to the build.
+        * bindings/gobject/GNUmakefile.am: Be smarter about filtering out deactivating indexed database.
+        * bindings/scripts/CodeGeneratorGObject.pm:
+        (SkipAttribute): Always skip attributes that return indexed database types.
+
 2012-05-16  Jon Lee  <jonlee@apple.com>
 
         Animated GIFs in page cache get updated
index 3a6b103..baca56f 100644 (file)
@@ -4930,6 +4930,10 @@ if ENABLE_INDEXED_DATABASE
 webcore_built_sources += \
        DerivedSources/WebCore/JSIDBAny.cpp \
        DerivedSources/WebCore/JSIDBAny.h \
+       DerivedSources/WebCore/JSIDBCursor.cpp \
+       DerivedSources/WebCore/JSIDBCursor.h \
+       DerivedSources/WebCore/JSIDBCursorWithValue.cpp \
+       DerivedSources/WebCore/JSIDBCursorWithValue.h \
        DerivedSources/WebCore/JSIDBDatabaseException.cpp \
        DerivedSources/WebCore/JSIDBDatabaseException.h \
        DerivedSources/WebCore/JSIDBDatabase.cpp \
@@ -4938,6 +4942,8 @@ webcore_built_sources += \
        DerivedSources/WebCore/JSIDBFactory.h \
        DerivedSources/WebCore/JSIDBIndex.cpp \
        DerivedSources/WebCore/JSIDBIndex.h \
+       DerivedSources/WebCore/JSIDBKey.cpp \
+       DerivedSources/WebCore/JSIDBKey.h \
        DerivedSources/WebCore/JSIDBKeyRange.cpp \
        DerivedSources/WebCore/JSIDBKeyRange.h \
        DerivedSources/WebCore/JSIDBObjectStore.cpp \
@@ -4945,20 +4951,30 @@ webcore_built_sources += \
        DerivedSources/WebCore/JSIDBRequest.cpp \
        DerivedSources/WebCore/JSIDBRequest.h \
        DerivedSources/WebCore/JSIDBTransaction.cpp \
-       DerivedSources/WebCore/JSIDBTransaction.h
+       DerivedSources/WebCore/JSIDBTransaction.h \
+       DerivedSources/WebCore/JSIDBVersionChangeEvent.cpp \
+       DerivedSources/WebCore/JSIDBVersionChangeEvent.h \
+       DerivedSources/WebCore/JSIDBVersionChangeRequest.cpp \
+       DerivedSources/WebCore/JSIDBVersionChangeRequest.h
 
 dom_binding_idls += \
        $(WebCore)/Modules/indexeddb/DOMWindowIndexedDatabase.idl \
        $(WebCore)/Modules/indexeddb/IDBAny.idl \
-       $(WebCore)/Modules/indexeddb/IDBDatabase.idl \
+       $(WebCore)/Modules/indexeddb/IDBCursor.idl \
+       $(WebCore)/Modules/indexeddb/IDBCursorWithValue.idl \
        $(WebCore)/Modules/indexeddb/IDBDatabaseException.idl \
+       $(WebCore)/Modules/indexeddb/IDBDatabase.idl \
        $(WebCore)/Modules/indexeddb/IDBFactory.idl \
        $(WebCore)/Modules/indexeddb/IDBIndex.idl \
+       $(WebCore)/Modules/indexeddb/IDBKey.idl \
        $(WebCore)/Modules/indexeddb/IDBKeyRange.idl \
        $(WebCore)/Modules/indexeddb/IDBObjectStore.idl \
        $(WebCore)/Modules/indexeddb/IDBRequest.idl \
        $(WebCore)/Modules/indexeddb/IDBTransaction.idl \
+       $(WebCore)/Modules/indexeddb/IDBVersionChangeEvent.idl \
+       $(WebCore)/Modules/indexeddb/IDBVersionChangeRequest.idl \
        $(WebCore)/Modules/indexeddb/WorkerContextIndexedDatabase.idl
+
 endif # END ENABLE_INDEXED_DATABASE
 
 # ----
index a806be6..c702528 100644 (file)
@@ -469,6 +469,6 @@ $(top_builddir)/DerivedSources/webkit/WebKitDOMCustom.h: $(WebCore)/bindings/gob
        $(AM_V_GEN)cp -f $< $@
 
 # Filter out SVG and IndexedDB for now
-gdom_feature_defines := $(filter-out ENABLE_INDEXED_DATABASE=1, $(filter-out ENABLE_SVG%, $(FEATURE_DEFINES)))
+gdom_feature_defines := $(filter-out ENABLE_INDEXED_DATABASE=1, $(filter-out ENABLE_SVG%, $(FEATURE_DEFINES))) ENABLE_INDEXED_DATABASE=0
 DerivedSources/webkit/WebKitDOM%.cpp DerivedSources/webkit/WebKitDOM%.h DerivedSources/webkit/WebKitDOM%Private.h: %.idl $(SCRIPTS_FOR_GENERATE_BINDINGS) $(WebCore)/bindings/scripts/CodeGeneratorGObject.pm $(WebCore)/bindings/gobject/GNUmakefile.am $(supplemental_dependency_file)
        $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --include $(WebCore)/dom --include $(WebCore)/html --include $(WebCore)/css --include $(WebCore)/page --include $(WebCore)/xml --include $(WebCore)/svg --outputDir "$(GENSOURCES_WEBKIT)" --defines "LANGUAGE_GOBJECT=1 $(gdom_feature_defines)" --generator GObject --supplementalDependencyFile $(supplemental_dependency_file) $<
index 177d404..20f7572 100644 (file)
@@ -198,6 +198,11 @@ sub SkipAttribute {
         return 1;
     }
 
+    # Skip indexed database attributes for now, they aren't yet supported for the GObject generator.
+    if ($attribute->signature->name =~ /^webkitIndexedDB/ or $attribute->signature->name =~ /^webkitIDB/) {
+        return 1;
+    }
+
     return 0;
 }