Fix bootstrapping bug.
1 # vim: set ts=2 sw=2 tw=99 noet ft=python:
4 import ambuild.osutil as osutil
6 compiler = KE.DefaultCompiler()
7 compiler.AddToListVar('CXXINCLUDES', os.path.join(AMBuild.sourceFolder, 'include'))
9 library = osutil.StaticLibPrefix() + 'keima' + osutil.StaticLibSuffix()
10 library = os.path.join(AMBuild.outputFolder, 'keima', library)
11 compiler.AddToListVar('POSTLINKFLAGS', library)
13 if compiler.cc.name == 'msvc':
14 compiler.AddToListVar('POSTLINKFLAGS', '/SUBSYSTEM:CONSOLE')
16 job = AMBuild.AddJob('spshell')
17 binary = Cpp.ExecutableBuilder('spshell', AMBuild, job, compiler)
22 if os.path.exists(library):
23 binary.RelinkIfNewer(library)
24 binary.AddSourceFiles('src', files)