src/AMBuild.shell
author David Anderson <dvander@alliedmods.net>
Wed Jul 25 00:16:52 2012 -0700 (2012-07-25)
changeset 90 3da12b433b00
parent 88 fc3f34f928dd
child 91 5f4402180204
permissions -rw-r--r--
Added a product.version file.
     1 # vim: set ts=2 sw=2 tw=99 noet ft=python: 
     2 import os
     3 import ambuild.osutil as osutil
     4 
     5 compiler = KE.DefaultCompiler()
     6 compiler.AddToListVar('CXXINCLUDES', os.path.join(AMBuild.sourceFolder, 'include'))
     7 
     8 library = osutil.StaticLibPrefix() + 'keima' + osutil.StaticLibSuffix()
     9 compiler.AddToListVar('POSTLINKFLAGS', '/SUBSYSTEM:CONSOLE')
    10 compiler.AddToListVar('POSTLINKFLAGS', os.path.join(AMBuild.outputFolder, 'keima', library))
    11 
    12 job = AMBuild.AddJob('spshell')
    13 binary = Cpp.ExecutableBuilder('spshell', AMBuild, job, compiler)
    14 files = [
    15 	'main.cpp'
    16 	]
    17 binary.AddSourceFiles('src', files)
    18 binary.SendToJob()
    19