2009-08-30 09:46:56 +02:00
|
|
|
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
|
|
|
import os
|
|
|
|
|
2012-05-27 23:17:30 +02:00
|
|
|
for i in SM.sdkInfo:
|
2012-05-27 23:40:12 +02:00
|
|
|
if i != 'ep2v' and i != 'csgo':
|
2012-05-27 23:17:30 +02:00
|
|
|
continue
|
|
|
|
|
2012-05-27 00:31:23 +02:00
|
|
|
sdk = SM.sdkInfo[i]
|
2012-05-27 23:17:30 +02:00
|
|
|
|
2012-05-27 23:11:29 +02:00
|
|
|
if AMBuild.target['platform'] not in sdk['platform']:
|
|
|
|
continue
|
|
|
|
|
|
|
|
compiler = SM.DefaultHL2Compiler('extensions/cstrike', i)
|
2010-06-23 14:19:19 +02:00
|
|
|
|
2012-05-27 23:11:29 +02:00
|
|
|
name = 'game.cstrike.ext.' + sdk['ext']
|
|
|
|
extension = AMBuild.AddJob(name)
|
|
|
|
binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
|
|
|
|
SM.PreSetupHL2Job(extension, binary, i)
|
|
|
|
binary.AddSourceFiles('extensions/cstrike', [
|
|
|
|
'extension.cpp',
|
|
|
|
'natives.cpp',
|
|
|
|
'RegNatives.cpp',
|
|
|
|
'timeleft.cpp',
|
|
|
|
'forwards.cpp',
|
|
|
|
'util_cstrike.cpp',
|
|
|
|
'sdk/smsdk_ext.cpp',
|
|
|
|
'CDetour/detours.cpp',
|
|
|
|
'asm/asm.c'
|
|
|
|
])
|
|
|
|
SM.PostSetupHL2Job(extension, binary, i)
|
|
|
|
SM.AutoVersion('extensions/cstrike', binary)
|
|
|
|
binary.SendToJob()
|