#include <utilmm/configfile/pkgconfig.hh>
Public Types | |
| enum | Modes { All, Path, Other, Static, Libraries } |
Public Member Functions | |
| pkgconfig (string const &name) | |
| ~pkgconfig () | |
| string | name () const |
| string | version () const |
| string | get (string const &var, string const &defval=string()) const |
| string | compiler (Modes mode=pkgconfig::All) const |
| string | linker (Modes mode=pkgconfig::All) const |
Static Public Member Functions | |
| static bool | exists (string const &name) |
| utilmm::pkgconfig::pkgconfig | ( | string const & | name | ) |
Creates a package description file.
| not_found(name) | if the package is not available |
| utilmm::pkgconfig::~pkgconfig | ( | ) |
| string utilmm::pkgconfig::name | ( | ) | const |
The package name
| string utilmm::pkgconfig::version | ( | ) | const |
The package version
| static bool utilmm::pkgconfig::exists | ( | string const & | name | ) | [static] |
Checks if the given package is available
| string utilmm::pkgconfig::get | ( | string const & | var, | |
| string const & | defval = string() | |||
| ) | const |
Get a variable defined in this package description
| string utilmm::pkgconfig::compiler | ( | Modes | mode = pkgconfig::All |
) | const |
Get compile flags for the given mode
| string utilmm::pkgconfig::linker | ( | Modes | mode = pkgconfig::All |
) | const |
Get link flags for the given mode
1.5.3