2 'gstpluginsbaseversion.c',
10 'gstaudiovisualizer.c',
12 'gstdiscoverer-types.c'
15 pbconf = configuration_data()
16 pbconf.set('PACKAGE_VERSION_MAJOR', gst_version_major)
17 pbconf.set('PACKAGE_VERSION_MINOR', gst_version_minor)
18 pbconf.set('PACKAGE_VERSION_MICRO', gst_version_micro)
19 pbconf.set('PACKAGE_VERSION_NANO', gst_version_nano)
20 gst_pbutils_version_h = configure_file(input : 'gstpluginsbaseversion.h.in',
21 output: 'gstpluginsbaseversion.h',
22 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/pbutils'),
23 configuration: pbconf)
35 'gstaudiovisualizer.h',
37 install_headers(pbutils_headers, subdir : 'gstreamer-1.0/gst/pbutils/')
39 pbutils_mkenum_headers = pbutils_headers
41 pbutils_enums = gnome.mkenums_simple('pbutils-enumtypes',
42 sources : pbutils_mkenum_headers,
43 body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
44 header_prefix : '#include <gst/pbutils/pbutils-prelude.h>',
45 decorator : 'GST_PBUTILS_API',
47 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/pbutils'))
48 gstpbutils_c = pbutils_enums[0]
49 gstpbutils_h = pbutils_enums[1]
51 gstpbutils_deps = [video_dep, audio_dep, tag_dep]
52 pbutils = library('gstpbutils-@0@'.format(api_version),
53 pbutils_sources, gstpbutils_c, gstpbutils_h,
54 c_args : gst_plugins_base_args + ['-DBUILDING_GST_PBUTILS'],
55 include_directories: [configinc, libsinc],
57 soversion : soversion,
58 darwin_versions : osxversion,
60 dependencies : gstpbutils_deps,
63 pkgconfig.generate(pbutils,
64 libraries : [gst_dep, video_dep, audio_dep, gst_base_dep],
65 variables : pkgconfig_variables,
66 subdirs : pkgconfig_subdirs,
67 name : 'gstreamer-pbutils-1.0',
68 description : 'General utility functions',
71 pbutils_gen_sources = [gstpbutils_h, gst_pbutils_version_h]
73 gst_gir_extra_args = gir_init_section + [ '--c-include=gst/pbutils/pbutils.h' ]
74 pbutils_gir = gnome.generate_gir(pbutils,
75 sources : pbutils_sources + pbutils_headers + [gstpbutils_h, gst_pbutils_version_h],
76 namespace : 'GstPbutils',
77 nsversion : api_version,
78 identifier_prefix : 'Gst',
79 symbol_prefix : 'gst',
80 export_packages : 'gstreamer-pbutils-1.0',
81 includes : ['Gst-1.0', 'GstBase-1.0', 'GstAudio-1.0', 'GstVideo-1.0'],
83 extra_args : gst_gir_extra_args,
84 dependencies : gstpbutils_deps
86 pbutils_gen_sources += [pbutils_gir]
89 pbutils_dep = declare_dependency(link_with : pbutils,
90 include_directories : [libsinc],
91 dependencies : gstpbutils_deps,
92 sources : pbutils_gen_sources)