• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1mpcdec_dep = cc.find_library('mpcdec', required: get_option('musepack'))
2
3if mpcdec_dep.found() and cc.has_header_symbol('mpc/mpcdec.h', 'mpc_demux_init', dependencies: mpcdec_dep)
4  gstmusepack = library('gstmusepack',
5    'gstmusepackdec.c', 'gstmusepackreader.c',
6    c_args : gst_plugins_bad_args,
7    link_args : noseh_link_args,
8    include_directories : [configinc],
9    dependencies : [gstaudio_dep, mpcdec_dep],
10    install : true,
11    install_dir : plugins_install_dir,
12  )
13  pkgconfig.generate(gstmusepack, install_dir : plugins_pkgconfig_install_dir)
14  plugins += [gstmusepack]
15elif get_option('musepack').enabled()
16  error('Could not find libmpcdec header files, but Musepack was enabled via options')
17endif
18