mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
b2f9808722
https://github.com/mesonbuild/meson With contributions from: Tim-Philipp Müller <tim@centricular.com> Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> Jussi Pakkanen <jpakkane@gmail.com> (original port) Highlights of the features provided are: * Faster builds on Linux (~40-50% faster) * The ability to build with MSVC on Windows * Generate Visual Studio project files * Generate XCode project files * Much faster builds on Windows (on-par with Linux) * Seriously fast configure and building on embedded ... and many more. For more details see: http://blog.nirbheek.in/2016/05/gstreamer-and-meson-new-hope.html http://blog.nirbheek.in/2016/07/building-and-developing-gstreamer-using.html Building with Meson should work on both Linux and Windows, but may need a few more tweaks on other operating systems.
63 lines
2 KiB
Meson
63 lines
2 KiB
Meson
gst_controller_sources = [
|
|
'gstargbcontrolbinding.c',
|
|
'gstdirectcontrolbinding.c',
|
|
'gsttimedvaluecontrolsource.c',
|
|
'gstinterpolationcontrolsource.c',
|
|
'gsttriggercontrolsource.c',
|
|
'gstlfocontrolsource.c',
|
|
]
|
|
|
|
gst_controller_headers = [
|
|
'gstargbcontrolbinding.h',
|
|
'gstdirectcontrolbinding.h',
|
|
'gsttimedvaluecontrolsource.h',
|
|
'gstinterpolationcontrolsource.h',
|
|
'gsttriggercontrolsource.h',
|
|
'gstlfocontrolsource.h',
|
|
'controller.h',
|
|
]
|
|
install_headers(gst_controller_headers, subdir : 'gstreamer-1.0/gst/controller/')
|
|
|
|
if libtype != 'shared'
|
|
gst_controller_static = static_library('gstcontroller-@0@'.format(apiversion),
|
|
gst_controller_sources,
|
|
c_args : gst_c_args,
|
|
install : true,
|
|
include_directories : [configinc, libsinc],
|
|
dependencies : [gobject_dep, glib_dep, mathlib, gst_dep],
|
|
)
|
|
gst_controller = gst_controller_static
|
|
endif
|
|
|
|
if libtype != 'static'
|
|
gst_controller_shared = shared_library('gstcontroller-@0@'.format(apiversion),
|
|
gst_controller_sources,
|
|
c_args : gst_c_args,
|
|
install : true,
|
|
version : libversion,
|
|
soversion : soversion,
|
|
include_directories : [configinc, libsinc],
|
|
dependencies : [gobject_dep, glib_dep, mathlib, gst_dep],
|
|
vs_module_defs: vs_module_defs_dir + 'libgstcontroller.def',
|
|
)
|
|
gst_controller = gst_controller_shared
|
|
if build_gir
|
|
gnome.generate_gir(gst_controller_shared,
|
|
sources : gst_controller_sources + gst_controller_headers,
|
|
namespace : 'GstController',
|
|
nsversion : apiversion,
|
|
identifier_prefix : 'Gst',
|
|
symbol_prefix : 'gst',
|
|
export_packages : 'gstreamer-controller-1.0',
|
|
link_with : libgst_shared,
|
|
include_directories : [configinc, libsinc, privinc],
|
|
includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gst-1.0'],
|
|
install : true,
|
|
extra_args : gir_init_section,
|
|
)
|
|
endif
|
|
endif
|
|
|
|
gst_controller_dep = declare_dependency(link_with : gst_controller,
|
|
include_directories : [libsinc],
|
|
dependencies : [gst_dep])
|