mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 22:21:13 +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.
65 lines
1.7 KiB
Meson
65 lines
1.7 KiB
Meson
gst_net_sources = [
|
|
'gstnetaddressmeta.c',
|
|
'gstnetclientclock.c',
|
|
'gstnetcontrolmessagemeta.c',
|
|
'gstnettimepacket.c',
|
|
'gstnettimeprovider.c',
|
|
'gstptpclock.c',
|
|
'gstntppacket.c',
|
|
]
|
|
|
|
gst_net_headers = [
|
|
'gstnet.h',
|
|
'gstnetaddressmeta.h',
|
|
'gstnetclientclock.h',
|
|
'gstnetcontrolmessagemeta.h',
|
|
'gstnettimepacket.h',
|
|
'gstnettimeprovider.h',
|
|
'gstptpclock.h',
|
|
'net.h',
|
|
]
|
|
install_headers(gst_net_headers, subdir : 'gstreamer-1.0/gst/net/')
|
|
|
|
if libtype != 'shared'
|
|
gst_net_static = static_library('gstnet-@0@'.format(apiversion),
|
|
gst_net_sources,
|
|
c_args : gst_c_args,
|
|
include_directories : [configinc, libsinc],
|
|
install : true,
|
|
dependencies : [gio_dep, gst_base_dep],
|
|
)
|
|
gst_net = gst_net_static
|
|
endif
|
|
|
|
if libtype != 'static'
|
|
gst_net_shared = shared_library('gstnet-@0@'.format(apiversion),
|
|
gst_net_sources,
|
|
c_args : gst_c_args,
|
|
include_directories : [configinc, libsinc],
|
|
version : libversion,
|
|
soversion : soversion,
|
|
install : true,
|
|
dependencies : [gio_dep, gst_base_dep],
|
|
vs_module_defs: vs_module_defs_dir + 'libgstnet.def',
|
|
)
|
|
gst_net = gst_net_shared
|
|
if build_gir
|
|
gnome.generate_gir(gst_net_shared,
|
|
sources : gst_net_sources + gst_net_headers,
|
|
namespace : 'GstNet',
|
|
nsversion : apiversion,
|
|
identifier_prefix : 'Gst',
|
|
symbol_prefix : 'gst',
|
|
export_packages : 'gstreamer-net-1.0',
|
|
link_with : libgst_shared,
|
|
include_directories : [configinc, libsinc],
|
|
includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gio-2.0', 'Gst-1.0'],
|
|
install : true,
|
|
extra_args : gir_init_section,
|
|
)
|
|
endif
|
|
endif
|
|
|
|
gst_net_dep = declare_dependency(link_with : gst_net,
|
|
include_directories : [libsinc],
|
|
dependencies : [gst_dep])
|