meson.build 1.34 KB
Newer Older
1
2
project('multistream-server', 'c')

3
4
5
6
dependency('libavfilter')
dependency('libavformat')
dependency('libavcodec')
dependency('libavutil')
Jakub Adam's avatar
Jakub Adam committed
7
dependency('srt')
8

9
10
11
12
13
14
run_command('meson', 'subprojects', 'download', 'gst-build')
run_command('meson', 'wrap', 'promote', 'subprojects/gst-build/subprojects/gstreamer.wrap')
run_command('meson', 'wrap', 'promote', 'subprojects/gst-build/subprojects/gst-plugins-base.wrap')
run_command('meson', 'wrap', 'promote', 'subprojects/gst-build/subprojects/gst-plugins-good.wrap')
run_command('meson', 'wrap', 'promote', 'subprojects/gst-build/subprojects/gst-plugins-bad.wrap')
run_command('meson', 'wrap', 'promote', 'subprojects/gst-build/subprojects/gst-plugins-ugly.wrap')
15
run_command('meson', 'wrap', 'promote', 'subprojects/gst-build/subprojects/gst-libav.wrap')
Jakub Adam's avatar
Jakub Adam committed
16
run_command('meson', 'wrap', 'promote', 'subprojects/gst-build/subprojects/libnice.wrap')
17
18
19
subproject('gst-build')

soup_dep = dependency('libsoup-2.4')
Jakub Adam's avatar
Jakub Adam committed
20
json_glib_dep = dependency('json-glib-1.0')
21
gst_base_dep = subproject('gstreamer').get_variable('gst_base_dep')
Jakub Adam's avatar
Jakub Adam committed
22
gstwebrtc_dep = subproject('gst-plugins-bad').get_variable('gstwebrtc_dep')
23
24
25
26
27
28
29

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())])