[vlc-commits] [Git][videolan/vlc][master] meson: add rtp modules

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat May 20 16:22:10 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
62587d48 by Loïc Branstett at 2023-05-20T16:06:06+00:00
meson: add rtp modules

- - - - -


4 changed files:

- meson_options.txt
- modules/access/meson.build
- + modules/access/rtp/meson.build
- modules/meson.build


Changes:

=====================================
meson_options.txt
=====================================
@@ -601,6 +601,11 @@ option('rist',
     value: 'auto',
     description: 'librist support for access and access_output')
 
+option('libgcrypt',
+    type: 'feature',
+    value: 'auto',
+    description: 'libgcrypt support')
+
 # TODO: Missing live555
 # TODO: Missing v4l2
 # TODO: Missing nvdec
@@ -636,7 +641,6 @@ option('rist',
 # TODO: Missing lirc
 # TODO: Missing projectm
 # TODO: Missing vsxu
-# TODO: Missing libgcrypt
 # TODO: Missing kwallet
 # TODO: Missing osx_notifications
 # TODO: Missing dsm


=====================================
modules/access/meson.build
=====================================
@@ -447,3 +447,6 @@ if librist_dep.found()
         'dependencies' : [socket_libs, librist_dep]
     }
 endif
+
+# RTP
+subdir('rtp')


=====================================
modules/access/rtp/meson.build
=====================================
@@ -0,0 +1,64 @@
+if libgcrypt_dep.found()
+    srtp_lib = static_library('srtp',
+                    files('srtp.c', 'srtp.h'),
+                    dependencies: [libgcrypt_dep],
+                    include_directories: [vlc_include_dirs])
+    srtp_rtp_c_args = ['-DHAVE_SRTP']
+else
+    srtp_lib = []
+    srtp_rtp_c_args = []
+endif
+
+vlc_modules += {
+    'name': 'rtp',
+    'sources': 
+        files(
+            'input.c',
+            'session.c',
+            'sdp.c',
+            'sdp.h',
+            'rtpfmt.c',
+            'datagram.c',
+            'vlc_dtls.h',
+            'rtp.c',
+            'rtp.h',
+        ),
+    'dependencies': [socket_libs],
+    'link_with': srtp_lib,
+    'c_args': srtp_rtp_c_args,
+}
+
+vlc_modules += {
+    'name': 'rtp_ac3',
+    'sources': files('ac3.c')
+}
+
+vlc_modules += {
+    'name': 'rtp_mpeg12',
+    'sources': files('mpeg12.c')
+}
+
+vlc_modules += {
+    'name': 'rtp_pcm',
+    'sources': files('pcm.c')
+}
+
+vlc_modules += {
+    'name': 'rtp_raw',
+    'sources': files('raw.c')
+}
+
+vlc_modules += {
+    'name': 'rtp_h264',
+    'sources': files('h264.c')
+}
+
+vlc_modules += {
+    'name': 'rtp_opus',
+    'sources': files('opus.c')
+}
+
+vlc_modules += {
+    'name': 'rtp_xiph',
+    'sources': files('xiph.c')
+}


=====================================
modules/meson.build
=====================================
@@ -148,6 +148,11 @@ zvbi_dep = dependency('zvbi-0.2', version: '>= 0.2.28', required: false)
 # rsvg, used by SVG codec and text renderer
 rsvg_dep = dependency('librsvg-2.0', version: '>= 2.9.0', required: get_option('rsvg'))
 
+# libgcrypt, used by rtp, access, stream_out
+libgcrypt_dep = dependency('libgcrypt',
+                            version: '>= 1.6.0',
+                            required: get_option('libgcrypt'))
+
 # Array that holds all enabled VLC module dicts
 vlc_modules = []
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/62587d48feb8fbbeb9e8a374242c2c40e2b751f7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/62587d48feb8fbbeb9e8a374242c2c40e2b751f7
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list