mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-11-29 11:24:19 +01:00
32 lines
762 B
Python
32 lines
762 B
Python
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
|
import os
|
|
|
|
try:
|
|
sdk = MMS.sdkInfo['ep1']
|
|
|
|
if AMBuild.target['platform'] in sdk['platform']:
|
|
compiler = MMS.DefaultHL2Compiler('core-legacy', 'ep1')
|
|
|
|
name = 'metamod.' + sdk['ext']
|
|
|
|
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
|