2009-08-30 09:46:56 +02:00
|
|
|
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
|
|
|
import os
|
|
|
|
|
|
|
|
for i in SM.sdkInfo:
|
|
|
|
sdk = SM.sdkInfo[i]
|
2010-05-13 11:18:58 +02:00
|
|
|
if AMBuild.target['platform'] not in sdk['platform']:
|
|
|
|
continue
|
|
|
|
|
2009-08-30 09:46:56 +02:00
|
|
|
name = 'sourcemod.' + sdk['ext']
|
|
|
|
|
|
|
|
compiler = SM.DefaultHL2Compiler('core', i)
|
|
|
|
|
|
|
|
extension = AMBuild.AddJob(name)
|
|
|
|
binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
|
|
|
|
SM.PreSetupHL2Job(extension, binary, i)
|
|
|
|
files = [
|
|
|
|
'AdminCache.cpp',
|
|
|
|
'ExtensionSys.cpp',
|
|
|
|
'MenuStyle_Valve.cpp',
|
|
|
|
'logic_bridge.cpp',
|
|
|
|
'smn_entities.cpp',
|
|
|
|
'sm_stringutil.cpp',
|
|
|
|
'ADTFactory.cpp',
|
|
|
|
'ForwardSys.cpp',
|
|
|
|
'MenuVoting.cpp',
|
|
|
|
'smn_events.cpp',
|
|
|
|
'smn_menus.cpp',
|
|
|
|
'sm_trie.cpp',
|
|
|
|
'CDataPack.cpp',
|
|
|
|
'frame_hooks.cpp',
|
|
|
|
'NativeInvoker.cpp',
|
|
|
|
'smn_fakenatives.cpp',
|
|
|
|
'smn_nextmap.cpp',
|
|
|
|
'sourcemm_api.cpp',
|
|
|
|
'ChatTriggers.cpp',
|
|
|
|
'NativeOwner.cpp',
|
|
|
|
'smn_filesystem.cpp',
|
|
|
|
'smn_player.cpp',
|
|
|
|
'sourcemod.cpp',
|
|
|
|
'concmd_cleaner.cpp',
|
|
|
|
'HalfLife2.cpp',
|
|
|
|
'NextMap.cpp',
|
|
|
|
'ConCmdManager.cpp',
|
|
|
|
'HandleSys.cpp',
|
|
|
|
'ConVarManager.cpp',
|
|
|
|
'LibrarySys.cpp',
|
|
|
|
'PlayerManager.cpp',
|
|
|
|
'TimerSys.cpp',
|
|
|
|
'CoreConfig.cpp',
|
|
|
|
'Logger.cpp',
|
|
|
|
'PluginInfoDatabase.cpp',
|
|
|
|
'smn_bitbuffer.cpp',
|
|
|
|
'smn_halflife.cpp',
|
|
|
|
'PluginSys.cpp',
|
|
|
|
'smn_console.cpp',
|
|
|
|
'UserMessages.cpp',
|
|
|
|
'Database.cpp',
|
|
|
|
'MenuManager.cpp',
|
|
|
|
'smn_core.cpp',
|
|
|
|
'smn_hudtext.cpp',
|
|
|
|
'smn_usermsgs.cpp',
|
|
|
|
'DebugReporter.cpp',
|
|
|
|
'MenuStyle_Base.cpp',
|
|
|
|
'ShareSys.cpp',
|
|
|
|
'smn_database.cpp',
|
|
|
|
'smn_keyvalues.cpp',
|
|
|
|
'smn_vector.cpp',
|
|
|
|
'EventManager.cpp',
|
|
|
|
'MenuStyle_Radio.cpp',
|
|
|
|
'sm_autonatives.cpp',
|
|
|
|
'sm_srvcmds.cpp',
|
2009-09-26 23:12:23 +02:00
|
|
|
'ConsoleDetours.cpp'
|
2009-08-30 09:46:56 +02:00
|
|
|
]
|
|
|
|
binary.AddSourceFiles('core', files)
|
|
|
|
SM.PostSetupHL2Job(extension, binary, i)
|
|
|
|
SM.AutoVersion('core', binary)
|
|
|
|
binary.SendToJob()
|
2012-04-14 02:12:24 +02:00
|
|
|
|