Skip to content

API Reference / @gtkx/codegen / resolveLibraries

Variable: resolveLibraries

const resolveLibraries: (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

LibrarySelection

girPath

string[]

Returns

string[]

Throws

If "*" matched no .gir file anywhere on the GIR path.

Released under the MPL-2.0 License.