src/AMBuild.shell
changeset 88 fc3f34f928dd
child 91 5f4402180204
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/AMBuild.shell	Wed Jul 25 00:13:02 2012 -0700
     1.3 @@ -0,0 +1,19 @@
     1.4 +# vim: set ts=2 sw=2 tw=99 noet ft=python: 
     1.5 +import os
     1.6 +import ambuild.osutil as osutil
     1.7 +
     1.8 +compiler = KE.DefaultCompiler()
     1.9 +compiler.AddToListVar('CXXINCLUDES', os.path.join(AMBuild.sourceFolder, 'include'))
    1.10 +
    1.11 +library = osutil.StaticLibPrefix() + 'keima' + osutil.StaticLibSuffix()
    1.12 +compiler.AddToListVar('POSTLINKFLAGS', '/SUBSYSTEM:CONSOLE')
    1.13 +compiler.AddToListVar('POSTLINKFLAGS', os.path.join(AMBuild.outputFolder, 'keima', library))
    1.14 +
    1.15 +job = AMBuild.AddJob('spshell')
    1.16 +binary = Cpp.ExecutableBuilder('spshell', AMBuild, job, compiler)
    1.17 +files = [
    1.18 +	'main.cpp'
    1.19 +	]
    1.20 +binary.AddSourceFiles('src', files)
    1.21 +binary.SendToJob()
    1.22 +