| author | David Anderson <danderson@mozilla.com> |
| Wed Jul 25 00:48:08 2012 -0700 (2012-07-25) | |
| changeset 91 | 5f4402180204 |
| parent 88 | fc3f34f928dd |
| child 103 | 819a8e016990 |
| permissions | -rw-r--r-- |
1 # vim: set ts=2 sw=2 tw=99 noet ft=python:
2 import os
4 compiler = KE.DefaultCompiler()
5 base = AMBuild.sourceFolder
7 compiler['CXXINCLUDES'].append(os.path.join(base, 'include'))
9 job = AMBuild.AddJob('keima')
10 library = Cpp.StaticLibraryBuilder('keima', AMBuild, job, compiler)
11 files = [
12 'API.cpp',
13 'Array.cpp',
14 'BytecodeCompiler.cpp',
15 'BytecodeEmitter.cpp',
16 'CompileContext.cpp',
17 'Environments.cpp',
18 'Exception.cpp',
19 'FixedArray.cpp',
20 'Functions.cpp',
21 'GlobalRoots.cpp',
22 'Heap.cpp',
23 'Interpreter.cpp',
24 'Modules.cpp',
25 'NameBinding.cpp',
26 'Opcodes.cpp',
27 'Parser.cpp',
28 'PoolAllocator.cpp',
29 'Reference.cpp',
30 'RootScopes.cpp',
31 'Scanner.cpp',
32 'Scopes.cpp',
33 'SemanticAnalysis.cpp',
34 'Spaces.cpp',
35 'Stack.cpp',
36 'StringPool.cpp',
37 'Strings.cpp',
38 'Structures.cpp',
39 'TypeManager.cpp',
40 'Types.cpp',
41 'Zone.cpp'
42 ]
43 if AMBuild.target['platform'] == 'windows':
44 files.append('Platform-Windows.cpp')
45 else:
46 files.append('Platform-Posix.cpp')
47 library.AddSourceFiles('src', files)
48 library.SendToJob()