File: nasm.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 (13 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/env python
# encoding: utf-8
# WARNING! All changes made to this file will be lost!

import waflib.Tools.ccroot
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)