2013-12-30 23:50:56 +01:00
|
|
|
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
2009-08-30 09:46:56 +02:00
|
|
|
import os
|
|
|
|
|
2014-06-01 04:56:42 +02:00
|
|
|
project = SM.HL2Project(builder, 'game.cstrike.ext')
|
|
|
|
project.sources += [
|
|
|
|
'extension.cpp',
|
|
|
|
'natives.cpp',
|
|
|
|
'RegNatives.cpp',
|
|
|
|
'timeleft.cpp',
|
|
|
|
'forwards.cpp',
|
|
|
|
'util_cstrike.cpp',
|
|
|
|
'../../public/smsdk_ext.cpp',
|
|
|
|
'../../public/CDetour/detours.cpp',
|
2017-12-20 08:56:23 +01:00
|
|
|
'../../public/asm/asm.c',
|
|
|
|
'../../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',
|
2014-06-01 04:56:42 +02:00
|
|
|
]
|
2017-12-20 08:56:23 +01:00
|
|
|
project.compiler.defines += ['HAVE_STRING_H'];
|
2014-06-01 04:56:42 +02:00
|
|
|
|
2013-12-30 23:50:56 +01:00
|
|
|
for sdk_name in ['css', 'csgo']:
|
|
|
|
if sdk_name not in SM.sdks:
|
|
|
|
continue
|
|
|
|
sdk = SM.sdks[sdk_name]
|
2017-12-20 08:56:23 +01:00
|
|
|
for arch in SM.archs:
|
|
|
|
if not arch in sdk.platformSpec[builder.target.platform]:
|
|
|
|
continue
|
|
|
|
|
|
|
|
SM.HL2Config(project, 'game.cstrike.ext.' + sdk.ext, sdk, arch)
|
2014-06-01 04:56:42 +02:00
|
|
|
|
|
|
|
SM.extensions += builder.Add(project)
|