Cstrike extension mac build fix.
authorNicholas Hastings <skamonkey@gmail.com>
Sun May 27 17:11:29 2012 -0400 (2012-05-27)
changeset 352030875bd029de
parent 3519 a116c415c73e
child 3521 b812529a5b4e
Cstrike extension mac build fix.
extensions/cstrike/AMBuilder
     1.1 --- a/extensions/cstrike/AMBuilder	Sat May 26 18:31:23 2012 -0400
     1.2 +++ b/extensions/cstrike/AMBuilder	Sun May 27 17:11:29 2012 -0400
     1.3 @@ -5,24 +5,26 @@
     1.4  
     1.5  for i in sdks:
     1.6  	sdk = SM.sdkInfo[i]
     1.7 -	if AMBuild.target['platform'] in sdk['platform']:
     1.8 -		compiler = SM.DefaultHL2Compiler('extensions/cstrike', i)
     1.9 +	if AMBuild.target['platform'] not in sdk['platform']:
    1.10 +		continue
    1.11 +	
    1.12 +	compiler = SM.DefaultHL2Compiler('extensions/cstrike', i)
    1.13  
    1.14 -		name = 'game.cstrike.ext.' + sdk['ext']
    1.15 -		extension = AMBuild.AddJob(name)
    1.16 -		binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
    1.17 -		SM.PreSetupHL2Job(extension, binary, i)
    1.18 -		binary.AddSourceFiles('extensions/cstrike', [
    1.19 -			'extension.cpp',
    1.20 -			'natives.cpp',
    1.21 -			'RegNatives.cpp',
    1.22 -			'timeleft.cpp',
    1.23 -			'forwards.cpp',
    1.24 -			'util_cstrike.cpp',
    1.25 -			'sdk/smsdk_ext.cpp',
    1.26 -			'CDetour/detours.cpp',
    1.27 -			'asm/asm.c'
    1.28 -			])
    1.29 -		SM.PostSetupHL2Job(extension, binary, i)
    1.30 -		SM.AutoVersion('extensions/cstrike', binary)
    1.31 -		binary.SendToJob()
    1.32 \ No newline at end of file
    1.33 +	name = 'game.cstrike.ext.' + sdk['ext']
    1.34 +	extension = AMBuild.AddJob(name)
    1.35 +	binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
    1.36 +	SM.PreSetupHL2Job(extension, binary, i)
    1.37 +	binary.AddSourceFiles('extensions/cstrike', [
    1.38 +		'extension.cpp',
    1.39 +		'natives.cpp',
    1.40 +		'RegNatives.cpp',
    1.41 +		'timeleft.cpp',
    1.42 +		'forwards.cpp',
    1.43 +		'util_cstrike.cpp',
    1.44 +		'sdk/smsdk_ext.cpp',
    1.45 +		'CDetour/detours.cpp',
    1.46 +		'asm/asm.c'
    1.47 +		])
    1.48 +	SM.PostSetupHL2Job(extension, binary, i)
    1.49 +	SM.AutoVersion('extensions/cstrike', binary)
    1.50 +	binary.SendToJob()
    1.51 \ No newline at end of file