Hi Werner, On Thu, Sep 12, 2024 at 1:53 PM Werner LEMBERG <wl@xxxxxxx> wrote: > What exactly do you mean with 'build option'? I would like to have a > the possibility to select the backend at runtime so that it is easy to > run regression tests with different backends using a single FontConfig > library. This would need an additional (but rather trivial) API > function, though, I guess. I mean a compile time option in meson, which results in preprocessor definitions that produce different builds of FontConfig, compare here: https://gitlab.freedesktop.org/drott/fontconfig/-/blob/fontationsIndexing/src/fcdir.c?ref_type=heads#L88 This could be made to work as a runtime switch where FontConfig is linked with both backends, but that increases binary size and my assumption is FontConfig clients generally do not need switchable backends? For testing one backend against the other, with the current branch, two Meson build directories could be used and the result of fc-list or other output could be compared. One with -Dfontations=enabled, one configured with -Dfontations=disabled. I plan to develop tests comparing the output, but so far my thinking was to do that with different binary builds and compare the output. Dominik