OOF2: The Manual

Name

oof2setuputils.add_third_party_includes — Add header file directories for an internal extension

Synopsis

from oof2setuputils import add_third_party_includes	 
add_third_party_includes(cmd, clib)
	  

Description

add_third_party_includes runs a Unix command and incorporates its output into the given CLibInfo object. The Unix command must print the compiler arguments required to locate the header files for an external library.

Parameters

cmd

A string, containing the Unix command to be executed.

clib

The CLibInfo object that was passed in as an argument to set_clib_flags.

Example

OOF2 uses the Magick++ library, which provides a Magick++-config command, which prints include-file information, like this:

% Magick++-config --cppflags
-I/usr/local/stow/ImageMagick-6.2.4-gcc3/include
	  

An internal OOF2 extension that uses Magick++ could define set_clib_flags like this:

import oof2setuputils
def set_clib_flags(clib):
   [...]
    oof2setuputils.add_third_party_includes('Magick++-config --cppflags', clib)
   [...]