mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-16 12:52:46 +00:00
6fcc1c7426
Since AK can't refer to LibUnicode directly, the strategy here is that if you need case transformations, you can link LibUnicode and receive them. If you try to use either of these methods without linking it, then you'll of course get a linker error (note we don't do any fallbacks to e.g. ASCII case transformations). If you don't need these methods, you don't have to link LibUnicode.
17 lines
462 B
CMake
17 lines
462 B
CMake
include(${SerenityOS_SOURCE_DIR}/Meta/CMake/unicode_data.cmake)
|
|
|
|
set(SOURCES
|
|
CharacterTypes.cpp
|
|
CurrencyCode.cpp
|
|
Emoji.cpp
|
|
Normalize.cpp
|
|
String.cpp
|
|
UnicodeUtils.cpp
|
|
${UNICODE_DATA_SOURCES}
|
|
)
|
|
set(GENERATED_SOURCES ${CURRENT_LIB_GENERATED})
|
|
|
|
serenity_lib(LibUnicode unicode)
|
|
target_link_libraries(LibUnicode PRIVATE LibCore)
|
|
target_compile_definitions(LibUnicode PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>)
|