2009-08-30 09:46:56 +02:00
|
|
|
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
|
|
|
import os.path
|
|
|
|
|
|
|
|
compiler = SM.DefaultCompiler()
|
|
|
|
compiler['CXXINCLUDES'].append(os.path.join(SM.mmsPath, 'core'))
|
|
|
|
compiler['CXXINCLUDES'].append(os.path.join(SM.mmsPath, 'core', 'sourcehook'))
|
|
|
|
|
2010-05-11 09:10:36 +02:00
|
|
|
if AMBuild.target['platform'] == 'windows' or AMBuild.target['platform'] == 'darwin':
|
2009-08-30 09:46:56 +02:00
|
|
|
name = 'sourcemod_mm'
|
|
|
|
elif AMBuild.target['platform'] == 'linux':
|
|
|
|
name = 'sourcemod_mm_i486'
|
|
|
|
compiler['POSTLINKFLAGS'].extend(['-ldl'])
|
|
|
|
|
|
|
|
loader = AMBuild.AddJob('loader')
|
|
|
|
binary = Cpp.LibraryBuilder(name, AMBuild, loader, compiler)
|
|
|
|
binary.AddSourceFiles('loader', [
|
|
|
|
'loader.cpp'
|
|
|
|
])
|
|
|
|
SM.AutoVersion('loader', binary)
|
|
|
|
binary.SendToJob()
|
|
|
|
|