gstreamer/ext/gsm/meson.build
Nirbheek Chauhan b55dfb5313 Add feature options for almost all plugins
The only plugins remaining are those that haven't been ported to Meson
yet, and msdk. Also, the tests are still automagic.

https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 19:04:38 +05:30

24 lines
783 B
Meson

if get_option('gsm').disabled()
subdir_done()
endif
gsm_dep = cc.find_library('gsm', required : get_option('gsm'))
have_gsm_create = cc.has_header_symbol('gsm.h', 'gsm_create')
if not have_gsm_create
have_gsm_create = cc.has_header_symbol('gsm/smg.h', 'gsm_create')
if not have_gsm_create and get_option('gsm').enabled()
error('GSM plugin is enabled: found libgsm but no headers')
endif
endif
if gsm_dep.found() and have_gsm_create
gstgsm = library('gstgsm',
['gstgsm.c', 'gstgsmenc.c', 'gstgsmdec.c'],
c_args : gst_plugins_bad_args,
include_directories : [configinc],
dependencies : [gstaudio_dep, gsm_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstgsm, install_dir : plugins_pkgconfig_install_dir)
endif