Commit 8b693289 authored by Manuel Günther's avatar Manuel Günther
Browse files

Implemented get_macros

parent 795127b7
......@@ -15,5 +15,28 @@ def get_config():
return bob.extension.get_config(__name__, version.externals, version.api)
def get_macros():
"""get_macros() -> macros
Returns a list of preprocessor macros, such as ``[(HAVE_BOOST, 1), (BOOST_VERSION,xx)]``.
This function is automatically used by :py:func:`bob.extension.get_bob_libraries` to retrieve the prerpocessor definitions that are required to use the C bindings of this library in dependent classes.
You shouldn't normally need to call this function by hand.
``macros`` : [str]
The list of preprocessor macros required to use the C bindings of this class.
# try to use pkg_config first
from bob.extension.boost import boost
macros = []
b = boost()
macros = b.macros()
return macros
# gets sphinx autodoc done right - don't remove it
__all__ = [_ for _ in dir() if not _.startswith('_')]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment