build with Meson instead of autotools
So long, autotools! This is my last MPD related project to migrate away from it. It has its strengths, but also very obvious weaknesses and weirdnesses. Today, many of its quirks are not needed anymore, and are cumbersome and slow. Now welcome our new Meson overlords!
This commit is contained in:
42
src/lib/icu/meson.build
Normal file
42
src/lib/icu/meson.build
Normal file
@@ -0,0 +1,42 @@
|
||||
icu_dep = dependency('icu-i18n', version: '>= 50', required: get_option('icu'))
|
||||
conf.set('HAVE_ICU', icu_dep.found())
|
||||
|
||||
icu_sources = [
|
||||
'CaseFold.cxx',
|
||||
'Compare.cxx',
|
||||
'Collate.cxx',
|
||||
'Converter.cxx',
|
||||
]
|
||||
|
||||
if is_windows
|
||||
icu_sources += 'Win32.cxx'
|
||||
endif
|
||||
|
||||
if icu_dep.found()
|
||||
icu_sources += [
|
||||
'Util.cxx',
|
||||
'Init.cxx',
|
||||
]
|
||||
elif not get_option('iconv').disabled()
|
||||
have_iconv = compiler.has_function('iconv')
|
||||
conf.set('HAVE_ICONV', have_iconv)
|
||||
if get_option('iconv').enabled()
|
||||
error('iconv() not available')
|
||||
endif
|
||||
endif
|
||||
|
||||
icu = static_library(
|
||||
'icu',
|
||||
icu_sources,
|
||||
include_directories: inc,
|
||||
dependencies: [
|
||||
icu_dep,
|
||||
],
|
||||
)
|
||||
|
||||
icu_dep = declare_dependency(
|
||||
link_with: icu,
|
||||
dependencies: [
|
||||
util_dep,
|
||||
],
|
||||
)
|
Reference in New Issue
Block a user