mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 17:59:37 +00:00
fix windows build scripts, add windows opus support
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# 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']
|
||||
Reference in New Issue
Block a user