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
[email protected]
     1
# vim: set ts=2 sw=2 tw=99 noet ft=python: 
[email protected]
     2
import os
[email protected]
     3
[email protected]
     4
for i in CSSDM.sdkInfo:
[email protected]
     5
	if i != 'css' and i != 'csgo':
[email protected]
     6
		continue
[email protected]
     7
	
[email protected]
     8
	sdk = CSSDM.sdkInfo[i]
[email protected]
     9
	
[email protected]
    10
	if AMBuild.target['platform'] not in sdk['platform']:
[email protected]
    11
		continue
[email protected]
    12
[email protected]
    13
	compiler = CSSDM.DefaultHL2Compiler('.', i)
[email protected]
    14
	compiler['CXXINCLUDES'].append(os.path.join(AMBuild.sourceFolder, 'sdk'))
[email protected]
    15
[email protected]
    16
	name = 'cssdm.ext.' + sdk['ext']
[email protected]
    17
	extension = AMBuild.AddJob(name)
[email protected]
    18
	binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
[email protected]
    19
	CSSDM.PreSetupHL2Job(extension, binary, i)
[email protected]
    20
	binary.AddSourceFiles('.', [
[email protected]
    21
		'cssdm_callbacks.cpp',
[email protected]
    22
		'cssdm_config.cpp',
[email protected]
    23
		'cssdm_ctrl.cpp',
[email protected]
    24
		'cssdm_detours.cpp',
[email protected]
    25
		'cssdm_events.cpp',
[email protected]
    26
		'cssdm_ffa.cpp',
[email protected]
    27
		'cssdm_main.cpp',
[email protected]
    28
		'cssdm_players.cpp',
[email protected]
    29
		'cssdm_utils.cpp',
[email protected]
    30
		'cssdm_weapons.cpp',
[email protected]
    31
		'sdk/smsdk_ext.cpp',
[email protected]
    32
		'CDetour/detours.cpp',
[email protected]
    33
		'asm/asm.c'
[email protected]
    34
		])
[email protected]
    35
	CSSDM.PostSetupHL2Job(extension, binary, i)
[email protected]
    36
	CSSDM.AutoVersion('.', binary)
[email protected]
    37
	binary.SendToJob()
[email protected]59
    38