Welcome to mirror list, hosted at ThFree Co, Russian Federation.

check-plugins-installed.py « ci - gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8284ace79890ca121252717f7806abf1797ee67c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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

DIRS = ['audio', 'generic', 'net', 'text', 'utils', 'video']
OVERRIDE = {'wrap': 'textwrap', 'flavors': 'rsflv'}

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 d in DIRS:
    for name in os.listdir(d):
        name = OVERRIDE.get(name, name)

        plugin = "libgst{}.so".format(name)
        # Some plugins are prefixed with 'rs'
        rs_plugin = "libgstrs{}.so".format(name)

        if plugin not in plugins and rs_plugin not in plugins:
            print(name, "missing in", prefix)
            success = False

if not success:
    sys.exit(1)