diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-10-24 01:53:22 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-10-31 18:19:28 +0200 |
commit | 69960afb8db0444ec11cb46b47e877cc34f61fc7 (patch) | |
tree | 37bcc19f033aadd8c3c158fad02b8c5e4a9437ed /vendor/icu.cmake | |
parent | 3a3c05bd8aeabf179084bd9a0137edd2abf41e4c (diff) | |
download | qtlocation-mapboxgl-69960afb8db0444ec11cb46b47e877cc34f61fc7.tar.gz |
[build] Add build system for submodules
Vendorize the submodules and a simple CMake build
system for all them. The dependencies will inherit
compilation options for core.
The goal is to make Mapbox GL Core completely self
contained with a simple offline build.
Diffstat (limited to 'vendor/icu.cmake')
-rw-r--r-- | vendor/icu.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/icu.cmake b/vendor/icu.cmake new file mode 100644 index 0000000000..3d29b799ed --- /dev/null +++ b/vendor/icu.cmake @@ -0,0 +1,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 +) |