#include <pkgconfig.hh>
Public Types | |
enum | Modes { All, Path, Other, Static, Libraries } |
Public Member Functions | |
string | compiler (Modes mode=pkgconfig::All) const |
string | get (string const &var, string const &defval=string()) const |
string | linker (Modes mode=pkgconfig::All) const |
string | name () const |
pkgconfig (string const &name) | |
string | version () const |
~pkgconfig () | |
Static Public Member Functions | |
static bool | exists (string const &name) |
static std::list< string > | packages () |
Private Types | |
typedef std::string | string |
Private Member Functions | |
string | run (string const &argument) const |
Static Private Member Functions | |
static string | run (process &prs) |
Private Attributes | |
string | m_name |
Definition at line 13 of file pkgconfig.hh.
typedef std::string utilmm::pkgconfig::string [private] |
Definition at line 15 of file pkgconfig.hh.
Definition at line 35 of file pkgconfig.hh.
pkgconfig::pkgconfig | ( | string const & | name | ) |
Creates a package description file.
not_found(name) | if the package is not available |
Definition at line 11 of file pkgconfig.cc.
Definition at line 18 of file pkgconfig.cc.
string pkgconfig::compiler | ( | Modes | mode = pkgconfig::All | ) | const |
Get compile flags for the given mode
Definition at line 63 of file pkgconfig.cc.
bool pkgconfig::exists | ( | string const & | name | ) | [static] |
Checks if the given package is available
Definition at line 46 of file pkgconfig.cc.
string pkgconfig::get | ( | string const & | var, |
string const & | defval = string() |
||
) | const |
Get a variable defined in this package description
Definition at line 55 of file pkgconfig.cc.
string pkgconfig::linker | ( | Modes | mode = pkgconfig::All | ) | const |
Get link flags for the given mode
Definition at line 67 of file pkgconfig.cc.
string pkgconfig::name | ( | ) | const |
The package name
Definition at line 43 of file pkgconfig.cc.
std::list< string > pkgconfig::packages | ( | ) | [static] |
Definition at line 20 of file pkgconfig.cc.
string pkgconfig::run | ( | process & | prs | ) | [static, private] |
Run the given process object and returns its standard output
Definition at line 87 of file pkgconfig.cc.
string pkgconfig::run | ( | string const & | argument | ) | const [private] |
Get the value returned by pkgconfig with the given argument applied to the current package
Definition at line 74 of file pkgconfig.cc.
string pkgconfig::version | ( | ) | const |
The package version
Definition at line 44 of file pkgconfig.cc.
string utilmm::pkgconfig::m_name [private] |
The package name
Definition at line 48 of file pkgconfig.hh.