meson: add rtp modules

This commit is contained in:
Loïc Branstett 2023-04-25 16:37:38 +02:00 committed by Steve Lhomme
parent 8d40b8c043
commit 62587d48fe
4 changed files with 77 additions and 1 deletions

View File

@ -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

View File

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

View File

@ -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')
}

View File

@ -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 = []