1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00
HLMetaModOfficial/core/AMBuilder
Scott Ehlert 73e2daec56 Converted build system to AMBuild (bug 4403, r=dvander).
--HG--
rename : support/pushbuild.txt => pushbuild.txt
2010-05-14 00:34:36 -05:00

34 lines
837 B
Python

# vim: set ts=2 sw=2 tw=99 noet ft=python:
import os
for i in MMS.sdkInfo:
sdk = MMS.sdkInfo[i]
if AMBuild.target['platform'] not in sdk['platform'] or i == 'ep1':
continue
name = 'metamod.' + sdk['ext']
compiler = MMS.DefaultHL2Compiler('core', i)
extension = AMBuild.AddJob(name)
binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
MMS.PreSetupHL2Job(extension, binary, i)
files = [
'metamod.cpp',
'metamod_console.cpp',
'metamod_oslink.cpp',
'metamod_plugins.cpp',
'metamod_util.cpp',
'provider/console.cpp',
'provider/provider_ep2.cpp',
'sourcehook/sourcehook.cpp',
'sourcehook/sourcehook_hookmangen.cpp',
'gamedll_bridge.cpp',
'vsp_bridge.cpp'
]
binary.AddSourceFiles('core', files)
MMS.PostSetupHL2Job(extension, binary, i)
MMS.AutoVersion('core', binary)
binary.SendToJob()