fab.tools.pkg_config#

This file contains the class to interface with pkg-config.

Classes

PkgConfig(name)

This class implements a simple interface to pkg-config.

class fab.tools.pkg_config.PkgConfig(name)#

This class implements a simple interface to pkg-config. PkgConfig is not added to the ToolRepository, it is intended for site-specific configurations to create an instance for each required package.

Parameters:

name (str) – the name of the package. It is the responsibility of the user to ensure that package is really available.

get_compiler_flags()#
Return type:

List[str]

Returns:

the compilation flags to use for the specified package.

get_linker_flags()#
Return type:

List[str]

Returns:

the linker flags to use for the specified package.