wireplumber/tests/wp/component-loader.conf
George Kiagiadakis e738076cb0 conf: refactor component loading to use a dependency system
Each component can now list required and optional dependencies,
using the component feature names to match other components.
In addition, each component feature can be declared as required, optional
or disabled, making optional components easier to deal with.
The component flags (ifexists, nofail) have been removed.

Using virtual components, this system also allows easier customization
of which components should be loaded for a specific configuration,
without requiring the user to copy the list of components and edit it.

Also bump the required glib version to 2.68 for g_assert_cmpstrv()
2023-06-20 12:39:29 +03:00

64 lines
1.1 KiB
Text

context.modules = [
{ name = libpipewire-module-protocol-native }
]
wireplumber.features = {
virtual.four = required
}
wireplumber.components = [
# expected load order:
# five, one, six, two, three, four, seven
# eight is not loaded - optional feature
{
name = one
type = test
provides = support.one
}
{
name = two
type = test
provides = support.two
requires = [ support.one support.six ]
}
{
type = virtual
provides = virtual.four
requires = [ support.four ]
}
{
name = three
type = test
provides = support.three
wants = [ support.two ]
}
{
name = four
type = test
provides = support.four
requires = [ support.five ]
wants = [ support.three ]
}
{
name = five
type = test
provides = support.five
}
{
name = six
type = test
provides = support.six
requires = [ support.one ]
}
{
name = seven
type = test
requires = [ support.five ]
}
{
name = eight
type = test
provides = support.eight
requires = [ support.four ]
}
]