File: c_asm.py

package info (click to toggle)
ladish 1%2Bdfsg0-5.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 3,996 kB
  • ctags: 4,600
  • sloc: ansic: 36,414; python: 11,237; cpp: 705; makefile: 22; ruby: 20; sh: 17
file content (14 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/env python
# encoding: utf-8
# WARNING! All changes made to this file will be lost!

import os,sys
import waflib.Task
from waflib.TaskGen import extension,feature
class asm(waflib.Task.Task):
	color='BLUE'
	run_str='${AS} ${ASFLAGS} ${CPPPATH_ST:INCPATHS} ${AS_SRC_F}${SRC} ${AS_TGT_F}${TGT}'
def asm_hook(self,node):
	return self.create_compiled_task('asm',node)

extension('.s','.S','.asm','.ASM','.spp','.SPP')(asm_hook)