12 'gstrtspconnection.h',
23 install_headers(rtsp_headers, subdir : 'gstreamer-1.0/gst/rtsp/')
25 rtsp_enums = gnome.mkenums_simple('gstrtsp-enumtypes',
26 sources : rtsp_headers,
27 body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
28 header_prefix : '#include <gst/rtsp/rtsp-prelude.h>',
29 decorator : 'GST_RTSP_API',
31 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/rtsp'))
32 gstrtsp_c = rtsp_enums[0]
33 gstrtsp_h = rtsp_enums[1]
35 if host_system == 'windows'
36 winsock2 = cc.find_library('ws2_32')
40 gstrtsp_deps = [gst_base_dep, gst_dep, gio_dep, libm, winsock2]
42 gst_rtsp = library('gstrtsp-@0@'.format(api_version),
45 c_args : gst_plugins_base_args + ['-DBUILDING_GST_RTSP'],
46 include_directories: [configinc, libsinc],
48 soversion : soversion,
49 darwin_versions : osxversion,
51 dependencies : gstrtsp_deps,
54 rtsp_gen_sources = [gstrtsp_h]
56 gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtsp/rtsp.h' ]
57 rtsp_gir = gnome.generate_gir(gst_rtsp,
58 sources : rtsp_sources + rtsp_headers + [gstrtsp_c] + [gstrtsp_h],
59 namespace : 'GstRtsp',
60 nsversion : api_version,
61 identifier_prefix : 'Gst',
62 symbol_prefix : 'gst',
63 export_packages : 'gstreamer-rtsp-1.0',
64 includes : ['Gst-1.0', 'GstBase-1.0', 'GstSdp-1.0', 'Gio-2.0'],
66 extra_args : gst_gir_extra_args,
67 dependencies : gstrtsp_deps + [sdp_dep]
69 rtsp_gen_sources += [rtsp_gir]
72 rtsp_dep = declare_dependency(link_with : gst_rtsp,
73 include_directories : [libsinc],
74 dependencies : gstrtsp_deps,
75 sources : rtsp_gen_sources)