fix(core): use pkgconfig on linux, else wrap 🙀

For: feat(core): integrate ICU4C into the build for ldml 🙀 #8495
This commit is contained in:
Steven R. Loomis 2023-04-06 12:59:00 -05:00
parent fc3428227f
commit e7b4eb4d9d

View file

@ -7,13 +7,14 @@
# ICU4C is used for repertoire tests
if meson.version().version_compare('<=0.57.0') # TODO-LDML: right # here?
# fallback to pkg-config
if build_machine.system() == 'linux'
# use pkg-config on linux
pkgconfig = 'pkg-config'
icu_uc = dependency('icu-uc', required: true)
else
# load ICU from wrap
icu4c = subproject('icu-minimal', default_options: [ 'default_library=static', 'cpp_std=c++17', 'warning_level=0',
'werror=false']) # TODO-LDML: options: static, no data
'werror=false']) # TODO-LDML: options: static, no data (these are in the meson build files)
icu_uc = icu4c.get_variable('icuuc_dep')
endif