|
1 ## |
|
2 ## Copyright 2009, The Android Open Source Project |
|
3 ## |
|
4 ## Redistribution and use in source and binary forms, with or without |
|
5 ## modification, are permitted provided that the following conditions |
|
6 ## are met: |
|
7 ## * Redistributions of source code must retain the above copyright |
|
8 ## notice, this list of conditions and the following disclaimer. |
|
9 ## * Redistributions in binary form must reproduce the above copyright |
|
10 ## notice, this list of conditions and the following disclaimer in the |
|
11 ## documentation and/or other materials provided with the distribution. |
|
12 ## |
|
13 ## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY |
|
14 ## EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
15 ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
16 ## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
|
17 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
|
18 ## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|
19 ## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
|
20 ## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
|
21 ## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
22 ## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
23 ## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
24 ## |
|
25 |
|
26 LOCAL_SRC_FILES := \ |
|
27 API/JSValueRef.cpp \ |
|
28 API/JSCallbackObject.cpp \ |
|
29 API/OpaqueJSString.cpp \ |
|
30 \ |
|
31 bytecode/CodeBlock.cpp \ |
|
32 bytecode/JumpTable.cpp \ |
|
33 bytecode/Opcode.cpp \ |
|
34 bytecode/SamplingTool.cpp \ |
|
35 bytecode/StructureStubInfo.cpp \ |
|
36 \ |
|
37 bytecompiler/BytecodeGenerator.cpp \ |
|
38 bytecompiler/NodesCodegen.cpp \ |
|
39 \ |
|
40 debugger/Debugger.cpp \ |
|
41 debugger/DebuggerActivation.cpp \ |
|
42 debugger/DebuggerCallFrame.cpp \ |
|
43 \ |
|
44 interpreter/CallFrame.cpp \ |
|
45 interpreter/Interpreter.cpp \ |
|
46 interpreter/RegisterFile.cpp \ |
|
47 \ |
|
48 jit/ExecutableAllocator.cpp\ |
|
49 jit/ExecutableAllocatorFixedVMPool.cpp \ |
|
50 jit/ExecutableAllocatorPosix.cpp \ |
|
51 jit/JIT.cpp \ |
|
52 jit/JITArithmetic.cpp \ |
|
53 jit/JITCall.cpp \ |
|
54 jit/JITCall32_64.cpp \ |
|
55 jit/JITOpcodes.cpp \ |
|
56 jit/JITPropertyAccess.cpp \ |
|
57 jit/JITStubs.cpp \ |
|
58 \ |
|
59 parser/Lexer.cpp \ |
|
60 parser/Nodes.cpp \ |
|
61 parser/Parser.cpp \ |
|
62 parser/ParserArena.cpp \ |
|
63 \ |
|
64 pcre/pcre_compile.cpp \ |
|
65 pcre/pcre_exec.cpp \ |
|
66 pcre/pcre_tables.cpp \ |
|
67 pcre/pcre_ucp_searchfuncs.cpp \ |
|
68 pcre/pcre_xclass.cpp \ |
|
69 \ |
|
70 profiler/Profile.cpp \ |
|
71 profiler/ProfileGenerator.cpp \ |
|
72 profiler/ProfileNode.cpp \ |
|
73 profiler/Profiler.cpp \ |
|
74 \ |
|
75 runtime/ArgList.cpp \ |
|
76 runtime/Arguments.cpp \ |
|
77 runtime/ArrayConstructor.cpp \ |
|
78 runtime/ArrayPrototype.cpp \ |
|
79 runtime/BooleanConstructor.cpp \ |
|
80 runtime/BooleanObject.cpp \ |
|
81 runtime/BooleanPrototype.cpp \ |
|
82 runtime/CallData.cpp \ |
|
83 runtime/Collector.cpp \ |
|
84 runtime/CommonIdentifiers.cpp \ |
|
85 runtime/Completion.cpp \ |
|
86 runtime/ConstructData.cpp \ |
|
87 runtime/DateConstructor.cpp \ |
|
88 runtime/DateConversion.cpp \ |
|
89 runtime/DateInstance.cpp \ |
|
90 runtime/DatePrototype.cpp \ |
|
91 runtime/Error.cpp \ |
|
92 runtime/ErrorConstructor.cpp \ |
|
93 runtime/ErrorInstance.cpp \ |
|
94 runtime/ErrorPrototype.cpp \ |
|
95 runtime/ExceptionHelpers.cpp \ |
|
96 runtime/Executable.cpp \ |
|
97 runtime/FunctionConstructor.cpp \ |
|
98 runtime/FunctionPrototype.cpp \ |
|
99 runtime/GetterSetter.cpp \ |
|
100 runtime/GlobalEvalFunction.cpp \ |
|
101 runtime/Identifier.cpp \ |
|
102 runtime/InitializeThreading.cpp \ |
|
103 runtime/InternalFunction.cpp \ |
|
104 runtime/JSAPIValueWrapper.cpp \ |
|
105 runtime/JSActivation.cpp \ |
|
106 runtime/JSArray.cpp \ |
|
107 runtime/JSByteArray.cpp \ |
|
108 runtime/JSCell.cpp \ |
|
109 runtime/JSFunction.cpp \ |
|
110 runtime/JSGlobalData.cpp \ |
|
111 runtime/JSGlobalObject.cpp \ |
|
112 runtime/JSGlobalObjectFunctions.cpp \ |
|
113 runtime/JSImmediate.cpp \ |
|
114 runtime/JSLock.cpp \ |
|
115 runtime/JSNotAnObject.cpp \ |
|
116 runtime/JSNumberCell.cpp \ |
|
117 runtime/JSONObject.cpp \ |
|
118 runtime/JSObject.cpp \ |
|
119 runtime/JSPropertyNameIterator.cpp \ |
|
120 runtime/JSStaticScopeObject.cpp \ |
|
121 runtime/JSString.cpp \ |
|
122 runtime/JSValue.cpp \ |
|
123 runtime/JSVariableObject.cpp \ |
|
124 runtime/JSWrapperObject.cpp \ |
|
125 runtime/LiteralParser.cpp \ |
|
126 runtime/Lookup.cpp \ |
|
127 runtime/MarkStack.cpp \ |
|
128 runtime/MarkStackPosix.cpp \ |
|
129 runtime/MathObject.cpp \ |
|
130 runtime/NativeErrorConstructor.cpp \ |
|
131 runtime/NativeErrorPrototype.cpp \ |
|
132 runtime/NumberConstructor.cpp \ |
|
133 runtime/NumberObject.cpp \ |
|
134 runtime/NumberPrototype.cpp \ |
|
135 runtime/ObjectConstructor.cpp \ |
|
136 runtime/ObjectPrototype.cpp \ |
|
137 runtime/Operations.cpp \ |
|
138 runtime/PropertyDescriptor.cpp \ |
|
139 runtime/PropertyNameArray.cpp \ |
|
140 runtime/PropertySlot.cpp \ |
|
141 runtime/PrototypeFunction.cpp \ |
|
142 runtime/RegExp.cpp \ |
|
143 runtime/RegExpConstructor.cpp \ |
|
144 runtime/RegExpObject.cpp \ |
|
145 runtime/RegExpPrototype.cpp \ |
|
146 runtime/ScopeChain.cpp \ |
|
147 runtime/SmallStrings.cpp \ |
|
148 runtime/StringConstructor.cpp \ |
|
149 runtime/StringObject.cpp \ |
|
150 runtime/StringPrototype.cpp \ |
|
151 runtime/Structure.cpp \ |
|
152 runtime/StructureChain.cpp \ |
|
153 runtime/TimeoutChecker.cpp \ |
|
154 runtime/UString.cpp \ |
|
155 \ |
|
156 wtf/Assertions.cpp \ |
|
157 wtf/ByteArray.cpp \ |
|
158 wtf/CurrentTime.cpp \ |
|
159 wtf/DateMath.cpp \ |
|
160 wtf/FastMalloc.cpp \ |
|
161 wtf/HashTable.cpp \ |
|
162 wtf/MainThread.cpp \ |
|
163 wtf/RandomNumber.cpp \ |
|
164 wtf/RefCountedLeakCounter.cpp \ |
|
165 wtf/TCSystemAlloc.cpp \ |
|
166 wtf/ThreadIdentifierDataPthreads.cpp \ |
|
167 wtf/Threading.cpp \ |
|
168 wtf/ThreadingPthreads.cpp \ |
|
169 wtf/WTFThreadData.cpp \ |
|
170 \ |
|
171 wtf/TypeTraits.cpp \ |
|
172 wtf/dtoa.cpp \ |
|
173 \ |
|
174 wtf/android/MainThreadAndroid.cpp \ |
|
175 \ |
|
176 wtf/text/AtomicString.cpp \ |
|
177 wtf/text/CString.cpp \ |
|
178 wtf/text/StringImpl.cpp \ |
|
179 wtf/text/WTFString.cpp \ |
|
180 \ |
|
181 wtf/unicode/CollatorDefault.cpp \ |
|
182 wtf/unicode/UTF8.cpp \ |
|
183 \ |
|
184 wtf/unicode/icu/CollatorICU.cpp \ |
|
185 \ |
|
186 yarr/RegexCompiler.cpp \ |
|
187 yarr/RegexInterpreter.cpp \ |
|
188 yarr/RegexJIT.cpp |
|
189 |
|
190 # generated headers |
|
191 JSC_OBJECTS := $(addprefix $(intermediates)/runtime/, \ |
|
192 ArrayPrototype.lut.h \ |
|
193 DatePrototype.lut.h \ |
|
194 JSONObject.lut.h \ |
|
195 MathObject.lut.h \ |
|
196 NumberConstructor.lut.h \ |
|
197 RegExpConstructor.lut.h \ |
|
198 RegExpObject.lut.h \ |
|
199 StringPrototype.lut.h \ |
|
200 ) |
|
201 $(JSC_OBJECTS): PRIVATE_PATH := $(LOCAL_PATH) |
|
202 $(JSC_OBJECTS): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/create_hash_table $< -i > $@ |
|
203 $(JSC_OBJECTS): $(LOCAL_PATH)/create_hash_table |
|
204 $(JSC_OBJECTS): $(intermediates)/%.lut.h : $(LOCAL_PATH)/%.cpp |
|
205 $(transform-generated-source) |
|
206 |
|
207 |
|
208 LEXER_HEADER := $(intermediates)/Lexer.lut.h |
|
209 $(LEXER_HEADER): PRIVATE_PATH := $(LOCAL_PATH) |
|
210 $(LEXER_HEADER): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/create_hash_table $< -i > $@ |
|
211 $(LEXER_HEADER): $(LOCAL_PATH)/create_hash_table |
|
212 $(LEXER_HEADER): $(intermediates)/%.lut.h : $(LOCAL_PATH)/parser/Keywords.table |
|
213 $(transform-generated-source) |
|
214 |
|
215 CHARTABLES := $(intermediates)/chartables.c |
|
216 $(CHARTABLES): PRIVATE_PATH := $(LOCAL_PATH) |
|
217 $(CHARTABLES): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/pcre/dftables $@ |
|
218 $(CHARTABLES): $(LOCAL_PATH)/pcre/dftables |
|
219 $(CHARTABLES): $(LOCAL_PATH)/pcre/pcre_internal.h |
|
220 $(transform-generated-source) |
|
221 |
|
222 LOCAL_GENERATED_SOURCES += $(JSC_OBJECTS) $(LEXER_HEADER) $(CHARTABLES) |