RTEMS Linker
0.0.1
RTEMS Tools Project
|
#include <pkgconfig.h>
Public Types | |
typedef std::map< std::string, std::string > | table |
Public Member Functions | |
package () | |
void | load (const std::string &name) |
bool | get (const std::string &label, std::string &result) |
A simple class to parse a pkgconfig file as used in RTEMS. The RTEMS use is simple and basically provides a simplified method to manage the various flags used to build and link modules for a specific BSP.
typedef std::map< std::string, std::string > pkgconfig::package::table |
The type of defines and fields parsed from a package config file.
pkgconfig::package::package | ( | void | ) |
bool pkgconfig::package::get | ( | const std::string & | label, |
std::string & | result | ||
) |
Get a field from the package.
label | The label to search for. |
result | The result of the search. |
true | The field was found. |
false | The field was not found. |
void pkgconfig::package::load | ( | const std::string & | name | ) |
Load a package configuration file.
name | The file name of the package. |