1.1 --- a/extensions/cstrike/AMBuilder Sun May 27 16:51:29 2012 -0400
1.2 +++ b/extensions/cstrike/AMBuilder Sat May 26 18:31:23 2012 -0400
1.3 @@ -1,25 +1,28 @@
1.4 # vim: set ts=2 sw=2 tw=99 noet ft=python:
1.5 import os
1.6
1.7 -sdk = SM.sdkInfo['ep2v']
1.8 +sdks = ['ep2v', 'csgo']
1.9
1.10 -if AMBuild.target['platform'] in sdk['platform']:
1.11 - compiler = SM.DefaultHL2Compiler('extensions/cstrike', 'ep2v')
1.12 +for i in sdks:
1.13 + sdk = SM.sdkInfo[i]
1.14 + if AMBuild.target['platform'] in sdk['platform']:
1.15 + compiler = SM.DefaultHL2Compiler('extensions/cstrike', i)
1.16
1.17 - name = 'game.cstrike.ext.' + sdk['ext']
1.18 - extension = AMBuild.AddJob(name)
1.19 - binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
1.20 - SM.PreSetupHL2Job(extension, binary, 'ep2v')
1.21 - binary.AddSourceFiles('extensions/cstrike', [
1.22 - 'extension.cpp',
1.23 - 'natives.cpp',
1.24 - 'RegNatives.cpp',
1.25 - 'timeleft.cpp',
1.26 - 'forwards.cpp',
1.27 - 'sdk/smsdk_ext.cpp',
1.28 - 'CDetour/detours.cpp',
1.29 - 'asm/asm.c'
1.30 - ])
1.31 - SM.PostSetupHL2Job(extension, binary, 'ep2v')
1.32 - SM.AutoVersion('extensions/cstrike', binary)
1.33 - binary.SendToJob()
1.34 \ No newline at end of file
1.35 + name = 'game.cstrike.ext.' + sdk['ext']
1.36 + extension = AMBuild.AddJob(name)
1.37 + binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
1.38 + SM.PreSetupHL2Job(extension, binary, i)
1.39 + binary.AddSourceFiles('extensions/cstrike', [
1.40 + 'extension.cpp',
1.41 + 'natives.cpp',
1.42 + 'RegNatives.cpp',
1.43 + 'timeleft.cpp',
1.44 + 'forwards.cpp',
1.45 + 'util_cstrike.cpp',
1.46 + 'sdk/smsdk_ext.cpp',
1.47 + 'CDetour/detours.cpp',
1.48 + 'asm/asm.c'
1.49 + ])
1.50 + SM.PostSetupHL2Job(extension, binary, i)
1.51 + SM.AutoVersion('extensions/cstrike', binary)
1.52 + binary.SendToJob()
1.53 \ No newline at end of file