summaryrefslogtreecommitdiff
path: root/vendor/icu.cmake
blob: 3d29b799ed8aca68be9f061857572196fcd1531c (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
26
27
28
29
30
31
32
33
34
35
add_library(icu STATIC
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/cmemory.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/cstring.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/ubidi.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/ubidi_props.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/ubidiln.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/ubidiwrt.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/uchar.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/udataswp.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/uinvchar.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/umath.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/ushape.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/ustring.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/utf_impl.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/utrie2.cpp
    ${CMAKE_SOURCE_DIR}/vendor/icu/src/utypes.cpp
)

target_compile_definitions(icu PRIVATE
    UCONFIG_NO_BREAK_ITERATION=1
    UCONFIG_NO_LEGACY_CONVERSION=1
    U_CHARSET_IS_UTF8=1
    U_CHAR_TYPE=uint_least16_t
    U_HAVE_ATOMIC=1
    U_HAVE_STRTOD_L=0
    _REENTRANT
)

target_compile_options(icu PRIVATE
    -Wno-error
)

target_include_directories(icu SYSTEM PUBLIC
    ${CMAKE_SOURCE_DIR}/vendor/icu/include
)