2016-05-08 22:12:08 +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 = 'connect'
|
|
|
|
|
|
|
|
project = SM.HL2Project(builder, projectName + '.ext')
|
|
|
|
project.sources += [
|
|
|
|
'extension.cpp',
|
|
|
|
'../../public/smsdk_ext.cpp',
|
|
|
|
'../../public/CDetour/detours.cpp',
|
|
|
|
'../../public/asm/asm.c'
|
|
|
|
]
|
|
|
|
|
|
|
|
for sdk_name in SM.sdks:
|
|
|
|
sdk = SM.sdks[sdk_name]
|
|
|
|
|
2017-02-03 15:36:13 +01:00
|
|
|
binary = SM.HL2Config(project, projectName + '.ext', sdk)
|
2016-05-08 22:12:08 +02:00
|
|
|
binary.compiler.cxxincludes += [
|
|
|
|
os.path.join(SM.sm_root, 'public', 'extensions'),
|
|
|
|
os.path.join(SM.sm_root, 'public', 'sourcepawn'),
|
|
|
|
os.path.join(SM.sm_root, 'public', 'amtl'),
|
|
|
|
os.path.join(SM.sm_root, 'public', 'amtl', 'amtl')
|
|
|
|
]
|
|
|
|
|
|
|
|
SM.extensions += builder.Add(project)
|