PluginBuilder
author Ruben Gonzalez <drifter01620@gmail.com>
Wed Oct 01 11:50:24 2014 -0400 (2014-10-01)
changeset 193 277c856152b0
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 import os.path
     4 import ambuild.osutil as osutil
     5 import ambuild.command as command
     6 
     7 files = [
     8 		'dm_basics.sp',
     9 		'dm_bot_quotas.sp',
    10 		'dm_equipment.sp',
    11 		'dm_preset_spawns.sp',
    12 		'dm_spawn_protection.sp'
    13 ]
    14 
    15 plugins = AMBuild.AddJob('plugins')
    16 
    17 spcomp = os.path.join(CSSDM.smBinPath, 'addons', 'sourcemod', 'scripting', 'spcomp')
    18 includes = os.path.relpath(os.path.join(AMBuild.sourceFolder, 'scripting', 'include'),
    19                            os.path.join(AMBuild.outputFolder, 'scripting'))
    20 
    21 #Do the normal ones
    22 for file in files:
    23 	sp = os.path.join(AMBuild.sourceFolder, 'scripting', file)
    24 	args = [spcomp, '-i' + includes, sp]
    25 	plugins.AddCommand(command.DirectCommand(args))
    26 
    27