2009-08-30 09:46:56 +02:00
|
|
|
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
|
|
|
import os
|
|
|
|
|
2010-05-12 11:13:56 +02:00
|
|
|
sdk = SM.sdkInfo['ep1']
|
2009-08-30 09:46:56 +02:00
|
|
|
|
2010-05-13 11:18:58 +02:00
|
|
|
if AMBuild.target['platform'] in sdk['platform']:
|
|
|
|
compiler = SM.DefaultHL2Compiler('extensions/cstrike', 'ep1')
|
|
|
|
|
|
|
|
name = 'game.cstrike.ext.' + sdk['ext']
|
|
|
|
extension = AMBuild.AddJob(name)
|
|
|
|
binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
|
|
|
|
SM.PreSetupHL2Job(extension, binary, 'ep1')
|
|
|
|
binary.AddSourceFiles('extensions/cstrike', [
|
|
|
|
'extension.cpp',
|
|
|
|
'natives.cpp',
|
|
|
|
'RegNatives.cpp',
|
|
|
|
'timeleft.cpp',
|
|
|
|
'sdk/smsdk_ext.cpp'
|
|
|
|
])
|
|
|
|
SM.PostSetupHL2Job(extension, binary, 'ep1')
|
|
|
|
SM.AutoVersion('extensions/cstrike', binary)
|
|
|
|
binary.SendToJob()
|
2009-08-30 09:46:56 +02:00
|
|
|
|
2010-06-23 14:19:19 +02:00
|
|
|
sdk = SM.sdkInfo['ep2v']
|
|
|
|
|
|
|
|
if AMBuild.target['platform'] in sdk['platform']:
|
|
|
|
compiler = SM.DefaultHL2Compiler('extensions/cstrike', 'ep2v')
|
|
|
|
|
|
|
|
name = 'game.cstrike.ext.' + sdk['ext']
|
|
|
|
extension = AMBuild.AddJob(name)
|
|
|
|
binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
|
|
|
|
SM.PreSetupHL2Job(extension, binary, 'ep2v')
|
|
|
|
binary.AddSourceFiles('extensions/cstrike', [
|
|
|
|
'extension.cpp',
|
|
|
|
'natives.cpp',
|
|
|
|
'RegNatives.cpp',
|
|
|
|
'timeleft.cpp',
|
|
|
|
'sdk/smsdk_ext.cpp'
|
|
|
|
])
|
|
|
|
SM.PostSetupHL2Job(extension, binary, 'ep2v')
|
|
|
|
SM.AutoVersion('extensions/cstrike', binary)
|
|
|
|
binary.SendToJob()
|