winres

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

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

Binds the .rc extension to a winrc task

class waflib.Tools.winres.rc_parser(nodepaths=None, defines=None)[source]

Bases: waflib.Tools.c_preproc.c_parser

Calculates dependencies in .rc files

filter_comments(node)[source]

Overrides waflib.Tools.c_preproc.c_parser.filter_comments()

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

Bases: waflib.Task.Task

Compiles resource files

color = 'BLUE'
hcode = '${WINRC} ${WINRCFLAGS} ${CPPPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${WINRC_TGT_F} ${TGT} ${WINRC_SRC_F} ${SRC}'
orig_run_str = '${WINRC} ${WINRCFLAGS} ${CPPPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${WINRC_TGT_F} ${TGT} ${WINRC_SRC_F} ${SRC}'
vars = ['CPPPATH_ST', 'DEFINES', 'DEFINES_ST', 'INCPATHS', 'WINRC', 'WINRCFLAGS', 'WINRC_SRC_F', 'WINRC_TGT_F']
waflib.Tools.winres.configure(conf)[source]

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

waflib.Tools.winres.extension(*k)

Decorator that registers 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')