extensions/tf2/AMBuilder
author David Anderson <dvander@alliedmods.net>
Thu Aug 08 22:02:42 2013 -0700 (2013-08-08)
changeset 3980 dc7dfcd855dc
parent 3961 0dc477c29792
child 4182 8ef93b2feddf
permissions -rw-r--r--
More Windows build fix.
dvander@2784
     1
# vim: set ts=2 sw=2 tw=99 noet ft=python: 
dvander@2784
     2
import os
skamonkey@3961
     3
if 'tf2' in SM.sdkInfo:
skamonkey@3961
     4
	sdk = SM.sdkInfo['tf2']
skamonkey@3961
     5
	compiler = SM.DefaultHL2Compiler('extensions/tf2', 'tf2')
dvander@2784
     6
kyle@3787
     7
	name = 'game.tf2.ext.' + sdk['ext']
kyle@3787
     8
	extension = AMBuild.AddJob(name)
kyle@3787
     9
	binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
skamonkey@3961
    10
	SM.PreSetupHL2Job(extension, binary, 'tf2')
kyle@3787
    11
	binary.AddSourceFiles('extensions/tf2', [
kyle@3787
    12
		'extension.cpp',
kyle@3787
    13
		'natives.cpp',
kyle@3787
    14
		'RegNatives.cpp',
kyle@3787
    15
		'util.cpp',
kyle@3787
    16
		'criticals.cpp',
kyle@3787
    17
		'holiday.cpp',
kyle@3787
    18
		'teleporter.cpp',
kyle@3787
    19
		'gameplayrules.cpp',
kyle@3787
    20
		'conditions.cpp',
kyle@3787
    21
		'CDetour/detours.cpp',
kyle@3787
    22
		'sdk/smsdk_ext.cpp',
kyle@3787
    23
		'asm/asm.c'
kyle@3787
    24
		])
skamonkey@3961
    25
	SM.PostSetupHL2Job(extension, binary, 'tf2')
kyle@3787
    26
	SM.AutoVersion('extensions/tf2', binary)
asherkin@3835
    27
	SM.ExtractDebugInfo(extension, binary)
kyle@3787
    28
	binary.SendToJob()
asherkin@3477
    29