1.1 --- a/extensions/cstrike/AMBuilder Tue May 11 23:48:39 2010 -0500
1.2 +++ b/extensions/cstrike/AMBuilder Wed May 12 04:13:56 2010 -0500
1.3 @@ -1,22 +1,21 @@
1.4 # vim: set ts=2 sw=2 tw=99 noet ft=python:
1.5 import os
1.6
1.7 -if 'ep1' in SM.sdkInfo:
1.8 - sdk = SM.sdkInfo['ep1']
1.9 - compiler = SM.DefaultHL2Compiler('extensions/cstrike', 'ep1')
1.10 +sdk = SM.sdkInfo['ep1']
1.11 +compiler = SM.DefaultHL2Compiler('extensions/cstrike', 'ep1')
1.12
1.13 - name = 'game.cstrike.ext.' + sdk['ext']
1.14 - extension = AMBuild.AddJob(name)
1.15 - binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
1.16 - SM.PreSetupHL2Job(extension, binary, 'ep1')
1.17 - binary.AddSourceFiles('extensions/cstrike', [
1.18 - 'extension.cpp',
1.19 - 'natives.cpp',
1.20 - 'RegNatives.cpp',
1.21 - 'timeleft.cpp',
1.22 - 'sdk/smsdk_ext.cpp'
1.23 - ])
1.24 - SM.PostSetupHL2Job(extension, binary, 'ep1')
1.25 - SM.AutoVersion('extensions/cstrike', binary)
1.26 - binary.SendToJob()
1.27 +name = 'game.cstrike.ext.' + sdk['ext']
1.28 +extension = AMBuild.AddJob(name)
1.29 +binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
1.30 +SM.PreSetupHL2Job(extension, binary, 'ep1')
1.31 +binary.AddSourceFiles('extensions/cstrike', [
1.32 + 'extension.cpp',
1.33 + 'natives.cpp',
1.34 + 'RegNatives.cpp',
1.35 + 'timeleft.cpp',
1.36 + 'sdk/smsdk_ext.cpp'
1.37 + ])
1.38 +SM.PostSetupHL2Job(extension, binary, 'ep1')
1.39 +SM.AutoVersion('extensions/cstrike', binary)
1.40 +binary.SendToJob()
1.41