mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-28 11:17:45 +00:00
feat(core): icu integration steps 🙀
- fallback to pkg-config if meson ≤ 0.57 for #8495
This commit is contained in:
parent
f86109f77b
commit
2826736353
1 changed files with 10 additions and 3 deletions
|
|
@ -6,10 +6,17 @@
|
|||
|
||||
# ICU4C is used for repertoire tests
|
||||
|
||||
icu4c = subproject('icu-minimal', default_options: [ 'default_library=static', 'cpp_std=c++17', 'warning_level=0',
|
||||
'werror=false']) # TODO-LDML: options: static, no data
|
||||
|
||||
icu_uc = icu4c.get_variable('icuuc_dep')
|
||||
if meson.version().version_compare('<=0.57.0') # TODO-LDML: right # here?
|
||||
# fallback to pkg-config
|
||||
pkgconfig = 'pkg-config'
|
||||
icu_uc = dependency('icu-uc', required: true)
|
||||
else
|
||||
icu4c = subproject('icu-minimal', default_options: [ 'default_library=static', 'cpp_std=c++17', 'warning_level=0',
|
||||
'werror=false']) # TODO-LDML: options: static, no data
|
||||
icu_uc = icu4c.get_variable('icuuc_dep')
|
||||
endif
|
||||
|
||||
|
||||
if icu_uc.found()
|
||||
defns += '-DHAVE_ICU4C'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue