ExtensionBuilder
author Ruben Gonzalez <drifter01620@gmail.com>
Wed Oct 01 11:50:24 2014 -0400 (2014-10-01)
changeset 193 277c856152b0
parent 184 7ddf645a50d5
permissions -rw-r--r--
Update linix CS:GO gamedata
     1 # vim: set ts=2 sw=2 tw=99 noet ft=python: 
     2 import os
     3 
     4 for i in CSSDM.sdkInfo:
     5 	if i != 'css' and i != 'csgo':
     6 		continue
     7 	
     8 	sdk = CSSDM.sdkInfo[i]
     9 	
    10 	if AMBuild.target['platform'] not in sdk['platform']:
    11 		continue
    12 
    13 	compiler = CSSDM.DefaultHL2Compiler('.', i)
    14 	compiler['CXXINCLUDES'].append(os.path.join(AMBuild.sourceFolder, 'sdk'))
    15 
    16 	name = 'cssdm.ext.' + sdk['ext']
    17 	extension = AMBuild.AddJob(name)
    18 	binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
    19 	CSSDM.PreSetupHL2Job(extension, binary, i)
    20 	binary.AddSourceFiles('.', [
    21 		'cssdm_callbacks.cpp',
    22 		'cssdm_config.cpp',
    23 		'cssdm_ctrl.cpp',
    24 		'cssdm_detours.cpp',
    25 		'cssdm_events.cpp',
    26 		'cssdm_ffa.cpp',
    27 		'cssdm_main.cpp',
    28 		'cssdm_players.cpp',
    29 		'cssdm_utils.cpp',
    30 		'cssdm_weapons.cpp',
    31 		'sdk/smsdk_ext.cpp',
    32 		'CDetour/detours.cpp',
    33 		'asm/asm.c'
    34 		])
    35 	CSSDM.PostSetupHL2Job(extension, binary, i)
    36 	CSSDM.AutoVersion('.', binary)
    37 	binary.SendToJob()
    38