Merge AMBuild2 upgrade from sourcemod-1.6 to sourcemod-1.5.
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
# vim: set ts=2 sw=2 tw=99 noet ft=python:
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os
|
||||
|
||||
compiler = SM.DefaultExtCompiler('extensions/topmenus')
|
||||
compiler['CXXINCLUDES'].append(os.path.join(SM.mmsPath, 'core', 'sourcehook'))
|
||||
binary = SM.ExtLibrary(builder, 'topmenus.ext')
|
||||
binary.compiler.cxxincludes += [
|
||||
os.path.join(SM.mms_root, 'core', 'sourcehook'),
|
||||
]
|
||||
|
||||
extension = AMBuild.AddJob('topmenus.ext')
|
||||
binary = Cpp.LibraryBuilder('topmenus.ext', AMBuild, extension, compiler)
|
||||
binary.AddSourceFiles('extensions/topmenus', [
|
||||
'extension.cpp',
|
||||
'smn_topmenus.cpp',
|
||||
'TopMenu.cpp',
|
||||
'TopMenuManager.cpp',
|
||||
'sdk/smsdk_ext.cpp',
|
||||
'sdk/sm_memtable.cpp'
|
||||
])
|
||||
SM.AutoVersion('extensions/topmenus', binary)
|
||||
SM.ExtractDebugInfo(extension, binary)
|
||||
binary.SendToJob()
|
||||
binary.sources += [
|
||||
'extension.cpp',
|
||||
'smn_topmenus.cpp',
|
||||
'TopMenu.cpp',
|
||||
'TopMenuManager.cpp',
|
||||
'sdk/smsdk_ext.cpp',
|
||||
'sdk/sm_memtable.cpp'
|
||||
]
|
||||
|
||||
SM.extensions += [builder.Add(binary)]
|
||||
|
||||
@@ -67,11 +67,11 @@ void TopMenuExtension::SDK_OnUnload()
|
||||
|
||||
const char *TopMenuExtension::GetExtensionVerString()
|
||||
{
|
||||
return SM_VERSION_STRING;
|
||||
return SOURCEMOD_VERSION;
|
||||
}
|
||||
|
||||
const char *TopMenuExtension::GetExtensionDateString()
|
||||
{
|
||||
return SM_BUILD_TIMESTAMP;
|
||||
return SOURCEMOD_BUILD_TIME;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user