3
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
5
from waflib import Task
6
from waflib.TaskGen import extension
7
def rc_file(self,node):
9
if self.env['WINRC_TGT_F']=='/fo':
11
rctask=self.create_task('winrc',node,node.change_ext(obj_ext))
13
self.compiled_tasks.append(rctask)
14
except AttributeError:
15
self.compiled_tasks=[rctask]
16
class winrc(Task.Task):
17
run_str='${WINRC} ${WINRCFLAGS} ${CPPPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${WINRC_TGT_F} ${TGT} ${WINRC_SRC_F} ${SRC}'
23
if not conf.env.WINRC:
25
conf.find_program('RC',var='WINRC',path_list=v['PATH'])
26
v['WINRC_TGT_F']='/fo'
29
conf.find_program('windres',var='WINRC',path_list=v['PATH'])
30
if not conf.env.WINRC:
31
conf.fatal('winrc was not found!')
34
extension('.rc')(rc_file)
b'\\ No newline at end of file'