gstreamer/ext/srtp/meson.build
Alessandro Decina f49134095c meson: use gnome.mkenums_simple() to generate enumtypes files
Means we no longer need our custom scripts, nor template files.
2018-03-22 14:34:05 +00:00

34 lines
911 B
Meson

srtp_sources = [
'gstsrtp.c',
'gstsrtpdec.c',
'gstsrtpenc.c',
]
srtp_cargs = []
srtp_dep = dependency('libsrtp2', version : '>= 2.1.0', required : false)
if srtp_dep.found()
srtp_cargs += ['-DHAVE_SRTP2']
else
srtp_dep = dependency('libsrtp', required : false)
if not srtp_dep.found() and cc.has_header_symbol('srtp/srtp.h', 'srtp_init')
srtp_dep = cc.find_library('srtp', required : false)
endif
endif
if srtp_dep.found()
gstsrtp_enums = gnome.mkenums_simple('gstsrtp-enumtypes',
sources : ['gstsrtpenums.h'],
decorator : 'G_GNUC_INTERNAL',
install_header: false)
gstsrtp = library('gstsrtp',
srtp_sources, gstsrtp_enums,
c_args : gst_plugins_bad_args + srtp_cargs,
link_args : noseh_link_args,
include_directories : [configinc],
dependencies : [gstrtp_dep, gstvideo_dep, srtp_dep],
install : true,
install_dir : plugins_install_dir,
)
endif