Skip to content

Commit

Permalink
Merge branch 'icu76-support' of https://github.com/cho-m/MPD
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Oct 27, 2024
2 parents 51e0fef + 1a063fe commit 1930ed1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/lib/icu/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
icu_dep = dependency('icu-i18n', version: '>= 50', required: get_option('icu'))
conf.set('HAVE_ICU', icu_dep.found())
icu_i18n_dep = dependency('icu-i18n', version: '>= 50', required: get_option('icu'))
icu_uc_dep = dependency('icu-uc', version: '>= 50', required: get_option('icu'))
have_icu = icu_i18n_dep.found() and icu_uc_dep.found()
conf.set('HAVE_ICU', have_icu)

icu_sources = [
'Canonicalize.cxx',
Expand All @@ -13,7 +15,7 @@ if is_windows
endif

iconv_dep = []
if icu_dep.found()
if have_icu
icu_sources += [
'Init.cxx',
'Util.cxx',
Expand All @@ -31,7 +33,8 @@ icu = static_library(
icu_sources,
include_directories: inc,
dependencies: [
icu_dep,
icu_i18n_dep,
icu_uc_dep,
iconv_dep,
fmt_dep,
],
Expand Down

0 comments on commit 1930ed1

Please sign in to comment.