OSDN Git Service

am b99dd716: DO NOT MERGE
[android-x86/external-webkit.git] / JavaScriptCore / Android.mk
1 ##
2 ##
3 ## Copyright 2007, The Android Open Source Project
4 ##
5 ## Licensed under the Apache License, Version 2.0 (the "License");
6 ## you may not use this file except in compliance with the License.
7 ## You may obtain a copy of the License at
8 ##
9 ##     http://www.apache.org/licenses/LICENSE-2.0
10 ##
11 ## Unless required by applicable law or agreed to in writing, software
12 ## distributed under the License is distributed on an "AS IS" BASIS,
13 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ## See the License for the specific language governing permissions and
15 ## limitations under the License.
16 ##
17
18 #LOCAL_CFLAGS += -E -v
19
20 # This comment block is read by tools/webkitsync/diff.cpp
21 # Don't remove it or move it. 
22 #
23 # The following files are intentionally not included
24 # LOCAL_SRC_FILES_EXCLUDED := \
25 #       AllInOneFile.cpp \
26 #       jsc.cpp \
27 #       parser/Grammar.y \
28 #       pcre/ucptable.cpp \
29 #       wtf/GOwnPtr.cpp \
30 #       wtf/*Gtk.cpp \
31 #       wtf/*Qt.cpp \
32 #       wtf/*Win.cpp \
33
34 # This comment block is read by tools/webkitsync/diff.cpp
35 # Don't remove it or move it. 
36 #
37 # The following directory wildcard matches are intentionally not included
38 # If an entry starts with '/', any subdirectory may match
39 # If an entry starts with '^', the first directory must match
40 # LOCAL_DIR_WILDCARD_EXCLUDED := \
41 #       ^API/* \
42 #       /chromium/* \
43 #       /gtk/* \
44 #       ^jit/* \
45 #       /mac/* \
46 #       /qt/* \
47 #       /win/* \
48 #       /wx/* \
49
50 LOCAL_SRC_FILES := \
51   API/JSValueRef.cpp \
52         API/JSCallbackObject.cpp \
53         API/OpaqueJSString.cpp \
54         \
55         assembler/ARMAssembler.cpp \
56         bytecode/CodeBlock.cpp \
57         bytecode/JumpTable.cpp \
58         bytecode/Opcode.cpp \
59         bytecode/SamplingTool.cpp \
60         bytecode/StructureStubInfo.cpp \
61         \
62         bytecompiler/BytecodeGenerator.cpp \
63         \
64         debugger/Debugger.cpp \
65         debugger/DebuggerActivation.cpp \
66         debugger/DebuggerCallFrame.cpp \
67         \
68         interpreter/CallFrame.cpp \
69         interpreter/Interpreter.cpp \
70         interpreter/RegisterFile.cpp \
71         \
72         parser/Lexer.cpp \
73         parser/Nodes.cpp \
74         parser/Parser.cpp \
75         parser/ParserArena.cpp \
76         \
77         pcre/pcre_compile.cpp \
78         pcre/pcre_exec.cpp \
79         pcre/pcre_tables.cpp \
80         pcre/pcre_ucp_searchfuncs.cpp \
81         pcre/pcre_xclass.cpp \
82         \
83         profiler/HeavyProfile.cpp \
84         profiler/Profile.cpp \
85         profiler/ProfileGenerator.cpp \
86         profiler/ProfileNode.cpp \
87         profiler/Profiler.cpp \
88         profiler/TreeProfile.cpp \
89         \
90         runtime/ArgList.cpp \
91         runtime/Arguments.cpp \
92         runtime/ArrayConstructor.cpp \
93         runtime/ArrayPrototype.cpp \
94         runtime/BooleanConstructor.cpp \
95         runtime/BooleanObject.cpp \
96         runtime/BooleanPrototype.cpp \
97         runtime/CallData.cpp \
98         runtime/Collector.cpp \
99         runtime/CommonIdentifiers.cpp \
100         runtime/Completion.cpp \
101         runtime/ConstructData.cpp \
102         runtime/DateConstructor.cpp \
103         runtime/DateConversion.cpp \
104         runtime/DateInstance.cpp \
105         runtime/DatePrototype.cpp \
106         runtime/Error.cpp \
107         runtime/ErrorConstructor.cpp \
108         runtime/ErrorInstance.cpp \
109         runtime/ErrorPrototype.cpp \
110         runtime/ExceptionHelpers.cpp \
111         runtime/FunctionConstructor.cpp \
112         runtime/FunctionPrototype.cpp \
113         runtime/GetterSetter.cpp \
114         runtime/GlobalEvalFunction.cpp \
115         runtime/Identifier.cpp \
116         runtime/InitializeThreading.cpp \
117         runtime/InternalFunction.cpp \
118         runtime/JSAPIValueWrapper.cpp \
119         runtime/JSActivation.cpp \
120         runtime/JSArray.cpp \
121         runtime/JSByteArray.cpp \
122         runtime/JSCell.cpp \
123         runtime/JSFunction.cpp \
124         runtime/JSGlobalData.cpp \
125         runtime/JSGlobalObject.cpp \
126         runtime/JSGlobalObjectFunctions.cpp \
127         runtime/JSImmediate.cpp \
128         runtime/JSLock.cpp \
129         runtime/JSNotAnObject.cpp \
130         runtime/JSNumberCell.cpp \
131         runtime/JSONObject.cpp \
132         runtime/JSObject.cpp \
133         runtime/JSPropertyNameIterator.cpp \
134         runtime/JSStaticScopeObject.cpp \
135         runtime/JSString.cpp \
136         runtime/JSValue.cpp \
137         runtime/JSVariableObject.cpp \
138         runtime/JSWrapperObject.cpp \
139         runtime/LiteralParser.cpp \
140         runtime/Lookup.cpp \
141         runtime/MarkStack.cpp \
142         runtime/MarkStackPosix.cpp \
143         runtime/MathObject.cpp \
144         runtime/NativeErrorConstructor.cpp \
145         runtime/NativeErrorPrototype.cpp \
146         runtime/NumberConstructor.cpp \
147         runtime/NumberObject.cpp \
148         runtime/NumberPrototype.cpp \
149         runtime/ObjectConstructor.cpp \
150         runtime/ObjectPrototype.cpp \
151         runtime/Operations.cpp \
152         runtime/PropertyNameArray.cpp \
153         runtime/PropertySlot.cpp \
154         runtime/PrototypeFunction.cpp \
155         runtime/RegExp.cpp \
156         runtime/RegExpConstructor.cpp \
157         runtime/RegExpObject.cpp \
158         runtime/RegExpPrototype.cpp \
159         runtime/ScopeChain.cpp \
160         runtime/SmallStrings.cpp \
161         runtime/StringConstructor.cpp \
162         runtime/StringObject.cpp \
163         runtime/StringPrototype.cpp \
164         runtime/Structure.cpp \
165         runtime/StructureChain.cpp \
166         runtime/TimeoutChecker.cpp \
167         runtime/UString.cpp \
168         \
169         wrec/CharacterClass.cpp \
170         wrec/CharacterClassConstructor.cpp \
171         wrec/WREC.cpp \
172         wrec/WRECFunctors.cpp \
173         wrec/WRECGenerator.cpp \
174         wrec/WRECParser.cpp \
175         \
176         wtf/Assertions.cpp \
177         wtf/ByteArray.cpp \
178         wtf/CurrentTime.cpp \
179         wtf/DateMath.cpp \
180         wtf/FastMalloc.cpp \
181         wtf/HashTable.cpp \
182         wtf/MainThread.cpp \
183         wtf/RandomNumber.cpp \
184         wtf/RefCountedLeakCounter.cpp \
185         wtf/TCSystemAlloc.cpp \
186         wtf/Threading.cpp \
187         wtf/ThreadingPthreads.cpp \
188         \
189         wtf/TypeTraits.cpp \
190         wtf/dtoa.cpp \
191         \
192         wtf/android/MainThreadAndroid.cpp \
193         \
194         wtf/unicode/CollatorDefault.cpp \
195         wtf/unicode/UTF8.cpp \
196         \
197         wtf/unicode/icu/CollatorICU.cpp
198
199 # Rule to build grammar.y with our custom bison.
200 GEN := $(intermediates)/parser/Grammar.cpp
201 $(GEN) : PRIVATE_YACCFLAGS := -p jscyy
202 $(GEN) : $(LOCAL_PATH)/parser/Grammar.y
203         $(call local-transform-y-to-cpp,.cpp)
204 $(GEN) : $(LOCAL_BISON)
205 LOCAL_GENERATED_SOURCES += $(GEN)
206
207 # generated headers
208 JSC_OBJECTS := $(addprefix $(intermediates)/runtime/, \
209                                 ArrayPrototype.lut.h \
210                                 DatePrototype.lut.h \
211                                 JSONObject.lut.h \
212                                 MathObject.lut.h \
213                                 NumberConstructor.lut.h \
214                                 RegExpConstructor.lut.h \
215                                 RegExpObject.lut.h \
216                                 StringPrototype.lut.h \
217                         )
218 $(JSC_OBJECTS): PRIVATE_PATH := $(LOCAL_PATH)
219 $(JSC_OBJECTS): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/create_hash_table $< -i > $@
220 $(JSC_OBJECTS): $(LOCAL_PATH)/create_hash_table
221 $(JSC_OBJECTS): $(intermediates)/%.lut.h : $(LOCAL_PATH)/%.cpp
222         $(transform-generated-source)
223
224
225 LEXER_HEADER := $(intermediates)/Lexer.lut.h
226 $(LEXER_HEADER): PRIVATE_PATH := $(LOCAL_PATH)
227 $(LEXER_HEADER): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/create_hash_table $< -i > $@
228 $(LEXER_HEADER): $(LOCAL_PATH)/create_hash_table
229 $(LEXER_HEADER): $(intermediates)/%.lut.h : $(LOCAL_PATH)/parser/Keywords.table
230         $(transform-generated-source)
231
232 CHARTABLES := $(intermediates)/chartables.c
233 $(CHARTABLES): PRIVATE_PATH := $(LOCAL_PATH)
234 $(CHARTABLES): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/pcre/dftables $@
235 $(CHARTABLES): $(LOCAL_PATH)/pcre/dftables
236 $(CHARTABLES): $(LOCAL_PATH)/pcre/pcre_internal.h
237         $(transform-generated-source)
238
239 LOCAL_GENERATED_SOURCES += $(JSC_OBJECTS) $(LEXER_HEADER) $(CHARTABLES)