sm-ext-cleaner/AMBuilder
2018-08-08 19:50:19 +02:00

24 lines
531 B
Python

# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os
if not "SM" in globals():
SM = Extension
projectName = 'cleaner'
project = SM.HL2Project(builder, projectName + '.ext')
project.sources += [
'extension.cpp',
'../../public/smsdk_ext.cpp',
'../../public/CDetour/detours.cpp',
'../../public/asm/asm.c',
]
project.compiler.defines += ['HAVE_STRING_H'];
for sdk_name in SM.sdks:
sdk = SM.sdks[sdk_name]
binary = SM.HL2Config(project, projectName + '.ext.' + sdk.ext, sdk)
SM.extensions += builder.Add(project)