Changeset 182663 in webkit


Ignore:
Timestamp:
Apr 11, 2015 2:28:34 PM (9 years ago)
Author:
Michael Catanzaro
Message:

[CMake] Print sorted feature list at the very end of the configure process
https://bugs.webkit.org/show_bug.cgi?id=143596

Reviewed by Martin Robinson.

  • CMakeLists.txt: Call PRINT_WEBKIT_OPTIONS at the bottom of the file.
  • Source/cmake/WebKitFeatures.cmake: Split option printing into PRINT_WEBKIT_OPTIONS macro,

and sort the options before printing. Reorder some code so that features still get
propagated to the bindings generators.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r182624 r182663  
    179179    add_subdirectory(Tools)
    180180endif ()
     181
     182# -----------------------------------------------------------------------------
     183# Print the features list last, for maximum visibility.
     184# -----------------------------------------------------------------------------
     185PRINT_WEBKIT_OPTIONS()
  • trunk/ChangeLog

    r182658 r182663  
     12015-04-11  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [CMake] Print sorted feature list at the very end of the configure process
     4        https://bugs.webkit.org/show_bug.cgi?id=143596
     5
     6        Reviewed by Martin Robinson.
     7
     8        * CMakeLists.txt: Call PRINT_WEBKIT_OPTIONS at the bottom of the file.
     9        * Source/cmake/WebKitFeatures.cmake: Split option printing into PRINT_WEBKIT_OPTIONS macro,
     10        and sort the options before printing. Reorder some code so that features still get
     11        propagated to the bindings generators.
     12
    1132015-04-11  Michael Catanzaro  <mcatanzaro@igalia.com>
    214
  • trunk/Source/cmake/WebKitFeatures.cmake

    r182658 r182663  
    169169
    170170macro(WEBKIT_OPTION_END)
    171     foreach (_name ${_WEBKIT_AVAILABLE_OPTIONS})
    172         option(${_name} "${_WEBKIT_AVAILABLE_OPTIONS_DESCRIPTION_${_name}}" ${_WEBKIT_AVAILABLE_OPTIONS_INITIALVALUE_${_name}})
    173         if (NOT _WEBKIT_AVAILABLE_OPTIONS_ISPUBLIC_${_name})
    174             mark_as_advanced(FORCE ${_name})
    175         endif ()
    176     endforeach ()
    177 
     171    list(SORT _WEBKIT_AVAILABLE_OPTIONS)
    178172    set(_MAX_FEATURE_LENGTH 0)
    179173    foreach (_name ${_WEBKIT_AVAILABLE_OPTIONS})
     
    189183            endif ()
    190184        endif ()
     185
     186        option(${_name} "${_WEBKIT_AVAILABLE_OPTIONS_DESCRIPTION_${_name}}" ${_WEBKIT_AVAILABLE_OPTIONS_INITIALVALUE_${_name}})
     187        if (NOT _WEBKIT_AVAILABLE_OPTIONS_ISPUBLIC_${_name})
     188            mark_as_advanced(FORCE ${_name})
     189        endif ()
     190
     191        if (${_name})
     192            list(APPEND FEATURE_DEFINES ${_name})
     193            set(FEATURE_DEFINES_WITH_SPACE_SEPARATOR "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR} ${_name}")
     194        endif ()
    191195    endforeach ()
    192 
     196endmacro()
     197
     198macro(PRINT_WEBKIT_OPTIONS)
    193199    message(STATUS "Enabled features:")
    194200
     
    211217        endif ()
    212218
    213         if (${_name})
    214             list(APPEND FEATURE_DEFINES ${_name})
    215             set(FEATURE_DEFINES_WITH_SPACE_SEPARATOR "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR} ${_name}")
    216         endif ()
    217 
    218219        set(_MESSAGE "${_MESSAGE} ${${_name}}")
    219220
Note: See TracChangeset for help on using the changeset viewer.