mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-13 22:01:19 +00:00
5c89c3db69
The binary was only called `server` it has been renamed to `gst-webrtc-signalling-server` and is installed in meson.
31 lines
810 B
Python
Executable file
31 lines
810 B
Python
Executable file
#!/usr/bin/env python3
|
|
# Check that all available plugins have been build and installed in the prefix
|
|
# directory passed in argument.
|
|
import sys
|
|
import os
|
|
import glob
|
|
|
|
from utils import iterate_plugins
|
|
|
|
prefix = sys.argv[1]
|
|
|
|
plugins = glob.glob(os.path.join(
|
|
prefix, '**', 'gstreamer-1.0', '*.so'), recursive=True)
|
|
plugins = list(map(os.path.basename, plugins))
|
|
print("Built plugins:", plugins)
|
|
|
|
success = True
|
|
|
|
for name in iterate_plugins():
|
|
plugin = "libgst{}.so".format(name)
|
|
|
|
if plugin not in plugins:
|
|
print(name, "missing in", prefix)
|
|
success = False
|
|
|
|
if len(glob.glob(os.path.join(prefix, '**', 'bin', 'gst-webrtc-signalling-server'), recursive=True)) != 1:
|
|
print("gst-webrtc-signalling-serverm is missing in", prefix)
|
|
success = False
|
|
|
|
if not success:
|
|
sys.exit(1)
|