mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-06 14:07:32 +00:00
fix(core): use pkgconfig on linux, else wrap 🙀
For: feat(core): integrate ICU4C into the build for ldml 🙀 #8495
This commit is contained in:
parent
fc3428227f
commit
e7b4eb4d9d
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue