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 configure_file(input : 'gstconfig.h.in',
158 output : 'gstconfig.h',
159 install_dir : 'include/gstreamer-1.0/gst',
160 configuration : cdata)
161 configure_file(input : 'gstversion.h.in',
162 output : 'gstversion.h',
163 install_dir : 'include/gstreamer-1.0/gst',
164 configuration : cdata)
166 mkenums = find_program('build_mkenum.py')
167 glib_mkenums = find_program('glib-mkenums')
169 gstenum_h = custom_target('gstenum_h',
170 output : 'gstenumtypes.h',
173 install_dir : 'include/gstreamer-1.0/gst',
174 command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
176 gstenum_c = custom_target('gstenum_c',
177 output : 'gstenumtypes.c',
179 depends : [gstenum_h],
180 command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
185 libgst_c_args = gst_c_args + [
188 '-DG_LOG_DOMAIN=g_log_domain_gstreamer',
189 '-DGST_DISABLE_DEPRECATED',
192 # Make it possible to build both static and shared versions
193 # at the same time. By default use shared for unit tests etc.
194 # This choice is arbitrary.
195 if libtype != 'shared'
196 libgst_static = static_library('gstreamer-1.0', gst_sources,
197 gstenum_h, gstenum_c, grammar, parser, gst_registry,
198 c_args : [libgst_c_args],
199 include_directories : [configinc,
200 # HACK, change include paths in .y and .l in final version.
201 include_directories('parse')],
203 link_with : printf_lib,
204 dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, unwind_dep, dw_dep] + platform_deps,
206 libgst = libgst_static
209 # Make sure that subproject building gir files work
210 gst_incdirs = [configinc]
211 gst_gen_sources = [gstenum_h]
212 if libtype != 'static'
213 libgst_shared = shared_library('gstreamer-1.0', gst_sources,
214 gstenum_h, gstenum_c, grammar, parser, gst_registry,
215 version : libversion,
216 soversion : soversion,
217 c_args : libgst_c_args,
218 include_directories : [configinc,
219 # HACK, change include paths in .y and .l in final version.
220 include_directories('parse')],
221 link_with : printf_lib,
223 dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, unwind_dep, dw_dep] + platform_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 += [include_directories(meson.current_build_dir() + '/..')]
239 gst_gen_sources += [gnome.generate_gir(libgst_shared,
240 sources : gst_sources + gst_headers,
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,