lib/fmt: add meson.build
This commit is contained in:
parent
2aa42d2647
commit
05dcac55f9
10
meson.build
10
meson.build
|
@ -248,15 +248,7 @@ if boost_dep.version() == '1.67'
|
||||||
warning('Your Boost version 1.67 is known to be buggy, and the MPD build will fail. Please upgrade to Boost 1.68 or later.')
|
warning('Your Boost version 1.67 is known to be buggy, and the MPD build will fail. Please upgrade to Boost 1.68 or later.')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
fmt_dep = dependency('fmt', version: '>= 7', fallback: ['fmt', 'fmt_dep'])
|
subdir('src/lib/fmt')
|
||||||
|
|
||||||
if compiler.get_id() == 'clang' and compiler.version().version_compare('<15')
|
|
||||||
fmt_dep = declare_dependency(
|
|
||||||
dependencies: fmt_dep,
|
|
||||||
# suppress bogus clang 14 warning (the version in Android NDK r25b)
|
|
||||||
compile_args: ['-Wno-unused-local-typedef'],
|
|
||||||
)
|
|
||||||
endif
|
|
||||||
|
|
||||||
log = static_library(
|
log = static_library(
|
||||||
'log',
|
'log',
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
libfmt = dependency('fmt', version: '>= 7', fallback: ['fmt', 'fmt_dep'])
|
||||||
|
|
||||||
|
if compiler.get_id() == 'clang' and compiler.version().version_compare('<15')
|
||||||
|
libfmt = declare_dependency(
|
||||||
|
dependencies: libfmt,
|
||||||
|
# suppress bogus clang 14 warning (the version in Android NDK r25b)
|
||||||
|
compile_args: ['-Wno-unused-local-typedef'],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
|
fmt_dep = declare_dependency(
|
||||||
|
dependencies: libfmt,
|
||||||
|
)
|
Loading…
Reference in New Issue