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

Changeset 274641 in webkit


Ignore:
Timestamp:
Mar 18, 2021, 5:07:38 AM (5 years ago)
Author:
Carlos Garcia Campos
Message:

[WPE] Bump API version when building with libsoup3
https://bugs.webkit.org/show_bug.cgi?id=223437

Reviewed by Adrian Perez de Castro.

.:

Use 1.1 as the API version when building with soup3.

  • Source/PlatformWPE.cmake:
  • Source/cmake/OptionsWPE.cmake:

Source/WebKit:

  • PlatformWPE.cmake: Use WPE_API_DOC_VERSION instead of WPE_API_VERSION for gtkdoc config files.
  • wpe/wpe-web-extension-uninstalled.pc.in: Add variable for libsoup version.
  • wpe/wpe-web-extension.pc.in: Ditto.
  • wpe/wpe-webkit-uninstalled.pc.in: Ditto.
  • wpe/wpe-webkit.pc.in: Ditto.

Tools:

Use WPE_API_DOC_VERSION instead of WPE_API_VERSION.

  • wpe/manifest.txt.in:
Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r274555 r274641  
     12021-03-18  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [WPE] Bump API version when building with libsoup3
     4        https://bugs.webkit.org/show_bug.cgi?id=223437
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        Use 1.1 as the API version when building with soup3.
     9
     10        * Source/PlatformWPE.cmake:
     11        * Source/cmake/OptionsWPE.cmake:
     12
    1132021-03-17  Martin Robinson  <mrobinson@igalia.com>
    214
  • trunk/Source/PlatformWPE.cmake

    r238853 r274641  
    66    "${CMAKE_SOURCE_DIR}/Source/WebKit/UIProcess/API/wpe/docs/wpe-docs.sgml"
    77    "${CMAKE_SOURCE_DIR}/Source/WebKit/WebProcess/InjectedBundle/API/wpe/docs/wpe-webextensions-docs.sgml"
    8     "${CMAKE_SOURCE_DIR}/Source/WebKit/UIProcess/API/wpe/docs/wpe-${WPE_API_VERSION}-sections.txt"
    9     "${CMAKE_SOURCE_DIR}/Source/WebKit/WebProcess/InjectedBundle/API/wpe/docs/wpe-webextensions-${WPE_API_VERSION}-sections.txt"
     8    "${CMAKE_SOURCE_DIR}/Source/WebKit/UIProcess/API/wpe/docs/wpe-${WPE_API_DOC_VERSION}-sections.txt"
     9    "${CMAKE_SOURCE_DIR}/Source/WebKit/WebProcess/InjectedBundle/API/wpe/docs/wpe-webextensions-${WPE_API_DOC_VERSION}-sections.txt"
    1010)
    1111
  • trunk/Source/WebKit/ChangeLog

    r274622 r274641  
     12021-03-18  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [WPE] Bump API version when building with libsoup3
     4        https://bugs.webkit.org/show_bug.cgi?id=223437
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        * PlatformWPE.cmake: Use WPE_API_DOC_VERSION instead of WPE_API_VERSION for gtkdoc config files.
     9        * wpe/wpe-web-extension-uninstalled.pc.in: Add variable for libsoup version.
     10        * wpe/wpe-web-extension.pc.in: Ditto.
     11        * wpe/wpe-webkit-uninstalled.pc.in: Ditto.
     12        * wpe/wpe-webkit.pc.in: Ditto.
     13
    1142021-03-18  Youenn Fablet  <youenn@apple.com>
    215
  • trunk/Source/WebKit/PlatformWPE.cmake

    r274201 r274641  
    379379
    380380file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-wpe.cfg
    381     "[wpe-${WPE_API_VERSION}]\n"
     381    "[wpe-${WPE_API_DOC_VERSION}]\n"
    382382    "pkgconfig_file=${WPE_PKGCONFIG_FILE}\n"
    383383    "decorator=WEBKIT_API|WEBKIT_DEPRECATED|WEBKIT_DEPRECATED_FOR\\(.+\\)\n"
     
    399399
    400400file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webextensions.cfg
    401     "[wpe-webextensions-${WPE_API_VERSION}]\n"
     401    "[wpe-webextensions-${WPE_API_DOC_VERSION}]\n"
    402402    "pkgconfig_file=${WPEWebExtension_PKGCONFIG_FILE}\n"
    403403    "decorator=WEBKIT_API|WEBKIT_DEPRECATED|WEBKIT_DEPRECATED_FOR\\(.+\\)\n"
  • trunk/Source/WebKit/wpe/wpe-web-extension-uninstalled.pc.in

    r272643 r274641  
    88URL: https://wpewebkit.org
    99Version: @PROJECT_VERSION@
    10 Requires: glib-2.0 libsoup-2.4 wpe-1.0
     10Requires: glib-2.0 libsoup-@SOUP_API_VERSION@ wpe-1.0
    1111Libs: -L${libdir} -lWPEWebKit-@WPE_API_VERSION@
    1212Cflags: -I${includedir}/wpe-extension
  • trunk/Source/WebKit/wpe/wpe-web-extension.pc.in

    r243060 r274641  
    88URL: https://wpewebkit.org
    99Version: @PROJECT_VERSION@
    10 Requires: glib-2.0 libsoup-2.4 wpe-1.0
     10Requires: glib-2.0 libsoup-@SOUP_API_VERSION@ wpe-1.0
    1111Libs: -L${libdir} -lWPEWebKit-@WPE_API_VERSION@
    1212Cflags: -I${includedir}/wpe-webkit-@WPE_API_VERSION@
  • trunk/Source/WebKit/wpe/wpe-webkit-uninstalled.pc.in

    r272643 r274641  
    88URL: https://wpewebkit.org
    99Version: @PROJECT_VERSION@
    10 Requires: glib-2.0 libsoup-2.4 wpe-1.0
     10Requires: glib-2.0 libsoup-@SOUP_API_VERSION@ wpe-1.0
    1111Libs: -L${libdir} -lWPEWebKit-@WPE_API_VERSION@
    1212Cflags: -I${includedir}/ForwardingHeaders/wpe -I${includedir}/WebKit/ -I${includedir}/ForwardingHeaders/wpe-jsc -I${includedir}/JavaScriptCore/javascriptcorewpe/
  • trunk/Source/WebKit/wpe/wpe-webkit.pc.in

    r243060 r274641  
    88URL: https://wpewebkit.org
    99Version: @PROJECT_VERSION@
    10 Requires: glib-2.0 libsoup-2.4 wpe-1.0
     10Requires: glib-2.0 libsoup-@SOUP_API_VERSION@ wpe-1.0
    1111Libs: -L${libdir} -lWPEWebKit-@WPE_API_VERSION@
    1212Cflags: -I${includedir}/wpe-webkit-@WPE_API_VERSION@
  • trunk/Source/cmake/OptionsWPE.cmake

    r274555 r274641  
    33
    44SET_PROJECT_VERSION(2 31 1)
    5 set(WPE_API_VERSION 1.0)
    6 
    7 CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(WEBKIT 16 0 13)
    8 
    9 # These are shared variables, but we special case their definition so that we can use the
    10 # CMAKE_INSTALL_* variables that are populated by the GNUInstallDirs macro.
    11 set(LIB_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE PATH "Absolute path to library installation directory")
    12 set(EXEC_INSTALL_DIR "${CMAKE_INSTALL_FULL_BINDIR}" CACHE PATH "Absolute path to executable installation directory")
    13 set(LIBEXEC_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/wpe-webkit-${WPE_API_VERSION}" CACHE PATH "Absolute path to install executables executed by the library")
    145
    156set(USER_AGENT_BRANDING "" CACHE STRING "Branding to add to user agent string")
    16 if (USER_AGENT_BRANDING)
    17     add_definitions(-DUSER_AGENT_BRANDING=${USER_AGENT_BRANDING})
    18 endif ()
    197
    208find_package(Cairo 1.14.0 REQUIRED)
     
    131119if (USE_SOUP2)
    132120    set(SOUP_MINIMUM_VERSION 2.54.0)
     121    set(SOUP_API_VERSION 2.4)
     122    set(WPE_API_VERSION 1.0)
     123    set(WPE_API_DOC_VERSION 1.0)
    133124else ()
    134125    set(SOUP_MINIMUM_VERSION 2.99.2)
     126    set(SOUP_API_VERSION 3.0)
     127    set(WPE_API_VERSION 1.1)
     128    # No API changes in 1.1, so keep using the same API documentation.
     129    set(WPE_API_DOC_VERSION 1.0)
    135130endif ()
    136131find_package(LibSoup ${SOUP_MINIMUM_VERSION} REQUIRED)
     132
     133if (WPE_API_VERSION VERSION_EQUAL "1.0")
     134    CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(WEBKIT 16 0 13)
     135else ()
     136    CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(WEBKIT 0 0 0)
     137endif ()
     138
     139# These are shared variables, but we special case their definition so that we can use the
     140# CMAKE_INSTALL_* variables that are populated by the GNUInstallDirs macro.
     141set(LIB_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE PATH "Absolute path to library installation directory")
     142set(EXEC_INSTALL_DIR "${CMAKE_INSTALL_FULL_BINDIR}" CACHE PATH "Absolute path to executable installation directory")
     143set(LIBEXEC_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/wpe-webkit-${WPE_API_VERSION}" CACHE PATH "Absolute path to install executables executed by the library")
    137144
    138145if (ENABLE_ACCESSIBILITY)
     
    226233add_definitions(-DGETTEXT_PACKAGE="WPE")
    227234add_definitions(-DJSC_GLIB_API_ENABLED)
     235
     236if (USER_AGENT_BRANDING)
     237    add_definitions(-DUSER_AGENT_BRANDING=${USER_AGENT_BRANDING})
     238endif ()
    228239
    229240if (EXISTS "${TOOLS_DIR}/glib/svn-revision")
  • trunk/Tools/ChangeLog

    r274622 r274641  
     12021-03-18  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [WPE] Bump API version when building with libsoup3
     4        https://bugs.webkit.org/show_bug.cgi?id=223437
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        Use WPE_API_DOC_VERSION instead of WPE_API_VERSION.
     9
     10        * wpe/manifest.txt.in:
     11
    1122021-03-18  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/Tools/wpe/manifest.txt.in

    r246925 r274641  
    9595file Tools/PlatformWPE.cmake
    9696
    97 directory ${CMAKE_BINARY_DIR}/Documentation/wpe-${WPE_API_VERSION}/html/wpe-${WPE_API_VERSION} Documentation/wpe-${WPE_API_VERSION}/html
    98 directory ${CMAKE_BINARY_DIR}/Documentation/wpe-webextensions-${WPE_API_VERSION}/html/wpe-webextensions-${WPE_API_VERSION} Documentation/wpe-webextensions-${WPE_API_VERSION}/html
     97directory ${CMAKE_BINARY_DIR}/Documentation/wpe-${WPE_API_DOC_VERSION}/html/wpe-${WPE_API_DOC_VERSION} Documentation/wpe-${WPE_API_DOC_VERSION}/html
     98directory ${CMAKE_BINARY_DIR}/Documentation/wpe-webextensions-${WPE_API_DOC_VERSION}/html/wpe-webextensions-${WPE_API_DOC_VERSION} Documentation/wpe-webextensions-${WPE_API_DOC_VERSION}/html
Note: See TracChangeset for help on using the changeset viewer.