mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
1be6d6ccf5
This is required since Meson 0.61.0, and causes a warning to be
emitted otherwise:
2c079d855e
https://github.com/mesonbuild/meson/issues/9300
This exposed a bunch of places where we had broken run_command()
calls, unnecessary run_command() calls, and places where check: true
should be used.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1507>
33 lines
1.3 KiB
Meson
33 lines
1.3 KiB
Meson
project('gstreamer-sharp', ['cs'], meson_version: '>=0.47.0', license: 'LGPL')
|
|
gstreamer_version = '1.14.0'
|
|
|
|
|
|
mono_path = ''
|
|
nuget = find_program('nuget.py')
|
|
|
|
dependencies = []
|
|
foreach dependency, version: { 'Newtonsoft.Json': '11.0.2', 'WebSocketSharp': '1.0.3-rc11'}
|
|
message('Getting @0@:@1@'.format(dependency, version))
|
|
get_dep = run_command(nuget, 'get',
|
|
'--builddir', dependency,
|
|
'--nuget-name', dependency,
|
|
'--nuget-version', version,
|
|
'--csharp-version=net45',
|
|
'--current-builddir', meson.current_build_dir(),
|
|
'--builddir', meson.global_build_root(), # FIXME: --builddir specified twice?!
|
|
check: true,
|
|
)
|
|
|
|
link_args = get_dep.stdout().split()
|
|
dependencies += [declare_dependency(link_args: link_args, version: version)]
|
|
foreach path: get_dep.stdout().split()
|
|
mono_path += ':@0@'.format(join_paths(meson.build_root(), path.strip('-r:'), '..'))
|
|
endforeach
|
|
endforeach
|
|
|
|
# Use nugget once 1.16 is released.
|
|
dependencies += [dependency('gstreamer-sharp-1.0', fallback: ['gstreamer-sharp', 'gst_sharp_dep'])]
|
|
|
|
message('Execute with MONO_PATH=@0@:$MONO_PATH @1@/WebRTCSendRecv.exe'.format(mono_path, meson.current_build_dir()))
|
|
executable('WebRTCSendRecv', 'WebRTCSendRecv.cs',
|
|
cs_args: ['-unsafe'], dependencies: dependencies)
|