sm-ext-Voice/AMBuilder

35 lines
891 B
Plaintext
Raw Permalink Normal View History

2017-08-02 22:50:33 +02:00
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os
if not "SM" in globals():
SM = Extension
projectName = 'Voice'
project = SM.HL2Project(builder, projectName + '.ext')
project.sources += [
'extension.cpp',
'ringbuffer.cpp',
2019-09-01 16:17:32 +02:00
'../../public/smsdk_ext.cpp',
'../../public/CDetour/detours.cpp',
'../../public/asm/asm.c',
2019-09-25 21:11:10 +02:00
'../../public/libudis86/decode.c',
'../../public/libudis86/itab.c',
'../../public/libudis86/syn-att.c',
'../../public/libudis86/syn-intel.c',
'../../public/libudis86/syn.c',
'../../public/libudis86/udis86.c',
2017-08-02 22:50:33 +02:00
]
for sdk_name in SM.sdks:
sdk = SM.sdks[sdk_name]
binary = SM.HL2Config(project, projectName + '.ext', sdk)
binary.compiler.cxxincludes += [
2017-08-03 06:52:19 +02:00
os.path.join(builder.sourcePath, 'celt')
2017-08-02 22:50:33 +02:00
]
binary.compiler.linkflags += [
2017-08-03 06:52:19 +02:00
os.path.join(builder.sourcePath, 'celt', 'libcelt0.a')
2017-08-02 22:50:33 +02:00
]
SM.extensions += builder.Add(project)