API Reference / @gtkx/codegen / resolveLibraries
Variable: resolveLibraries
constresolveLibraries: (libraries,girPath) =>string[]
Defined in: codegen/dist/gir/libraries.d.ts:10
Expands a libraries config value into the GIR identifiers to generate from: "Gtk-4.0" alone when nothing is configured, everything installed for "*", and otherwise the given list with "Gtk-4.0" prepended unless it already names a Gtk version.
Parameters
libraries
girPath
string[]
Returns
string[]
Throws
If "*" matched no .gir file anywhere on the GIR path.