15 'gstcontrolbinding.c',
20 'gstdeviceprovider.c',
21 'gstdeviceproviderfactory.c',
22 'gstdynamictypefactory.c',
24 'gstelementfactory.c',
50 'gstregistrychunks.c',
53 'gststreamcollection.c',
68 'gsttypefindfactory.c',
91 'gstcontrolbinding.h',
96 'gstelementmetadata.h',
98 'gstdeviceprovider.h',
99 'gstdeviceproviderfactory.h',
100 'gstdynamictypefactory.h',
101 'gstelementfactory.h',
106 'gstdevicemonitor.h',
120 'gstpluginfeature.h',
127 'gststreamcollection.h',
138 'gsttracerfactory.h',
141 'gsttypefindfactory.h',
149 install_headers(gst_headers, subdir : 'gstreamer-1.0/gst')
151 if not get_option('disable_registry')
152 gst_registry = ['gstregistrybinary.c']
157 # Make copy so configure_file consumes the copy and we can
158 # still add to the original cdata later.
161 configure_file(input : 'gstconfig.h.in',
162 output : 'gstconfig.h',
163 install_dir : 'include/gstreamer-1.0/gst',
164 configuration : gst_cdata)
165 gst_version_h = configure_file(input : 'gstversion.h.in',
166 output : 'gstversion.h',
167 install_dir : 'include/gstreamer-1.0/gst',
168 configuration : gst_cdata)
170 gst_enums = gnome.mkenums('gstenumtypes',
171 sources : gst_headers,
172 h_template : 'gstenumtypes.h.template',
173 c_template : 'gstenumtypes.c.template',
174 install_header : true,
175 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst'))
177 gstenum_h = gst_enums[1]
178 gstenum_c = gst_enums[0]
184 libgst_c_args = gst_c_args + [
187 '-DG_LOG_DOMAIN=g_log_domain_gstreamer',
188 '-DGST_DISABLE_DEPRECATED',
191 # Make it possible to build both static and shared versions
192 # at the same time. By default use shared for unit tests etc.
193 # This choice is arbitrary.
194 if libtype != 'shared'
195 libgst_static = static_library('gstreamer-1.0', gst_sources,
196 gstenum_h, gstenum_c, grammar, parser, gst_registry,
197 c_args : [libgst_c_args],
198 include_directories : [configinc,
199 # HACK, change include paths in .y and .l in final version.
200 include_directories('parse')],
202 link_with : printf_lib,
203 dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib] + backtrace_deps + platform_deps,
205 libgst = libgst_static
208 # Make sure that subproject building gir files work
209 gst_incdirs = [configinc]
210 gst_gen_sources = [gstenum_h]
211 if libtype != 'static'
212 libgst_shared = shared_library('gstreamer-1.0', gst_sources,
213 gstenum_h, gstenum_c, grammar, parser, gst_registry,
214 version : libversion,
215 soversion : soversion,
216 c_args : libgst_c_args,
217 include_directories : [configinc,
218 # HACK, change include paths in .y and .l in final version.
219 include_directories('parse')],
220 link_with : printf_lib,
222 dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, dl_dep] + backtrace_deps
224 vs_module_defs: vs_module_defs_dir + 'libgstreamer.def',
226 libgst = libgst_shared
228 gst_gir_extra_args = gir_init_section + [ '--c-include=gst/gst.h' ]
229 if meson.is_subproject()
230 # FIXME: There must be a better way to do this
231 # Need to pass the include path to find gst/gst.h and gst/gstenumtypes.h (built)
232 gst_gir_extra_args += ['--cflags-begin',
233 '-I' + meson.current_source_dir() + '/..',
234 '-I' + meson.current_build_dir() + '/..',
238 gst_incdirs += [configinc]
239 gst_gen_sources += [gnome.generate_gir(libgst_shared,
240 sources : gst_sources + gst_headers + gst_enums + [gst_version_h],
242 nsversion : apiversion,
243 identifier_prefix : 'Gst',
244 symbol_prefix : 'gst',
245 export_packages : 'gstreamer-1.0',
246 includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0' ],
248 extra_args : gst_gir_extra_args,
253 gst_dep = declare_dependency(link_with : libgst,
254 include_directories : gst_incdirs,
255 dependencies : [glib_dep, gobject_dep, gmodule_dep],
256 # Everything that uses libgst needs this built to compile
257 sources : gst_gen_sources,