diff options
Diffstat (limited to 'community/mpd/files')
-rw-r--r-- | community/mpd/files/meson.build | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/community/mpd/files/meson.build b/community/mpd/files/meson.build index 39af6e87..21e1f2e2 100644 --- a/community/mpd/files/meson.build +++ b/community/mpd/files/meson.build @@ -1,34 +1,31 @@ -project('fmt', 'cpp', - version : '7.1.3', - license : 'BSD', - default_options : ['cpp_std=c++14'] -) +project('fmt', 'cpp', version: '9.1.0', license: 'BSD', default_options: ['cpp_std=c++14']) -fmt_private_cpp_args = [ ] -fmt_interface_cpp_args = [ ] -libtype = get_option('default_library') -if libtype == 'shared' - fmt_private_cpp_args += [ '-DFMT_EXPORT' ] - fmt_interface_cpp_args += [ '-DFMT_SHARED' ] +fmt_private_cpp_args = [] +fmt_interface_cpp_args = [] +if get_option('default_library') == 'shared' + fmt_private_cpp_args += ['-DFMT_EXPORT'] + fmt_interface_cpp_args += ['-DFMT_SHARED'] endif -fmt_inc = include_directories('include') -fmt_lib = library('fmt', - sources : [ - 'src/format.cc', - 'src/os.cc' - ], - cpp_args : fmt_private_cpp_args, - include_directories : fmt_inc +fmt_lib = library( + 'fmt', + 'src/format.cc', + 'src/os.cc', + cpp_args: fmt_private_cpp_args, + include_directories: 'include', ) fmt_dep = declare_dependency( - include_directories : fmt_inc, - compile_args : fmt_interface_cpp_args, - link_with : fmt_lib + include_directories: 'include', + compile_args: fmt_interface_cpp_args, + link_with: fmt_lib, ) +if meson.version().version_compare('>=0.54.0') + meson.override_dependency('fmt', fmt_dep) +endif + fmt_header_only_dep = declare_dependency( - include_directories : fmt_inc, - compile_args : '-DFMT_HEADER_ONLY' + include_directories: 'include', + compile_args: '-DFMT_HEADER_ONLY', ) |