mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 09:18:05 +03:00
c417374dd6
LibUnicodeData can now be loaded dynamically at runtime.
26 lines
721 B
CMake
26 lines
721 B
CMake
include(${SerenityOS_SOURCE_DIR}/Meta/CMake/unicode_data.cmake)
|
|
|
|
if (DEFINED UNICODE_DATA_SOURCES)
|
|
set(SOURCES ${UNICODE_DATA_SOURCES})
|
|
serenity_lib(LibUnicodeData unicodedata)
|
|
target_compile_options(LibUnicodeData PRIVATE -g0 -Os)
|
|
target_link_libraries(LibUnicodeData LibCore)
|
|
endif()
|
|
|
|
set(SOURCES
|
|
CharacterTypes.cpp
|
|
CurrencyCode.cpp
|
|
DateTimeFormat.cpp
|
|
Locale.cpp
|
|
NumberFormat.cpp
|
|
UnicodeSymbols.cpp
|
|
)
|
|
|
|
serenity_lib(LibUnicode unicode)
|
|
target_link_libraries(LibUnicode LibCore)
|
|
target_compile_definitions(LibUnicode PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>)
|
|
|
|
if (DEFINED UNICODE_DATA_SOURCES)
|
|
add_dependencies(LibUnicode LibUnicodeData)
|
|
endif()
|