Changeset 61323 in webkit


Ignore:
Timestamp:
Jun 17, 2010 7:47:03 AM (14 years ago)
Author:
abecsi@webkit.org
Message:

Update CMake build system to use new script for generating source files
with gperf (r61091).
https://bugs.webkit.org/show_bug.cgi?id=40628

Patch by Lucas De Marchi <lucas.demarchi@profusion.mobi> on 2010-06-17
Reviewed by Gustavo Noronha.

  • cmake/WebKitGenerators.cmake:

WebCore: Update CMake build system to use new script for generating source files
with gperf (r61091).
This updates also the build system to cope with recent changes to
source files list.
https://bugs.webkit.org/show_bug.cgi?id=40628

Patch by Lucas De Marchi <lucas.demarchi@profusion.mobi> on 2010-06-17
Reviewed by Gustavo Noronha.

No new tests since it's just compilation fixes.

  • CMakeLists.txt:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r61319 r61323  
     12010-06-17  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        Update CMake build system to use new script for generating source files
     6        with gperf (r61091).
     7        https://bugs.webkit.org/show_bug.cgi?id=40628
     8
     9        * cmake/WebKitGenerators.cmake:
     10
    1112010-06-17  Mark Brand  <mabrand@mabrand.nl>
    212
  • trunk/WebCore/CMakeLists.txt

    r61255 r61323  
    347347    storage/Storage.idl
    348348    storage/StorageEvent.idl
     349
     350    websockets/WebSocket.idl
    349351
    350352    workers/AbstractWorker.idl
     
    512514    ${DERIVED_SOURCES_DIR}/CSSGrammar.cpp
    513515    ${DERIVED_SOURCES_DIR}/HTMLElementFactory.cpp
    514     ${DERIVED_SOURCES_DIR}/HTMLEntityNames.c
     516    ${DERIVED_SOURCES_DIR}/HTMLEntityNames.cpp
    515517    ${DERIVED_SOURCES_DIR}/HTMLNames.cpp
    516518    ${DERIVED_SOURCES_DIR}/JSHTMLElementWrapperFactory.cpp
     
    10171019    inspector/InspectorFrontendHost.cpp
    10181020    inspector/InspectorResource.cpp
     1021    inspector/InspectorValues.cpp
    10191022    inspector/InspectorTimelineAgent.cpp
    10201023    inspector/TimelineRecordFactory.cpp
     
    14031406    storage/StorageNamespaceImpl.cpp
    14041407    storage/StorageSyncManager.cpp
     1408
     1409    websockets/ThreadableWebSocketChannel.cpp
     1410    websockets/WebSocket.cpp
     1411    websockets/WebSocketChannel.cpp
     1412    websockets/WebSocketHandshake.cpp
     1413    websockets/WebSocketHandshakeRequest.cpp
     1414    websockets/WorkerThreadableWebSocketChannel.cpp
    14051415
    14061416    workers/AbstractWorker.cpp
     
    16731683LIST(APPEND WebCore_SOURCES ${JS_IDL_FILES})
    16741684
    1675 GENERATE_GPERF("c" ${WEBCORE_DIR}/html/HTMLEntityNames.gperf findEntity "-c")
    1676 GENERATE_GPERF("c" ${WEBCORE_DIR}/platform/ColorData.gperf findColor "")
    1677 GENERATE_GPERF("cpp" ${WEBCORE_DIR}/html/DocTypeStrings.gperf findDoctypeEntry "-F,PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards")
     1685GENERATE_GPERF(${WEBCORE_DIR}/html/HTMLEntityNames.gperf)
     1686GENERATE_GPERF(${WEBCORE_DIR}/platform/ColorData.gperf)
     1687GENERATE_GPERF(${WEBCORE_DIR}/html/DocTypeStrings.gperf)
    16781688
    16791689GENERATE_TOKENIZER()
     
    16901700ADD_SOURCE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSPrimitiveValueMappings.h CSSValueKeywords.h)
    16911701ADD_SOURCE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/html/HTMLDocument.cpp DocTypeStrings.cpp)
    1692 ADD_SOURCE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/platform/graphics/Color.cpp ColorData.c)
     1702ADD_SOURCE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/platform/graphics/Color.cpp ColorData.cpp)
    16931703ADD_SOURCE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSParser.cpp tokenizer.cpp)
    1694 ADD_SOURCE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/html/PreloadScanner.cpp HTMLEntityNames.c)
     1704ADD_SOURCE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/html/PreloadScanner.cpp HTMLEntityNames.cpp)
     1705ADD_SOURCE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/html/HTML5EntityParser.cpp HTMLEntityNames.cpp)
    16951706ADD_SOURCE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSStyleSelector.cpp UserAgentStyleSheetsData.cpp UserAgentStyleSheets.h)
    16961707
  • trunk/WebCore/ChangeLog

    r61322 r61323  
     12010-06-17  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        Update CMake build system to use new script for generating source files
     6        with gperf (r61091).
     7        This updates also the build system to cope with recent changes to
     8        source files list.
     9        https://bugs.webkit.org/show_bug.cgi?id=40628
     10
     11        No new tests since it's just compilation fixes.
     12
     13        * CMakeLists.txt:
     14
    1152010-06-17  Darin Adler  <darin@apple.com>
    216
  • trunk/cmake/WebKitGenerators.cmake

    r59537 r61323  
    7575ENDIF ()
    7676FIND_PACKAGE_HANDLE_STANDARD_ARGS(GPerf DEFAULT_MSG GPERF_EXECUTABLE)
     77SET(PERF_HASH_GENERATOR ${WEBCORE_DIR}/make-hash-tools.pl)
    7778
    7879# - Create perfect hash tables using gperf
    79 # GENERATE_GPERF(extension source_file find_function gperf_options)
    80 #
    81 # The generated files lives in ${DERIVED_SOURCES_DIR} and ends in the
    82 # given extension.
    83 MACRO(GENERATE_GPERF _ext _source _func _opts)
     80# GENERATE_GPERF(extension source_file)
     81#
     82# The generated files lives in ${DERIVED_SOURCES_DIR} and ends in .cpp
     83MACRO(GENERATE_GPERF _source)
    8484  GET_FILENAME_COMPONENT(_name ${_source} NAME_WE)
    8585  ADD_CUSTOM_COMMAND(
    86     OUTPUT ${DERIVED_SOURCES_DIR}/${_name}.${_ext}
     86    OUTPUT ${DERIVED_SOURCES_DIR}/${_name}.cpp
    8787    DEPENDS ${_source}
    88     COMMAND ${GPERF_EXECUTABLE} -CDEGIot -L ANSI-C -k * -s 2 -N ${_func} ${_opts} --output-file=${DERIVED_SOURCES_DIR}/${_name}.${_ext} ${_source}
     88    COMMAND ${PERL_EXECUTABLE} ${PERF_HASH_GENERATOR} ${DERIVED_SOURCES_DIR} ${_source}
    8989    VERBATIM)
    9090ENDMACRO ()
Note: See TracChangeset for help on using the changeset viewer.