haskell-gi
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.GI.CodeGen.PkgConfig

Synopsis

Documentation

pkgConfigGetVersion :: Text -> Text -> [Text] -> Bool -> Map Text Text -> IO (Maybe (Text, Text)) Source #

Get the pkg-config name and associated installed version of a given gobject-introspection namespace. Since the mapping is not one-to-one some guessing is involved, although in most cases the required information is listed in the GIR file.

tryPkgConfig :: Text -> IO (Maybe (Text, Text)) Source #

Try asking pkg-config for the version of a given module, and return the package name together with its version.

pkgConfigModVersions :: [Text] -> IO (Map Text Text) Source #

Ask pkg-config for the installed version of each of the given packages. Packages unknown to pkg-config are omitted from the result.

data TaggedPkgConfigVersions Source #

The versions of the pkg-config packages that the bindings for a dependency were generated against, as recorded in the pkgConfigVersions entry of its GI.Name.Config module.

Constructors

TaggedPkgConfigVersions 

Fields

checkDepVersions Source #

Arguments

:: Text

Name of the package being generated

-> Bool

verbose

-> [Text]

pkg-config packages to check

-> [TaggedPkgConfigVersions]

Dependency versions

-> IO () 

Check that the versions of the pkg-config packages that the bindings for the dependencies were generated against agree with the versions currently reported by pkg-config for the given packages (typically, those listed in the loaded GIR files for the dependencies). What happens if they do not is controlled by the HASKELL_GI_ON_VERSION_MISMATCH environment variable, see getOnVersionMismatch.