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

Changeset 271257 in webkit


Ignore:
Timestamp:
Jan 7, 2021, 12:56:28 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[CMake] Add USE_APPLE_ICU option
https://bugs.webkit.org/show_bug.cgi?id=220081

Patch by Monson Shao <holymonson@gmail.com> on 2021-01-07
Reviewed by Yusuke Suzuki.

Add USE_APPLE_ICU option to allow non-Mac ports (GTK or JSCOnly) on Darwin could build with
non-Apple ICU.

.:

  • Source/cmake/OptionsCommon.cmake:
  • Source/cmake/WebKitFindPackage.cmake:

Source/WTF:

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

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r271222 r271257  
     12021-01-07  Monson Shao  <holymonson@gmail.com>
     2
     3        [CMake] Add USE_APPLE_ICU option
     4        https://bugs.webkit.org/show_bug.cgi?id=220081
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        Add USE_APPLE_ICU option to allow non-Mac ports (GTK or JSCOnly) on Darwin could build with
     9        non-Apple ICU.
     10
     11        * Source/cmake/OptionsCommon.cmake:
     12        * Source/cmake/WebKitFindPackage.cmake:
     13
    1142021-01-06  Alexey Proskuryakov  <ap@apple.com>
    215
  • trunk/Source/WTF/CMakeLists.txt

    r246874 r271257  
    77# Apple builds have the ICU headers checked into ${WTF_DIR}/icu
    88# Copy them into ${ICU_INCLUDE_DIRS} so the build behaves like find_package was used
    9 if (APPLE)
     9if (USE_APPLE_ICU)
    1010    file(COPY ${WTF_DIR}/icu/unicode DESTINATION ${ICU_INCLUDE_DIRS})
    1111endif ()
  • trunk/Source/WTF/ChangeLog

    r271231 r271257  
     12021-01-07  Monson Shao  <holymonson@gmail.com>
     2
     3        [CMake] Add USE_APPLE_ICU option
     4        https://bugs.webkit.org/show_bug.cgi?id=220081
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        Add USE_APPLE_ICU option to allow non-Mac ports (GTK or JSCOnly) on Darwin could build with
     9        non-Apple ICU.
     10
     11        * CMakeLists.txt:
     12
    1132021-01-07  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/cmake/OptionsCommon.cmake

    r269076 r271257  
    101101  ${GCC_OFFLINEASM_SOURCE_MAP_DEFAULT})
    102102
     103option(USE_APPLE_ICU "Use Apple's internal ICU" ${APPLE})
     104
    103105# Enable the usage of OpenMP.
    104106#  - At this moment, OpenMP is only used as an alternative implementation
  • trunk/Source/cmake/WebKitFindPackage.cmake

    r269410 r271257  
    77#
    88# The purpose of this file is to make the behavior of find_package consistent
    9 # across ports and CMake versions. 
     9# across ports and CMake versions.
    1010
    1111# CMake provided targets. Remove wrappers whenever the minimum version is bumped.
     
    8787
    8888    # Apple builds have a unique location for ICU
    89     if (APPLE AND "${package}" STREQUAL "ICU")
     89    if (USE_APPLE_ICU AND "${package}" STREQUAL "ICU")
    9090        set(_found_package ON)
    9191
     
    9999        set(ICU_LIBRARIES ${ICU_UC_LIBRARY})
    100100        set(ICU_FOUND ON)
     101        message(STATUS "Found ICU: ${ICU_LIBRARIES}")
    101102    endif ()
    102103
Note: See TracChangeset for help on using the changeset viewer.