File: nasm.py

package info (click to toggle)
xmms2 0.8%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 12,388 kB
  • ctags: 16,835
  • sloc: ansic: 63,792; python: 12,801; cpp: 5,718; xml: 1,479; perl: 338; ruby: 243; makefile: 82; sh: 59; asm: 7
file content (13 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/svn/docs/wafbook/single.html#_obtaining_the_waf_file

import waflib.Tools.asm
from waflib.TaskGen import feature
def apply_nasm_vars(self):
	self.env.append_value('ASFLAGS',self.to_list(getattr(self,'nasm_flags',[])))
def configure(conf):
	nasm=conf.find_program(['nasm','yasm'],var='AS')
	conf.env.AS_TGT_F='-o'

feature('asm')(apply_nasm_vars)