From: mrobinson@webkit.org Date: Thu, 17 May 2012 00:28:28 +0000 (+0000) Subject: Fix the indexed database build for GTK+. X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=65ea765688cabfbc58d9f1ca30b26db81d474bba 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. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@117368 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index 40718cf..daa0208 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,12 @@ +2012-05-16 Martin Robinson + + 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 Animated GIFs in page cache get updated diff --git a/Source/WebCore/GNUmakefile.list.am b/Source/WebCore/GNUmakefile.list.am index 3a6b103..baca56f 100644 --- a/Source/WebCore/GNUmakefile.list.am +++ b/Source/WebCore/GNUmakefile.list.am @@ -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 # ---- diff --git a/Source/WebCore/bindings/gobject/GNUmakefile.am b/Source/WebCore/bindings/gobject/GNUmakefile.am index a806be6..c702528 100644 --- a/Source/WebCore/bindings/gobject/GNUmakefile.am +++ b/Source/WebCore/bindings/gobject/GNUmakefile.am @@ -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) $< diff --git a/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm b/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm index 177d404..20f7572 100644 --- a/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm +++ b/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm @@ -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; }