Files
MapLibreParticleLab/vendor/icu.cmake
Dan Paulat 8b804a1903 maplibre support for Qt6 and MSVC 2019 (#125)
* [qt] Updating CMake project files for Qt6

* [qt] Updating non-test projects for Qt6 and msvc2019

* [qt] Test fixes for Qt6 and msvc2019

* [qt] Link whole test archive for Qt and msvc2019

* [qt] Fixing Qt6 headless backend renderer

* [qt] Fixes for test failures

* [qt] Expression and style parser test fixes

* [qt] Backwards compatibility with Qt5 and Qt6

Minimum version is Qt 5.4 due to use of QOpenGLWidget

* [qt] LLVM is no longer required for a Windows build

* [msvc] msvc2019 fixes for maplibre

* Update test/storage/offline_database.test.cpp

Co-authored-by: Tadej Novak <tadej@tano.si>

* Vector + const is not standard C++

Co-authored-by: Tadej Novak <tadej@tano.si>
2021-08-07 11:10:45 -04:00

46 lines
1.4 KiB
CMake

if(TARGET mbgl-vendor-icu)
return()
endif()
add_library(
mbgl-vendor-icu STATIC
${CMAKE_CURRENT_LIST_DIR}/icu/src/cmemory.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/cstring.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/ubidi.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/ubidi_props.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/ubidiln.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/ubidiwrt.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/uchar.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/udataswp.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/uinvchar.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/umath.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/ushape.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/ustring.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/utf_impl.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/utrie2.cpp
${CMAKE_CURRENT_LIST_DIR}/icu/src/utypes.cpp
)
target_compile_definitions(
mbgl-vendor-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
)
if(NOT MSVC)
target_compile_options(mbgl-vendor-icu PRIVATE -Wno-error -Wno-shorten-64-to-32)
endif()
target_include_directories(
mbgl-vendor-icu SYSTEM
PUBLIC ${CMAKE_CURRENT_LIST_DIR}/icu/include
)
set_property(TARGET mbgl-vendor-icu PROPERTY FOLDER Core)