Title: [90248] trunk/Source/WebCore
Revision
90248
Author
par...@webkit.org
Date
2011-07-01 11:19:50 -0700 (Fri, 01 Jul 2011)

Log Message

2011-07-01  Patrick Gansterer  <par...@webkit.org>

        Reviewed by Daniel Bates.

        [CMake] Don't compile unused bindings
        https://bugs.webkit.org/show_bug.cgi?id=63741

        * UseJSC.cmake: Added IF (ENABLE_XXX) around files.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (90247 => 90248)


--- trunk/Source/WebCore/ChangeLog	2011-07-01 18:19:17 UTC (rev 90247)
+++ trunk/Source/WebCore/ChangeLog	2011-07-01 18:19:50 UTC (rev 90248)
@@ -1,3 +1,12 @@
+2011-07-01  Patrick Gansterer  <par...@webkit.org>
+
+        Reviewed by Daniel Bates.
+
+        [CMake] Don't compile unused bindings
+        https://bugs.webkit.org/show_bug.cgi?id=63741
+
+        * UseJSC.cmake: Added IF (ENABLE_XXX) around files.
+
 2011-07-01  Joone Hur  <joone....@collabora.co.uk>
 
         Reviewed by Martin Robinson.

Modified: trunk/Source/WebCore/UseJSC.cmake (90247 => 90248)


--- trunk/Source/WebCore/UseJSC.cmake	2011-07-01 18:19:17 UTC (rev 90247)
+++ trunk/Source/WebCore/UseJSC.cmake	2011-07-01 18:19:50 UTC (rev 90248)
@@ -11,7 +11,6 @@
     bindings/js/DOMObjectHashTableMap.cpp
     bindings/js/DOMWrapperWorld.cpp
     bindings/js/GCController.cpp
-    bindings/js/IDBBindingUtilities.cpp
     bindings/js/JSAttrCustom.cpp
     bindings/js/JSArrayBufferCustom.cpp
     bindings/js/JSDataViewCustom.cpp
@@ -31,10 +30,7 @@
     bindings/js/JSClipboardCustom.cpp
     bindings/js/JSConsoleCustom.cpp
     bindings/js/JSCoordinatesCustom.cpp
-    bindings/js/JSCustomSQLStatementErrorCallback.cpp
     bindings/js/JSCustomVoidCallback.cpp
-    bindings/js/JSCustomXPathNSResolver.cpp
-    bindings/js/JSDOMApplicationCacheCustom.cpp
     bindings/js/JSDOMBinding.cpp
     bindings/js/JSDOMFormDataCustom.cpp
     bindings/js/JSDOMGlobalObject.cpp
@@ -59,7 +55,6 @@
     bindings/js/JSEventSourceCustom.cpp
     bindings/js/JSEventTarget.cpp
     bindings/js/JSExceptionBase.cpp
-    bindings/js/JSFileReaderCustom.cpp
     bindings/js/JSFloat32ArrayCustom.cpp
     bindings/js/JSFloat64ArrayCustom.cpp
     bindings/js/JSGeolocationCustom.cpp
@@ -81,8 +76,6 @@
     bindings/js/JSHTMLSelectElementCustom.cpp
     bindings/js/JSHTMLStyleElementCustom.cpp
     bindings/js/JSHistoryCustom.cpp
-    bindings/js/JSIDBAnyCustom.cpp
-    bindings/js/JSIDBKeyCustom.cpp
     bindings/js/JSImageConstructor.cpp
     bindings/js/JSImageDataCustom.cpp
     bindings/js/JSInt16ArrayCustom.cpp
@@ -110,12 +103,8 @@
     bindings/js/JSOptionConstructor.cpp
     bindings/js/JSPluginElementFunctions.cpp
     bindings/js/JSProcessingInstructionCustom.cpp
-    bindings/js/JSSQLResultSetRowListCustom.cpp
-    bindings/js/JSSQLTransactionCustom.cpp
-    bindings/js/JSSQLTransactionSyncCustom.cpp
     bindings/js/JSScriptProfileNodeCustom.cpp
     bindings/js/JSSharedWorkerCustom.cpp
-    bindings/js/JSStorageCustom.cpp
     bindings/js/JSStyleSheetCustom.cpp
     bindings/js/JSStyleSheetListCustom.cpp
     bindings/js/JSTextCustom.cpp
@@ -131,14 +120,12 @@
     bindings/js/JSWebKitCSSKeyframesRuleCustom.cpp
     bindings/js/JSWebKitCSSMatrixCustom.cpp
     bindings/js/JSWebKitPointCustom.cpp
-    bindings/js/JSWebSocketCustom.cpp
     bindings/js/JSWorkerContextBase.cpp
     bindings/js/JSWorkerContextCustom.cpp
     bindings/js/JSWorkerCustom.cpp
     bindings/js/JSXMLHttpRequestCustom.cpp
     bindings/js/JSXMLHttpRequestUploadCustom.cpp
     bindings/js/JSXSLTProcessorCustom.cpp
-    bindings/js/JSXPathResultCustom.cpp
     bindings/js/_javascript_CallFrame.cpp
     bindings/js/PageScriptDebugServer.cpp
     bindings/js/ScheduledAction.cpp
@@ -175,6 +162,56 @@
     bridge/jsc/BridgeJSC.cpp
 )
 
+
+IF (ENABLE_BLOB)
+    LIST(APPEND WebCore_SOURCES
+        bindings/js/JSFileReaderCustom.cpp
+    )
+ENDIF ()
+
+IF (ENABLE_DATABASE)
+    LIST(APPEND WebCore_SOURCES
+        bindings/js/JSCustomSQLStatementErrorCallback.cpp
+        bindings/js/JSSQLResultSetRowListCustom.cpp
+        bindings/js/JSSQLTransactionCustom.cpp
+        bindings/js/JSSQLTransactionSyncCustom.cpp
+    )
+ENDIF ()
+
+IF (ENABLE_DOM_STORAGE)
+    LIST(APPEND WebCore_SOURCES
+        bindings/js/JSStorageCustom.cpp
+    )
+ENDIF ()
+
+IF (ENABLE_INDEXED_DATABASE)
+    LIST(APPEND WebCore_SOURCES
+        bindings/js/IDBBindingUtilities.cpp
+        bindings/js/JSIDBAnyCustom.cpp
+        bindings/js/JSIDBKeyCustom.cpp
+    )
+ENDIF ()
+
+IF (ENABLE_WEB_SOCKETS)
+    LIST(APPEND WebCore_SOURCES
+        bindings/js/JSWebSocketCustom.cpp
+    )
+ENDIF ()
+
+IF (ENABLE_OFFLINE_WEB_APPLICATIONS)
+    LIST(APPEND WebCore_SOURCES
+        bindings/js/JSDOMApplicationCacheCustom.cpp
+    )
+ENDIF ()
+
+IF (ENABLE_XPATH)
+    LIST(APPEND WebCore_SOURCES
+        bindings/js/JSCustomXPathNSResolver.cpp
+        bindings/js/JSXPathResultCustom.cpp
+    )
+ENDIF ()
+
+
 LIST(APPEND SCRIPTS_BINDINGS
     ${WEBCORE_DIR}/bindings/scripts/CodeGenerator.pm
 )
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to