blob: b9ed5f4b0538ab215541305566845bb35efdf23f [file] [log] [blame]
akmhoquefa8ee9b2014-03-14 09:06:24 -05001#! /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
5import os,sys
6from waflib import Task,Utils
7import waflib.Task
8from waflib.Tools.ccroot import link_task,stlink_task
9from waflib.TaskGen import extension,feature
10class 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')
14def asm_hook(self,node):
15 return self.create_compiled_task('asm',node)
16class asmprogram(link_task):
17 run_str='${ASLINK} ${ASLINKFLAGS} ${ASLNK_TGT_F}${TGT} ${ASLNK_SRC_F}${SRC}'
18 ext_out=['.bin']
19 inst_to='${BINDIR}'
20class asmshlib(asmprogram):
21 inst_to='${LIBDIR}'
22class asmstlib(stlink_task):
23 pass
24def configure(conf):
25 conf.env['ASMPATH_ST']='-I%s'