summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibUnicode/CMakeLists.txt
blob: 20b49eb335f91b45653ea2a6b6856846d0522f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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()