Remove flex and bison build dependencies; commit generated XPath parser
[WebKit-https.git] / Source / cmake / WebKitMacros.cmake
index a987e4f..874e566 100644 (file)
@@ -243,21 +243,6 @@ macro(GENERATE_DOM_NAMES _namespace _attrs)
         VERBATIM)
 endmacro()
 
-
-macro(GENERATE_GRAMMAR _prefix _input _output_header _output_source _features)
-    # This is a workaround for winflexbison, which does not work corretly when
-    # run in a different working directory than the installation directory.
-    get_filename_component(_working_directory ${BISON_EXECUTABLE} PATH)
-
-    add_custom_command(
-        OUTPUT ${_output_header} ${_output_source}
-        MAIN_DEPENDENCY ${_input}
-        DEPENDS ${_input}
-        COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/makegrammar.pl --outputDir ${DERIVED_SOURCES_WEBCORE_DIR} --extraDefines "${_features}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --bison "${BISON_EXECUTABLE}" --symbolsPrefix ${_prefix} ${_input}
-        WORKING_DIRECTORY ${_working_directory}
-        VERBATIM)
-endmacro()
-
 macro(MAKE_HASH_TOOLS _source)
     get_filename_component(_name ${_source} NAME_WE)