15 'gstcontrolbinding.c',
20 'gstdeviceprovider.c',
21 'gstdeviceproviderfactory.c',
22 'gstdynamictypefactory.c',
24 'gstelementfactory.c',
50 'gstregistrychunks.c',
54 'gststreamcollection.c',
69 'gsttypefindfactory.c',
92 'gstcontrolbinding.h',
97 'gstelementmetadata.h',
99 'gstdeviceprovider.h',
100 'gstdeviceproviderfactory.h',
101 'gstdynamictypefactory.h',
102 'gstelementfactory.h',
107 'gstdevicemonitor.h',
121 'gstpluginfeature.h',
129 'gststreamcollection.h',
140 'gsttracerfactory.h',
143 'gsttypefindfactory.h',
151 install_headers(gst_headers, subdir : 'gstreamer-1.0/gst')
153 gst_registry = get_option('registry')
155 gst_registry_sources = ['gstregistrybinary.c']
157 gst_registry_sources = []
160 # Make copy so configure_file consumes the copy and we can
161 # still add to the original cdata later.
165 gst_cdata.set('GST_DISABLE_GST_DEBUG_DEFINE', '#undef GST_DISABLE_GST_DEBUG')
167 gst_cdata.set('GST_DISABLE_GST_DEBUG_DEFINE', '#define GST_DISABLE_GST_DEBUG 1')
171 gst_cdata.set('GST_DISABLE_REGISTRY_DEFINE', '#undef GST_DISABLE_REGISTRY')
173 gst_cdata.set('GST_DISABLE_REGISTRY_DEFINE', '#define GST_DISABLE_REGISTRY 1')
176 gst_parse = get_option('gst_parse')
178 gst_cdata.set('GST_DISABLE_PARSE_DEFINE', '#undef GST_DISABLE_PARSE')
180 gst_cdata.set('GST_DISABLE_PARSE_DEFINE', '#define GST_DISABLE_PARSE 1')
183 # FIXME: add --disable-plugin option?
184 gst_cdata.set('GST_DISABLE_PLUGIN_DEFINE', '#undef GST_DISABLE_PLUGIN')
186 configure_file(input : 'gstconfig.h.in',
187 output : 'gstconfig.h',
188 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst'),
189 configuration : gst_cdata)
191 version_cdata = configuration_data()
192 version_cdata.set('GST_VERSION_MAJOR', gst_version_major)
193 version_cdata.set('GST_VERSION_MINOR', gst_version_minor)
194 version_cdata.set('GST_VERSION_MICRO', gst_version_micro)
195 version_cdata.set('GST_VERSION_NANO', gst_version_nano)
197 gst_version_h = configure_file(input : 'gstversion.h.in',
198 output : 'gstversion.h',
199 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst'),
200 configuration : version_cdata)
202 gst_enums = gnome.mkenums_simple('gstenumtypes',
203 sources : gst_headers,
204 header_prefix : '#include <gst/gstconfig.h>',
205 body_prefix : '#include "gst/gst_private.h"\n#include <gst/gst.h>',
206 decorator : 'GST_API',
207 install_header : true,
208 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst'))
210 gstenum_h = gst_enums[1]
211 gstenum_c = gst_enums[0]
213 gst_parse_sources = []
220 libgst_c_args = gst_c_args + [
222 '-DG_LOG_DOMAIN=g_log_domain_gstreamer',
223 '-DGST_DISABLE_DEPRECATED',
226 tracer_hooks = get_option('tracer_hooks')
228 libgst_c_args += ['-DGST_DISABLE_GST_TRACER_HOOKS']
231 # Make sure that subproject building gir files work
232 gst_incdirs = [configinc]
233 gst_gen_sources = [gstenum_h]
234 libgst = library('gstreamer-1.0', gst_sources,
235 gstenum_h, gstenum_c, gst_parse_sources, gst_registry_sources,
236 version : libversion,
237 soversion : soversion,
238 darwin_versions : osxversion,
239 c_args : libgst_c_args + ['-DBUILDING_GST'],
240 include_directories : [configinc,
241 # HACK, change include paths in .y and .l in final version.
242 include_directories('parse')],
243 link_with : printf_lib,
245 dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, dl_dep] + backtrace_deps
250 gst_gir_extra_args = gir_init_section + [ '--c-include=gst/gst.h' ]
251 if meson.is_subproject()
252 # FIXME: There must be a better way to do this
253 # Need to pass the include path to find gst/gst.h and gst/gstenumtypes.h (built)
254 gst_gir_extra_args += ['--cflags-begin',
255 '-I' + meson.current_source_dir() + '/..',
256 '-I' + meson.current_build_dir() + '/..',
260 gst_incdirs += [configinc]
261 gst_gen_sources += [gnome.generate_gir(libgst,
262 sources : gst_sources + gst_headers + gst_enums + [gst_version_h],
264 nsversion : apiversion,
265 identifier_prefix : 'Gst',
266 symbol_prefix : 'gst',
267 export_packages : 'gstreamer-1.0',
268 includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0' ],
270 extra_args : gst_gir_extra_args,
274 gst_dep = declare_dependency(link_with : libgst,
275 include_directories : gst_incdirs,
276 dependencies : [glib_dep, gobject_dep, gmodule_dep],
277 # Everything that uses libgst needs this built to compile
278 sources : gst_gen_sources,