package ocb-stubblr

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Query pkg-config.

pkg-config is invoked with the environment extended with the equivalent of

PKG_CONFIG_PATH=$(opam config var prefix)/lib/pkgconfig

This means that any pc files in the current Opam switch take precedence over the system-wide ones.

Queries are cached in the build directory.

val run : flags:string list -> string -> [ `Nonexistent | `Res of string ]

run ~flags package queries pkg-config about package, using flags.

`Nonexistent means that the package was not found. Otherwise, `Res output is whatever pkg-config prints on the standard output.

Note Currently, error in pkg-config invocation also results in `Nonexistent.

OCaml

Innovation. Community. Security.