Changeset 225888 in webkit


Ignore:
Timestamp:
Dec 13, 2017 5:45:03 PM (6 years ago)
Author:
clopez@igalia.com
Message:

[WPE] WebCrypto should be a public option.
https://bugs.webkit.org/show_bug.cgi?id=180780

Reviewed by Konstantin Tokarev.

Make ENABLE_WEB_CRYPTO public and lower the dependency requirements
when this option is not enabled. This is also how the GTK+ port
configures the visibility of this option and its dependencies.

  • Source/cmake/OptionsWPE.cmake:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r225841 r225888  
     12017-12-13  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        [WPE] WebCrypto should be a public option.
     4        https://bugs.webkit.org/show_bug.cgi?id=180780
     5
     6        Reviewed by Konstantin Tokarev.
     7
     8        Make ENABLE_WEB_CRYPTO public and lower the dependency requirements
     9        when this option is not enabled. This is also how the GTK+ port
     10        configures the visibility of this option and its dependencies.
     11
     12        * Source/cmake/OptionsWPE.cmake:
     13
    1142017-12-13  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Source/cmake/OptionsWPE.cmake

    r225627 r225888  
    1818WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_JIT PUBLIC ON)
    1919WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBDRIVER PUBLIC ON)
     20WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_CRYPTO PUBLIC ON)
    2021WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_XSLT PUBLIC ON)
    2122WEBKIT_OPTION_DEFAULT_PORT_VALUE(USE_SYSTEM_MALLOC PUBLIC OFF)
     
    6162find_package(JPEG REQUIRED)
    6263find_package(LibEpoxy 1.4.0 REQUIRED)
    63 find_package(LibGcrypt 1.7.0 REQUIRED)
     64find_package(LibGcrypt 1.6.0 REQUIRED)
    6465find_package(LibSoup 2.42.0 REQUIRED)
    65 find_package(Libtasn1 REQUIRED)
    6666find_package(LibXml2 2.8.0 REQUIRED)
    6767find_package(PNG REQUIRED)
     
    7474if (ENABLE_ACCELERATED_2D_CANVAS)
    7575    find_package(CairoGL 1.10.2 REQUIRED COMPONENTS cairo-egl)
     76endif ()
     77
     78if (ENABLE_SUBTLE_CRYPTO)
     79    find_package(Libtasn1 REQUIRED)
     80    if (NOT LIBTASN1_FOUND)
     81        message(FATAL_ERROR "libtasn1 is required to enable Web Crypto API support.")
     82    endif ()
     83    if (LIBGCRYPT_VERSION VERSION_LESS 1.7.0)
     84        message(FATAL_ERROR "libgcrypt 1.7.0 is required to enable Web Crypto API support.")
     85    endif ()
    7686endif ()
    7787
Note: See TracChangeset for help on using the changeset viewer.