2018-07-27 13:29:23 +00:00
|
|
|
if get_option('gsm').disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2019-05-01 17:40:03 +00:00
|
|
|
gsm_cargs = []
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
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
|
2019-05-01 17:16:58 +00:00
|
|
|
have_gsm_create = cc.has_header_symbol('gsm/gsm.h', 'gsm_create')
|
2018-07-27 13:29:23 +00:00
|
|
|
if not have_gsm_create and get_option('gsm').enabled()
|
|
|
|
error('GSM plugin is enabled: found libgsm but no headers')
|
2019-05-01 17:40:03 +00:00
|
|
|
else
|
|
|
|
gsm_cargs += ['-DGSM_HEADER_IN_SUBDIR']
|
2018-07-27 13:29:23 +00:00
|
|
|
endif
|
|
|
|
endif
|
2017-07-07 11:20:35 +00:00
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
if gsm_dep.found() and have_gsm_create
|
2017-07-07 11:20:35 +00:00
|
|
|
gstgsm = library('gstgsm',
|
|
|
|
['gstgsm.c', 'gstgsmenc.c', 'gstgsmdec.c'],
|
2019-05-01 17:40:03 +00:00
|
|
|
c_args : gst_plugins_bad_args + gsm_cargs,
|
2017-07-07 11:20:35 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstaudio_dep, gsm_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstgsm, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstgsm]
|
2017-07-07 11:20:35 +00:00
|
|
|
endif
|