2010-05-14 07:34:36 +02:00
|
|
|
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
|
|
|
import os
|
|
|
|
|
2012-03-21 12:55:46 +01:00
|
|
|
try:
|
|
|
|
sdk = MMS.sdkInfo['ep1']
|
|
|
|
|
|
|
|
if AMBuild.target['platform'] in sdk['platform']:
|
|
|
|
compiler = MMS.DefaultHL2Compiler('core-legacy', 'ep1')
|
2010-05-14 07:34:36 +02:00
|
|
|
|
2012-03-21 12:55:46 +01:00
|
|
|
name = 'metamod.' + sdk['ext']
|
2010-05-14 07:34:36 +02:00
|
|
|
|
2012-03-21 12:55:46 +01:00
|
|
|
extension = AMBuild.AddJob(name)
|
|
|
|
binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
|
|
|
|
MMS.PreSetupHL2Job(extension, binary, 'ep1')
|
|
|
|
files = [
|
|
|
|
'sourcemm.cpp',
|
|
|
|
'concommands.cpp',
|
|
|
|
'oslink.cpp',
|
|
|
|
'util.cpp',
|
|
|
|
'CSmmAPI.cpp',
|
|
|
|
'CPlugin.cpp',
|
|
|
|
'gamedll_bridge.cpp',
|
|
|
|
'vsp_bridge.cpp',
|
|
|
|
'sourcehook/sourcehook.cpp'
|
|
|
|
]
|
|
|
|
binary.AddSourceFiles('core-legacy', files)
|
|
|
|
MMS.PostSetupHL2Job(extension, binary, 'ep1')
|
|
|
|
MMS.AutoVersion('core-legacy', binary)
|
|
|
|
binary.SendToJob()
|
|
|
|
except KeyError:
|
|
|
|
pass
|