diff options
author | Cem Keylan <cem@ckyln.com> | 2021-10-15 22:32:03 +0200 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-10-15 22:32:03 +0200 |
commit | 3457a5c7005307ed626347881f40b1064f99252e (patch) | |
tree | a2954e23e2966e95c2c63c9cd2d2d172db67beaa /community/mpd/files/meson.build | |
parent | 34342459a8477bbca4ea2c3fb81188629a1ae383 (diff) | |
download | repository-3457a5c7005307ed626347881f40b1064f99252e.tar.gz |
mpd: bump to 0.23
Diffstat (limited to 'community/mpd/files/meson.build')
-rw-r--r-- | community/mpd/files/meson.build | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/community/mpd/files/meson.build b/community/mpd/files/meson.build new file mode 100644 index 00000000..39af6e87 --- /dev/null +++ b/community/mpd/files/meson.build @@ -0,0 +1,34 @@ +project('fmt', 'cpp', + version : '7.1.3', + 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' ] +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_dep = declare_dependency( + include_directories : fmt_inc, + compile_args : fmt_interface_cpp_args, + link_with : fmt_lib +) + +fmt_header_only_dep = declare_dependency( + include_directories : fmt_inc, + compile_args : '-DFMT_HEADER_ONLY' +) |