Merge branch 'tizen' into tizen_gst_1.19.2
[platform/upstream/gstreamer.git] / ext / dtls / meson.build
1 dtls_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   'gstdtlselement.c',
13 ]
14
15 openssl_dep = dependency('openssl1.1', version : '>= 1.0.1', required : get_option('dtls'))
16 libcrypto_dep = dependency('libcrypto1.1', required : get_option('dtls'))
17
18 if openssl_dep.found() and libcrypto_dep.found()
19   gstdtls = library('gstdtls',
20     dtls_sources,
21     c_args : gst_plugins_bad_args,
22     include_directories : [configinc],
23     dependencies : [gst_dep, libcrypto_dep, openssl_dep] + winsock2,
24     install : true,
25     install_dir : plugins_install_dir,
26   )
27   pkgconfig.generate(gstdtls, install_dir : plugins_pkgconfig_install_dir)
28   plugins += [gstdtls]
29 endif