mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
ebdb92eef6
LibLocale was split off from LibUnicode a couple years ago to reduce the number of applications on SerenityOS that depend on CLDR data. Now that we use ICU, both LibUnicode and LibLocale are actually linking in this data. And since vcpkg gives us static libraries, both libraries are over 30MB in size. This patch reverts the separation and merges LibLocale into LibUnicode again. We now have just one library that includes the ICU data. Further, this will let LibUnicode share the locale cache that previously would only exist in LibLocale.
33 lines
1.1 KiB
CMake
33 lines
1.1 KiB
CMake
include(fontconfig)
|
|
|
|
set(WEBWORKER_SOURCE_DIR ${LADYBIRD_SOURCE_DIR}/Userland/Services/WebWorker)
|
|
|
|
set(CMAKE_AUTOMOC OFF)
|
|
set(CMAKE_AUTORCC OFF)
|
|
set(CMAKE_AUTOUIC OFF)
|
|
|
|
set(WEBWORKER_SOURCES
|
|
"${WEBWORKER_SOURCE_DIR}/ConnectionFromClient.cpp"
|
|
"${WEBWORKER_SOURCE_DIR}/DedicatedWorkerHost.cpp"
|
|
"${WEBWORKER_SOURCE_DIR}/PageHost.cpp"
|
|
../FontPlugin.cpp
|
|
../HelperProcess.cpp
|
|
../Utilities.cpp
|
|
)
|
|
|
|
# FIXME: Add Android service
|
|
|
|
add_library(webworker STATIC ${WEBWORKER_SOURCES})
|
|
|
|
target_include_directories(webworker PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/Services/)
|
|
target_include_directories(webworker PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/)
|
|
target_include_directories(webworker PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
|
|
target_link_libraries(webworker PUBLIC LibCore LibFileSystem LibGfx LibIPC LibJS LibProtocol LibWeb LibWebView LibUnicode LibImageDecoderClient LibMain LibURL)
|
|
|
|
if (HAS_FONTCONFIG)
|
|
target_link_libraries(webworker PRIVATE Fontconfig::Fontconfig)
|
|
endif()
|
|
|
|
add_executable(WebWorker main.cpp)
|
|
target_include_directories(WebWorker PRIVATE ${LADYBIRD_SOURCE_DIR}/Userland/)
|
|
target_link_libraries(WebWorker PRIVATE webworker)
|