Reviewed by Adele.
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Sep 2006 23:11:03 +0000 (23:11 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Sep 2006 23:11:03 +0000 (23:11 +0000)
        Fix Qt/Linux build.

        * CMakeLists.txt: Add dom/RangeException.idl to build & fix feature defines.

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

WebCore/CMakeLists.txt
WebCore/ChangeLog

index 6b5d12a..3d6ca01 100644 (file)
@@ -63,8 +63,12 @@ kde4_automoc(platform/qt/SharedTimerQt.cpp)
 kde4_automoc(platform/qt/ScrollViewCanvasQt.cpp)
 kde4_automoc(platform/qt/ResourceLoaderManager.cpp)
 
 kde4_automoc(platform/qt/ScrollViewCanvasQt.cpp)
 kde4_automoc(platform/qt/ResourceLoaderManager.cpp)
 
+SET(FEATURE_DEFINES_JAVASCRIPT LANGUAGE_JAVASCRIPT XPATH_SUPPORT)
+
 # rules for generated files
 IF (WEBKIT_USE_SVG_SUPPORT)
 # rules for generated files
 IF (WEBKIT_USE_SVG_SUPPORT)
+SET(FEATURE_DEFINES_JAVASCRIPT LANGUAGE_JAVASCRIPT SVG_SUPPORT)
+
 set(IDL_BINDINGS_SVG
 
 # These three don't need generation!
 set(IDL_BINDINGS_SVG
 
 # These three don't need generation!
@@ -89,7 +93,7 @@ set(IDL_BINDINGS_SVG
   ksvg2/svg/SVGAnimatedRect.idl
   ksvg2/svg/SVGAnimatedString.idl
 
   ksvg2/svg/SVGAnimatedRect.idl
   ksvg2/svg/SVGAnimatedString.idl
 
-  
+
   ksvg2/svg/SVGMatrix.idl
   ksvg2/svg/SVGTransform.idl
   ksvg2/svg/SVGLength.idl
   ksvg2/svg/SVGMatrix.idl
   ksvg2/svg/SVGTransform.idl
   ksvg2/svg/SVGLength.idl
@@ -155,6 +159,7 @@ set(IDL_BINDINGS
   dom/OverflowEvent.idl
   dom/NodeIterator.idl
   dom/TreeWalker.idl
   dom/OverflowEvent.idl
   dom/NodeIterator.idl
   dom/TreeWalker.idl
+  dom/RangeException.idl
   html/CanvasGradient.idl
   html/CanvasPattern.idl
   html/CanvasRenderingContext2D.idl
   html/CanvasGradient.idl
   html/CanvasPattern.idl
   html/CanvasRenderingContext2D.idl
@@ -224,7 +229,7 @@ set(WebCore-unity-IDLGeneratedSources )
 foreach (idl ${IDL_BINDINGS})
    get_filename_component(_basename ${idl} NAME_WE)
    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h
 foreach (idl ${IDL_BINDINGS})
    get_filename_component(_basename ${idl} NAME_WE)
    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h
-      COMMAND perl -I${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts ${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts/generate-bindings.pl  --defines \"SVG_SUPPORT=${WEBKIT_USE_SVG_SUPPORT}\" --generator JS --include ${CMAKE_SOURCE_DIR}/WebCore/dom --include ${CMAKE_SOURCE_DIR}/WebCore/html --include ${CMAKE_SOURCE_DIR}/WebCore/xml --include ${CMAKE_SOURCE_DIR}/WebCore/ksvg2/svg --outputdir ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${idl}
+      COMMAND perl -I${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts ${CMAKE_CURRENT_SOURCE_DIR}/bindings/scripts/generate-bindings.pl  --defines \"${FEATURE_DEFINES_JAVASCRIPT}\" --generator JS --include ${CMAKE_SOURCE_DIR}/WebCore/dom --include ${CMAKE_SOURCE_DIR}/WebCore/html --include ${CMAKE_SOURCE_DIR}/WebCore/xml --include ${CMAKE_SOURCE_DIR}/WebCore/ksvg2/svg --outputdir ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${idl}
       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${idl} )
    set(WebCore-unity-IDLGeneratedSources ${WebCore-unity-IDLGeneratedSources} ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h )
 endforeach (idl)
       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${idl} )
    set(WebCore-unity-IDLGeneratedSources ${WebCore-unity-IDLGeneratedSources} ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.cpp ${CMAKE_CURRENT_BINARY_DIR}/JS${_basename}.h )
 endforeach (idl)
index 1c351c1..24e33b9 100644 (file)
@@ -1,5 +1,13 @@
 2006-09-11  Nikolas Zimmermann  <zimmermann@kde.org>
 
 2006-09-11  Nikolas Zimmermann  <zimmermann@kde.org>
 
+        Reviewed by Adele.
+
+        Fix Qt/Linux build.
+
+        * CMakeLists.txt: Add dom/RangeException.idl to build & fix feature defines.
+
+2006-09-11  Nikolas Zimmermann  <zimmermann@kde.org>
+
         Reviewed by eseidel.  Landed by eseidel.
 
         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10750
         Reviewed by eseidel.  Landed by eseidel.
 
         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10750