2020-11-18 14:53:01 +00:00
|
|
|
#!/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
|
|
|
|
|
2020-11-27 12:27:05 +00:00
|
|
|
from utils import iterate_plugins
|
2020-11-18 14:53:01 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-11-27 12:27:05 +00:00
|
|
|
for name in iterate_plugins():
|
|
|
|
plugin = "libgst{}.so".format(name)
|
2020-11-18 14:53:01 +00:00
|
|
|
|
2020-11-27 12:27:05 +00:00
|
|
|
if plugin not in plugins:
|
|
|
|
print(name, "missing in", prefix)
|
|
|
|
success = False
|
2020-11-18 14:53:01 +00:00
|
|
|
|
2022-10-20 17:10:43 +00:00
|
|
|
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
|
|
|
|
|
2020-11-18 14:53:01 +00:00
|
|
|
if not success:
|
|
|
|
sys.exit(1)
|