plugins/AMBuilder
changeset 2784 8903397125e6
child 3630 b72450a8be42
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/plugins/AMBuilder	Sun Aug 30 00:46:56 2009 -0700
     1.3 @@ -0,0 +1,50 @@
     1.4 +# vim: set ts=2 sw=2 tw=99 noet ft=python: 
     1.5 +import os
     1.6 +import os.path
     1.7 +import ambuild.osutil as osutil
     1.8 +import ambuild.command as command
     1.9 +
    1.10 +files = [
    1.11 +	'adminhelp.sp',
    1.12 +	'antiflood.sp',
    1.13 +	'basecomm.sp',
    1.14 +	'clientprefs.sp',
    1.15 +	'nextmap.sp',
    1.16 +	'reservedslots.sp',
    1.17 +	'adminmenu.sp',
    1.18 +	'basebans.sp',
    1.19 +	'basetriggers.sp',
    1.20 +	'funcommands.sp',
    1.21 +	'nominations.sp',
    1.22 +	'rockthevote.sp',
    1.23 +	'admin-sql-prefetch.sp',
    1.24 +	'basechat.sp',
    1.25 +	'basevotes.sp',
    1.26 +	'funvotes.sp',
    1.27 +	'playercommands.sp',
    1.28 +	'sounds.sp',
    1.29 +	'admin-sql-threaded.sp',
    1.30 +	'basecommands.sp',
    1.31 +	'mapchooser.sp',
    1.32 +	'randomcycle.sp',
    1.33 +	'sql-admin-manager.sp'
    1.34 +	]
    1.35 +
    1.36 +plugins = AMBuild.AddJob('plugins')
    1.37 +
    1.38 +spcomp = os.path.join(AMBuild.outputFolder, 'spcomp', 'spcomp')
    1.39 +includes = os.path.relpath(os.path.join(AMBuild.sourceFolder, 'plugins', 'include'),
    1.40 +                           os.path.join(AMBuild.outputFolder, 'plugins'))
    1.41 +
    1.42 +#This one has to be special
    1.43 +sp = os.path.join(AMBuild.sourceFolder, 'plugins', 'admin-flatfile', 'admin-flatfile.sp')
    1.44 +args = [spcomp, '-i' + includes, sp]
    1.45 +plugins.AddCommand(command.DirectCommand(args))
    1.46 +
    1.47 +#Do the normal ones
    1.48 +for file in files:
    1.49 +	sp = os.path.join(AMBuild.sourceFolder, 'plugins', file)
    1.50 +	args = [spcomp, '-i' + includes, sp]
    1.51 +	plugins.AddCommand(command.DirectCommand(args))
    1.52 +
    1.53 +