From 4b50f5b638015556d93771269258e6894b6b757f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 9 Apr 2016 23:53:26 +0100 Subject: Add support for Meson as build system The Meson build system is being adopted by projects such as GNOME, PulseAudio, GStreamer, VLC, systemd, Mesa, Wayland, X.org, and many others. Having a meson build upstream in tinyalsa would allow for easy use of tinyalsa as a Meson subproject in other projects. https://mesonbuild.com --- meson.build | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..e09a8be --- /dev/null +++ b/meson.build @@ -0,0 +1,29 @@ +project ('tinyalsa', 'c', version : '1.1.1', meson_version : '>= 0.48.0') + +tinyalsa_includes = include_directories('.', 'include') + +tinyalsa = library('tinyalsa', + 'src/mixer.c', 'src/pcm.c', + include_directories: tinyalsa_includes, + install: true) + +# For use as a Meson subproject +tinyalsa_dep = declare_dependency(link_with: tinyalsa, + include_directories: include_directories('include')) + +if not get_option('docs').disabled() + # subdir('docs') # FIXME +endif + +if not get_option('examples').disabled() + subdir('examples') +endif + +subdir('include/tinyalsa') + +if not get_option('utils').disabled() + subdir('utils') +endif + +pkg = import('pkgconfig') +pkg.generate(tinyalsa, description: 'TinyALSA Library') -- cgit v1.2.3