Commit 7203662e authored by Nicolas Dufresne's avatar Nicolas Dufresne

Go back to simple project

We will make a gst-build fork instead as this is hard to manage now that
we have multiple repo.
parent 6fe0ba70
......@@ -3,9 +3,8 @@ Build:
meson build
ninja -C build
To run the stream server with the latest GStreamer in uninstalled environment:
To run the stream server:
ninja -C build uninstalled
./build/src/multistream-server
The server will wait for incoming SRT stream on 127.0.0.1:7001. You can stream
......
project('multistream-server', 'c')
dependency('libavfilter')
dependency('libavformat')
dependency('libavcodec')
dependency('libavutil')
dependency('srt')
subprojects = [
['orc', {'required': true}],
['gstreamer', {'required': true}],
['libnice', {'required': true}],
['gst-plugins-base', {'required': true}],
['gst-plugins-good', {'required': true}],
['gst-plugins-bad', {'required': true}],
['gst-plugins-ugly', {'required': true}],
['gst-libav', {'required': true}],
['gstreamer-vaapi', {'required': false}],
]
common_opt = ['introspection=disabled', 'examples=disabled', 'doc=disabled', 'gtk_doc=disabled']
build_opt = ['python=disabled', 'devtools=disabled', 'ges=disabled', 'rtsp_server=disabled']
run_command('meson', 'subprojects', 'download', 'gst-build')
foreach sp : subprojects
sp_name = sp[0]
sp_required = sp[1]['required']
run_command('meson', 'wrap', 'promote', 'subprojects/gst-build/subprojects/' + sp_name + '.wrap')
subproject(sp_name, default_options: common_opt, required: sp_required)
endforeach
subproject('gst-build', default_options: common_opt + build_opt)
soup_dep = dependency('libsoup-2.4')
json_glib_dep = dependency('json-glib-1.0')
gst_base_dep = subproject('gstreamer').get_variable('gst_base_dep')
gstwebrtc_dep = subproject('gst-plugins-bad').get_variable('gstwebrtc_dep')
gst_dep = dependency('gstreamer-1.0')
gst_sdp_dep = dependency('gstreamer-sdp-1.0')
gstwebrtc_dep = dependency('gstreamer-webrtc-1.0')
subdir('src')
uninstalled = find_program('subprojects/gst-build/gst-uninstalled.py')
run_target('uninstalled', command : [uninstalled,
'--builddir=@0@'.format(meson.build_root()),
'--srcdir=@0@'.format(meson.source_root())])
......@@ -7,6 +7,6 @@ sources = [
]
executable('multistream-server', sources,
dependencies: [soup_dep, json_glib_dep, gst_base_dep, gstwebrtc_dep],
dependencies: [soup_dep, json_glib_dep, gst_dep, gst_sdp_dep, gstwebrtc_dep],
install: true,
c_args: '-DG_LOG_DOMAIN="ibcdemo"')
[wrap-git]
directory=gst-build
url=https://gitlab.freedesktop.org/gstreamer/gst-build.git
revision=master
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment