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)
166 version_cdata = configuration_data()
167 version_cdata.set('GST_VERSION_MAJOR', gst_version_major)
168 version_cdata.set('GST_VERSION_MINOR', gst_version_minor)
169 version_cdata.set('GST_VERSION_MICRO', gst_version_micro)
170 version_cdata.set('GST_VERSION_NANO', gst_version_nano)
172 gst_version_h = configure_file(input : 'gstversion.h.in',
173 output : 'gstversion.h',
174 install_dir : 'include/gstreamer-1.0/gst',
175 configuration : version_cdata)
177 gst_enums = gnome.mkenums('gstenumtypes',
178 sources : gst_headers,
179 h_template : 'gstenumtypes.h.template',
180 c_template : 'gstenumtypes.c.template',
181 install_header : true,
182 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst'))
184 gstenum_h = gst_enums[1]
185 gstenum_c = gst_enums[0]
191 libgst_c_args = gst_c_args + [
194 '-DG_LOG_DOMAIN=g_log_domain_gstreamer',
195 '-DGST_DISABLE_DEPRECATED',
198 # Make it possible to build both static and shared versions
199 # at the same time. By default use shared for unit tests etc.
200 # This choice is arbitrary.
201 if libtype != 'shared'
202 libgst_static = static_library('gstreamer-1.0', gst_sources,
203 gstenum_h, gstenum_c, grammar, parser, gst_registry,
204 c_args : [libgst_c_args],
205 include_directories : [configinc,
206 # HACK, change include paths in .y and .l in final version.
207 include_directories('parse')],
209 link_with : printf_lib,
210 dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib] + backtrace_deps + platform_deps,
212 libgst = libgst_static
215 # Make sure that subproject building gir files work
216 gst_incdirs = [configinc]
217 gst_gen_sources = [gstenum_h]
218 if libtype != 'static'
219 libgst_shared = shared_library('gstreamer-1.0', gst_sources,
220 gstenum_h, gstenum_c, grammar, parser, gst_registry,
221 version : libversion,
222 soversion : soversion,
223 c_args : libgst_c_args,
224 include_directories : [configinc,
225 # HACK, change include paths in .y and .l in final version.
226 include_directories('parse')],
227 link_with : printf_lib,
229 dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, dl_dep] + backtrace_deps
231 vs_module_defs: vs_module_defs_dir + 'libgstreamer.def',
233 libgst = libgst_shared
235 gst_gir_extra_args = gir_init_section + [ '--c-include=gst/gst.h' ]
236 if meson.is_subproject()
237 # FIXME: There must be a better way to do this
238 # Need to pass the include path to find gst/gst.h and gst/gstenumtypes.h (built)
239 gst_gir_extra_args += ['--cflags-begin',
240 '-I' + meson.current_source_dir() + '/..',
241 '-I' + meson.current_build_dir() + '/..',
245 gst_incdirs += [configinc]
246 gst_gen_sources += [gnome.generate_gir(libgst_shared,
247 sources : gst_sources + gst_headers + gst_enums + [gst_version_h],
249 nsversion : apiversion,
250 identifier_prefix : 'Gst',
251 symbol_prefix : 'gst',
252 export_packages : 'gstreamer-1.0',
253 includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0' ],
255 extra_args : gst_gir_extra_args,
260 gst_dep = declare_dependency(link_with : libgst,
261 include_directories : gst_incdirs,
262 dependencies : [glib_dep, gobject_dep, gmodule_dep],
263 # Everything that uses libgst needs this built to compile
264 sources : gst_gen_sources,