1if get_option('gsm').disabled() 2 subdir_done() 3endif 4 5gsm_cargs = [] 6 7gsm_dep = cc.find_library('gsm', required : get_option('gsm')) 8have_gsm_create = cc.has_header_symbol('gsm.h', 'gsm_create') 9if not have_gsm_create 10 have_gsm_create = cc.has_header_symbol('gsm/gsm.h', 'gsm_create') 11 if not have_gsm_create and get_option('gsm').enabled() 12 error('GSM plugin is enabled: found libgsm but no headers') 13 else 14 gsm_cargs += ['-DGSM_HEADER_IN_SUBDIR'] 15 endif 16endif 17 18if gsm_dep.found() and have_gsm_create 19 gstgsm = library('gstgsm', 20 ['gstgsm.c', 'gstgsmenc.c', 'gstgsmdec.c'], 21 c_args : gst_plugins_bad_args + gsm_cargs, 22 include_directories : [configinc], 23 dependencies : [gstaudio_dep, gsm_dep], 24 install : true, 25 install_dir : plugins_install_dir, 26 ) 27 pkgconfig.generate(gstgsm, install_dir : plugins_pkgconfig_install_dir) 28 plugins += [gstgsm] 29endif 30