extensions/tf2/AMBuilder
changeset 2784 8903397125e6
child 3056 4e1591dceb8d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/extensions/tf2/AMBuilder	Sun Aug 30 00:46:56 2009 -0700
     1.3 @@ -0,0 +1,26 @@
     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 +compiler = SM.DefaultHL2Compiler('extensions/tf2', 'ep2v')
     1.9 +if compiler.cc.name == 'gcc':
    1.10 +	compiler['CFLAGS'].append('-Wno-parentheses')
    1.11 +
    1.12 +name = 'game.tf2.ext.' + sdk['ext']
    1.13 +extension = AMBuild.AddJob(name)
    1.14 +binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
    1.15 +SM.PreSetupHL2Job(extension, binary, 'ep2v')
    1.16 +binary.AddSourceFiles('extensions/tf2', [
    1.17 +	'extension.cpp',
    1.18 +	'natives.cpp',
    1.19 +	'RegNatives.cpp',
    1.20 +	'util.cpp',
    1.21 +	'criticals.cpp',
    1.22 +	'CDetour/detours.cpp',
    1.23 +	'sdk/smsdk_ext.cpp',
    1.24 +	'asm/asm.c'
    1.25 +	])
    1.26 +SM.PostSetupHL2Job(extension, binary, 'ep2v')
    1.27 +SM.AutoVersion('extensions/tf2', binary)
    1.28 +binary.SendToJob()
    1.29 +