summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2018-09-06 17:27:27 +1000
committerMatthew Waters <matthew@centricular.com>2018-09-21 19:36:52 +1000
commit88b4ce9fc07d388930b02ed814c82048ebce7640 (patch)
tree9fa32d200eb69afc278f242558518f7bbb29151b /ext
parente2f06326eac7c3c7fa9c0d5baf4bf9673fc93376 (diff)
downloadgstreamer-plugins-bad-88b4ce9fc07d388930b02ed814c82048ebce7640.tar.gz
Update sctp plugin for the current build system
- Add meson build definitions - Add necessary API decorators
Diffstat (limited to 'ext')
-rw-r--r--ext/meson.build1
-rw-r--r--ext/sctp/meson.build31
2 files changed, 32 insertions, 0 deletions
diff --git a/ext/meson.build b/ext/meson.build
index 1ffa1a248..e765f7b79 100644
--- a/ext/meson.build
+++ b/ext/meson.build
@@ -44,6 +44,7 @@ subdir('resindvd')
subdir('rsvg')
subdir('rtmp')
subdir('sbc')
+subdir('sctp')
subdir('smoothstreaming')
#subdir('sndfile')
subdir('soundtouch')
diff --git a/ext/sctp/meson.build b/ext/sctp/meson.build
new file mode 100644
index 000000000..fe697fe1d
--- /dev/null
+++ b/ext/sctp/meson.build
@@ -0,0 +1,31 @@
+sctp_sources = [
+ 'gstsctpdec.c',
+ 'gstsctpenc.c',
+ 'gstsctpplugin.c',
+ 'sctpassociation.c'
+]
+
+if get_option('sctp').disabled()
+ subdir_done()
+endif
+
+sctp_dep = cc.find_library('usrsctp', required : get_option('sctp').enabled())
+sctp_header = cc.has_header('usrsctp.h')
+
+if get_option('sctp').enabled()
+ if not sctp_dep.found() or not sctp_header
+ error('sctp plugin enabled but could not find libusrsctp')
+ endif
+endif
+
+if sctp_dep.found() and sctp_header
+ gstsctp = library('gstsctp',
+ sctp_sources,
+ c_args : gst_plugins_bad_args,
+ include_directories : [configinc],
+ dependencies : [sctp_dep, gst_dep, gstbase_dep, gstsctp_dep],
+ install : true,
+ install_dir : plugins_install_dir,
+ )
+ pkgconfig.generate(gstsctp, install_dir : plugins_pkgconfig_install_dir)
+endif