• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dtls_sources = [
2  'gstdtlsagent.c',
3  'gstdtlscertificate.c',
4  'gstdtlsconnection.c',
5  'gstdtlsdec.c',
6  'gstdtlsenc.c',
7  'gstdtlssrtpbin.c',
8  'gstdtlssrtpdec.c',
9  'gstdtlssrtpdemux.c',
10  'gstdtlssrtpenc.c',
11  'plugin.c',
12]
13
14openssl_dep = dependency('openssl', version : '>= 1.0.1', required : get_option('dtls'))
15libcrypto_dep = dependency('libcrypto', required : get_option('dtls'))
16
17if openssl_dep.found() and libcrypto_dep.found()
18  gstdtls = library('gstdtls',
19    dtls_sources,
20    c_args : gst_plugins_bad_args,
21    include_directories : [configinc],
22    dependencies : [gst_dep, libcrypto_dep, openssl_dep] + winsock2,
23    install : true,
24    install_dir : plugins_install_dir,
25  )
26  pkgconfig.generate(gstdtls, install_dir : plugins_pkgconfig_install_dir)
27endif
28