From: Paul Brossier Date: Sat, 6 Jan 2024 14:22:04 +0000 (+0100) Subject: [meson] add initial examples config X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=502ae4ba1420d9218821b5f517808b3d7136d8f3;p=aubio.git [meson] add initial examples config --- diff --git a/examples/meson.build b/examples/meson.build new file mode 100644 index 00000000..75604c21 --- /dev/null +++ b/examples/meson.build @@ -0,0 +1,27 @@ +deps = [ + 'utils.c', + 'jackio.c', +] + +progs = { + 'aubiopitch': ['aubiopitch.c'] + deps, + 'aubiomfcc': ['aubiomfcc.c'] + deps, + 'aubioquiet': ['aubioquiet.c'] + deps, + 'aubiotrack': ['aubiotrack.c'] + deps, + 'aubionotes': ['aubionotes.c'] + deps, + 'aubioonset': ['aubioonset.c'] + deps, +} + +if compiler.has_header('getopt.h') + c_args += ['-DHAVE_GETOPT_H'] +endif +if compiler.has_header('unistd.h') + c_args += ['-DHAVE_UNISTD_H'] +endif + +foreach name, sources : progs + executable(name, sources, + c_args : c_args, + include_directories : '../src', + link_with : aubio) +endforeach