Add support for Meson as alternative/parallel build system
[platform/upstream/gstreamer.git] / ext / mad / meson.build
1 mad_dep = dependency('mad', version : '>= 0.15', required : false)
2 if not mad_dep.found() and cc.has_header_symbol('mad.h', 'mad_decoder_finish')
3   mad_dep = cc.find_library('mad', required : false)
4 endif
5
6 if mad_dep.found()
7   mad = library('gstmad',
8     ['gstmad.c'],
9     c_args : ugly_args,
10     include_directories : [configinc],
11     dependencies : [gstaudio_dep, mad_dep],
12     install : true,
13     install_dir : plugins_install_dir,
14   )
15 endif