1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/AMBuild.library Tue Jul 24 23:54:14 2012 -0700
1.3 @@ -0,0 +1,49 @@
1.4 +# vim: set ts=2 sw=2 tw=99 noet ft=python:
1.5 +import os
1.6 +
1.7 +compiler = KE.DefaultCompiler()
1.8 +base = AMBuild.sourceFolder
1.9 +
1.10 +compiler['CXXINCLUDES'].append(os.path.join(base, 'include'))
1.11 +
1.12 +job = AMBuild.AddJob('libkeima')
1.13 +library = Cpp.StaticLibraryBuilder('libkeima', AMBuild, job, compiler)
1.14 +files = [
1.15 + 'API.cpp',
1.16 + 'Array.cpp',
1.17 + 'BytecodeCompiler.cpp',
1.18 + 'BytecodeEmitter.cpp',
1.19 + 'CompileContext.cpp',
1.20 + 'Environments.cpp',
1.21 + 'Exception.cpp',
1.22 + 'FixedArray.cpp',
1.23 + 'Functions.cpp',
1.24 + 'GlobalRoots.cpp',
1.25 + 'Heap.cpp',
1.26 + 'Interpreter.cpp',
1.27 + 'Modules.cpp',
1.28 + 'NameBinding.cpp',
1.29 + 'Opcodes.cpp',
1.30 + 'Parser.cpp',
1.31 + 'PoolAllocator.cpp',
1.32 + 'Reference.cpp',
1.33 + 'RootScopes.cpp',
1.34 + 'Scanner.cpp',
1.35 + 'Scopes.cpp',
1.36 + 'SemanticAnalysis.cpp',
1.37 + 'Spaces.cpp',
1.38 + 'Stack.cpp',
1.39 + 'StringPool.cpp',
1.40 + 'Strings.cpp',
1.41 + 'Structures.cpp',
1.42 + 'TypeManager.cpp',
1.43 + 'Types.cpp',
1.44 + 'Zone.cpp'
1.45 +]
1.46 +if AMBuild.target['platform'] == 'windows':
1.47 + files.append('Platform-Windows.cpp')
1.48 +else:
1.49 + files.append('Platform-Posix.cpp')
1.50 +library.AddSourceFiles('src', files)
1.51 +library.SendToJob()
1.52 +