3
# WARNING! All changes made to this file will be lost!
6
from waflib import TaskGen,Task
7
from waflib.TaskGen import extension
8
def rc_file(self,node):
10
if self.env['WINRC_TGT_F']=='/fo':
12
rctask=self.create_task('winrc',node,node.change_ext(obj_ext))
13
self.compiled_tasks.append(rctask)
14
class winrc(Task.Task):
15
run_str='${WINRC} ${WINRCFLAGS} ${CPPPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${WINRC_TGT_F} ${TGT} ${WINRC_SRC_F} ${SRC}'
21
if not conf.env.WINRC:
23
winrc=conf.find_program('RC',var='WINRC',path_list=v['PATH'])
24
v['WINRC_TGT_F']='/fo'
27
winrc=conf.find_program('windres',var='WINRC',path_list=v['PATH'])
28
if not conf.env.WINRC:
29
conf.fatal('winrc was not found!')
32
extension('.rc')(rc_file)
b'\\ No newline at end of file'