Use old Python decorator syntax to support old Python versions
This commit is contained in:
parent
133c03b08b
commit
a712d0ea7a
1 changed files with 1 additions and 1 deletions
2
wscript
2
wscript
|
@ -56,12 +56,12 @@ def is_mingw (env):
|
|||
return False
|
||||
|
||||
# Compile Win32 res files to (resource) object files
|
||||
@extension ('.rc')
|
||||
def rc_file(self, node):
|
||||
rctask = self.create_task ('winrc')
|
||||
rctask.set_inputs (node)
|
||||
rctask.set_outputs (node.change_ext ('.rc.o'))
|
||||
self.compiled_tasks.append (rctask)
|
||||
rc_file = extension ('.rc')(rc_file)
|
||||
Task.simple_task_type ('winrc', '${WINRC} -o${TGT} ${SRC}', color='BLUE',
|
||||
before='cc cxx', shell=False)
|
||||
|
||||
|
|
Loading…
Reference in a new issue