Make disabling the database feature (ENABLE_DATABASE=0) work by
placing various #ifdefs into the code and making the compilation of
some files optional.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/WebCore.pro b/WebCore/WebCore.pro
index 6e75ef7..9f83f5b 100644
--- a/WebCore/WebCore.pro
+++ b/WebCore/WebCore.pro
@@ -297,11 +297,6 @@
page/DOMWindow.idl \
page/History.idl \
page/Screen.idl \
- storage/Database.idl \
- storage/SQLResultSetRowList.idl \
- storage/VersionChangeCallback.idl \
- storage/SQLCallback.idl \
- storage/SQLResultSet.idl \
xml/DOMParser.idl \
xml/XMLSerializer.idl
@@ -315,9 +310,6 @@
bindings/js/JSCSSValueCustom.cpp \
bindings/js/JSCustomXPathNSResolver.cpp \
bindings/js/JSCustomVersionChangeCallback.cpp \
- bindings/js/JSCustomSQLCallback.cpp \
- bindings/js/JSDatabaseCustom.cpp \
- bindings/js/JSSQLResultSetRowListCustom.cpp \
bindings/js/JSDocumentCustom.cpp \
bindings/js/JSDOMExceptionConstructor.cpp \
bindings/js/JSDOMWindowCustom.cpp \
@@ -982,7 +974,18 @@
storage/DatabaseThread.cpp \
storage/DatabaseTracker.cpp \
storage/SQLResultSet.cpp \
- storage/SQLResultSetRowList.cpp
+ storage/SQLResultSetRowList.cpp \
+ bindings/js/JSCustomSQLCallback.cpp \
+ bindings/js/JSDatabaseCustom.cpp \
+ bindings/js/JSSQLResultSetRowListCustom.cpp
+
+ IDL_BINDINGS += \
+ storage/Database.idl \
+ storage/SQLResultSetRowList.idl \
+ storage/VersionChangeCallback.idl \
+ storage/SQLCallback.idl \
+ storage/SQLResultSet.idl
+
}
contains(DEFINES, ENABLE_ICONDATABASE=1) {