Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
623 B

# encoding: utf-8
# masm.py -- Microsoft Macro Assembler file support
from waflib import Errors, Logs, Task
from waflib.TaskGen import extension
class masm(Task.Task):
"""
Compiles assembler files with masm
"""
color = 'BLUE'
run_str = '${AS} ${ASFLAGS} ${ASMPATH_ST:INCPATHS} ${ASMDEFINES_ST:DEFINES} ${AS_TGT_F}${TGT} ${AS_SRC_F}${SRC}'
@extension('.masm')
def create_masm_task(self, node):
return self.create_compiled_task('masm', node)
def configure(conf):
conf.env.AS = conf.env.CC[0].replace('CL.exe', 'ml64.exe')
conf.env.ASFLAGS = ['/nologo', '/c']
conf.env.AS_SRC_F = ['']
conf.env.AS_TGT_F = ['/Fo']