Skip to content

API Reference / @gtkx/codegen / resolveGirPath

Variable: resolveGirPath

const resolveGirPath: (configGirPath) => string[]

Defined in: codegen/dist/gir/gir-path.d.ts:8

The directories to search for .gir files, in precedence order: the config's own girPath, then GTKX_GIR_PATH, then /usr/share/gir-1.0, then the girdir pkg-config reports for gobject-introspection-1.0. Duplicates are dropped, and the last two are included only when they exist.

Parameters

configGirPath

string[] | undefined

Returns

string[]

Throws

If pkg-config is installed but fails while being queried.

Released under the MPL-2.0 License.