OOF2: The Manual
Name
oof2setuputils.pkg_check — Add include directories, libraries, and library directories
Synopsis
from oof2setuputils import pkg_check pkg_check(package, version, clib)
Description
If an OOF2 internal extension links to a package or
library that uses the pkg-config
to retrieve its compiler and linker options, then the set_clib_flags
function in a DIR.py
file can set all of the relevant information in a
CLibInfo object with one call to
pkg_check.
Parameters
package-
The name of the package. The name must be specified exactly as it is in the pkg-config database. Run
pkg-config --list-allto see the names of all the installed packages. version-
A string, containing the minimum required version number of the package.
clib-
The
CLibInfoobject that was passed in as an argument toset_clib_flags.
Example
To add all of the compiler and linker flags required to use
version 2.6.0 (or later) of the gtk+
library, the following code could be inserted into
DIR.py:
import oof2setuputils
def set_clib_flags(clib):
oof2setuputils.pkg_check("gtk+-2.0", "2.6.0", clib)



