akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame^] | 1 | #! /usr/bin/env python |
| 2 | # encoding: utf-8 |
| 3 | # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file |
| 4 | |
| 5 | import os,sys |
| 6 | from waflib import Task,Utils |
| 7 | import waflib.Task |
| 8 | from waflib.Tools.ccroot import link_task,stlink_task |
| 9 | from waflib.TaskGen import extension,feature |
| 10 | class asm(Task.Task): |
| 11 | color='BLUE' |
| 12 | run_str='${AS} ${ASFLAGS} ${ASMPATH_ST:INCPATHS} ${AS_SRC_F}${SRC} ${AS_TGT_F}${TGT}' |
| 13 | @extension('.s','.S','.asm','.ASM','.spp','.SPP') |
| 14 | def asm_hook(self,node): |
| 15 | return self.create_compiled_task('asm',node) |
| 16 | class asmprogram(link_task): |
| 17 | run_str='${ASLINK} ${ASLINKFLAGS} ${ASLNK_TGT_F}${TGT} ${ASLNK_SRC_F}${SRC}' |
| 18 | ext_out=['.bin'] |
| 19 | inst_to='${BINDIR}' |
| 20 | class asmshlib(asmprogram): |
| 21 | inst_to='${LIBDIR}' |
| 22 | class asmstlib(stlink_task): |
| 23 | pass |
| 24 | def configure(conf): |
| 25 | conf.env['ASMPATH_ST']='-I%s' |