winres

Process .rc files for C/C++: X{.rc -> [.res|.rc.o]}

waflib.Tools.winres.rc_file(self, node)[source]

Bind the .rc extension to a winrc task

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

Bases: waflib.Task.Task

Task for compiling resource files

waflib.Tools.winres.configure(conf)[source]

Detect the programs RC or windres, depending on the C/C++ compiler in use

waflib.Tools.winres.extension(*k)

Decorator: register a task generator method which will be invoked during the processing of source files for the extension given:

from waflib import Task
class mytask(Task):
        run_str = 'cp ${SRC} ${TGT}'
@extension('.moo')
def create_maa_file(self, node):
        self.create_task('mytask', node, node.change_ext('.maa'))
def build(bld):
        bld(source='foo.moo')

Previous topic

msvc

Next topic

irixcc

This Page