extensions/tf2/AMBuilder
author Nicholas Hastings <skamonkey@gmail.com>
Mon Jun 14 09:32:50 2010 -0400 (2010-06-14)
changeset 3041 a0587dee87ae
parent 2784 8903397125e6
child 3056 4e1591dceb8d
permissions -rw-r--r--
Fixed outputname null pointer crash in sdktools (bug 4422, r=fyren)
     1 # vim: set ts=2 sw=2 tw=99 noet ft=python: 
     2 import os
     3 
     4 sdk = SM.sdkInfo['ep2v']
     5 compiler = SM.DefaultHL2Compiler('extensions/tf2', 'ep2v')
     6 if compiler.cc.name == 'gcc':
     7 	compiler['CFLAGS'].append('-Wno-parentheses')
     8 
     9 name = 'game.tf2.ext.' + sdk['ext']
    10 extension = AMBuild.AddJob(name)
    11 binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
    12 SM.PreSetupHL2Job(extension, binary, 'ep2v')
    13 binary.AddSourceFiles('extensions/tf2', [
    14 	'extension.cpp',
    15 	'natives.cpp',
    16 	'RegNatives.cpp',
    17 	'util.cpp',
    18 	'criticals.cpp',
    19 	'CDetour/detours.cpp',
    20 	'sdk/smsdk_ext.cpp',
    21 	'asm/asm.c'
    22 	])
    23 SM.PostSetupHL2Job(extension, binary, 'ep2v')
    24 SM.AutoVersion('extensions/tf2', binary)
    25 binary.SendToJob()
    26