c

Base for c programs/libraries

waflib.Tools.c.c_hook(self, node)[source]

Binds the c file extensions create waflib.Tools.c.c instances

class waflib.Tools.c.c(*k, **kw)[source]

Bases: waflib.Task.Task

Compiles C files into object files

scan(task)

Get the dependencies using a c/c++ preprocessor, this is required for finding dependencies of the kind:

#include some_macro()

This function is bound as a task method on waflib.Tools.c.c and waflib.Tools.cxx.cxx for example

class waflib.Tools.c.cprogram(*k, **kw)[source]

Bases: waflib.Tools.ccroot.link_task

Links object files into c programs

class waflib.Tools.c.cshlib(*k, **kw)[source]

Bases: waflib.Tools.c.cprogram

Links object files into c shared libraries

class waflib.Tools.c.cstlib(*k, **kw)[source]

Bases: waflib.Tools.ccroot.stlink_task

Links object files into a c static libraries

Bases: waflib.Task.Task

Base class for all link tasks. A task generator is supposed to have at most one link task bound in the attribute link_task. See waflib.Tools.ccroot.apply_link().

Process the target attribute to add the platform-specific prefix/suffix such as .so or .exe. The settings are retrieved from env.clsname_PATTERN

Create manifest files for VS-like compilers (msvc, ifort, ...)

Bases: waflib.Tools.ccroot.link_task

Base for static link tasks, which use ar most of the time. The target is always removed before being written.

Previous topic

ccroot

Next topic

cxx

This Page