⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286585 in webkit


Ignore:
Timestamp:
Dec 6, 2021, 7:40:42 PM (5 years ago)
Author:
Lauro Moura
Message:

REGRESSION(r286535) [GTK] Fix clean builds after DerivedSources/WebKit2 move
https://bugs.webkit.org/show_bug.cgi?id=233881

Reviewed by Don Olmstead.

Build fix. Covered by existing tests

The previous approach of this patch created the links to the header
derived sources into the target webkit2/ folder, which in turn was a
link to <repo>/Source/WebKit/UIProcess/API/gtk. So it ended up
actually creating the links inside the Source directory.

This commit instead links a different webkit2/ folder from the
generated webkit folder for the WebKitGTK/WPE derived sources headers.

  • PlatformGTK.cmake:
  • PlatformWPE.cmake:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r286579 r286585  
     12021-12-06  Lauro Moura  <lmoura@igalia.com>
     2
     3        REGRESSION(r286535) [GTK] Fix clean builds after DerivedSources/WebKit2 move
     4        https://bugs.webkit.org/show_bug.cgi?id=233881
     5
     6        Reviewed by Don Olmstead.
     7
     8        Build fix. Covered by existing tests
     9
     10        The previous approach of this patch created the links to the header
     11        derived sources into the target webkit2/ folder, which in turn was a
     12        link to <repo>/Source/WebKit/UIProcess/API/gtk. So it ended up
     13        actually creating the links inside the Source directory.
     14
     15        This commit instead links a different webkit2/ folder from the
     16        generated webkit folder for the WebKitGTK/WPE derived sources headers.
     17
     18        * PlatformGTK.cmake:
     19        * PlatformWPE.cmake:
     20
    1212021-12-06  Brady Eidson  <beidson@apple.com>
    222
  • trunk/Source/WebKit/PlatformGTK.cmake

    r286549 r286585  
    876876)
    877877add_custom_command(
    878     OUTPUT ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2/WebKitEnumTypes.h
    879     DEPENDS ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit/WebKitEnumTypes.h
    880     COMMAND ln -n -s -f ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit/WebKitEnumTypes.h ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2/WebKitEnumTypes.h
    881 )
    882 add_custom_command(
    883     OUTPUT ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2/WebKitWebProcessEnumTypes.h
    884     DEPENDS ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit/WebKitWebProcessEnumTypes.h
    885     COMMAND ln -n -s -f ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit/WebKitWebProcessEnumTypes.h ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2/WebKitWebProcessEnumTypes.h
    886 )
    887 add_custom_command(
    888     OUTPUT ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2/WebKitVersion.h
    889     DEPENDS ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit/WebKitVersion.h
    890     COMMAND ln -n -s -f ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit/WebKitVersion.h ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2/WebKitVersion.h
     878    OUTPUT ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit2
     879    DEPENDS ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit
     880    COMMAND ln -n -s -f ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit2
    891881)
    892882add_custom_command(
     
    907897add_custom_target(WebKit-fake-api-headers
    908898    DEPENDS ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2
    909             ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2/WebKitEnumTypes.h
    910             ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2/WebKitVersion.h
    911             ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2/WebKitWebProcessEnumTypes.h
     899            ${WebKit2Gtk_DERIVED_SOURCES_DIR}/webkit2
    912900            ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2gtk-${WEBKITGTK_API_VERSION}/webkit2
    913901            ${WebKit2Gtk_FRAMEWORK_HEADERS_DIR}/webkit2gtk-webextension/webkit2
  • trunk/Source/WebKit/PlatformWPE.cmake

    r285155 r286585  
    5353    DEPENDS ${WEBKIT_DIR}/UIProcess/API/wpe
    5454    COMMAND ln -n -s -f ${WEBKIT_DIR}/UIProcess/API/wpe ${FORWARDING_HEADERS_WPE_DIR}/wpe
     55)
     56
     57add_custom_command(
     58    OUTPUT ${DERIVED_SOURCES_WPE_API_DIR}/webkit2
     59    DEPENDS ${DERIVED_SOURCES_WPE_API_DIR}/webkit
     60    COMMAND ln -n -s -f ${DERIVED_SOURCES_WPE_API_DIR}/webkit ${DERIVED_SOURCES_WPE_API_DIR}/webkit2
    5561)
    5662
Note: See TracChangeset for help on using the changeset viewer.