OSDN Git Service

am 71ce050b: am c45f962c: Merge "Correcting how the plugin\'s bounding coordinates...
[android-x86/external-webkit.git] / JavaScriptCore / Android.mk
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         parser/Lexer.cpp \
49         parser/Nodes.cpp \
50         parser/Parser.cpp \
51         parser/ParserArena.cpp \
52         \
53         pcre/pcre_compile.cpp \
54         pcre/pcre_exec.cpp \
55         pcre/pcre_tables.cpp \
56         pcre/pcre_ucp_searchfuncs.cpp \
57         pcre/pcre_xclass.cpp \
58         \
59         profiler/HeavyProfile.cpp \
60         profiler/Profile.cpp \
61         profiler/ProfileGenerator.cpp \
62         profiler/ProfileNode.cpp \
63         profiler/Profiler.cpp \
64         profiler/TreeProfile.cpp \
65         \
66         runtime/ArgList.cpp \
67         runtime/Arguments.cpp \
68         runtime/ArrayConstructor.cpp \
69         runtime/ArrayPrototype.cpp \
70         runtime/BooleanConstructor.cpp \
71         runtime/BooleanObject.cpp \
72         runtime/BooleanPrototype.cpp \
73         runtime/CallData.cpp \
74         runtime/Collector.cpp \
75         runtime/CommonIdentifiers.cpp \
76         runtime/Completion.cpp \
77         runtime/ConstructData.cpp \
78         runtime/DateConstructor.cpp \
79         runtime/DateConversion.cpp \
80         runtime/DateInstance.cpp \
81         runtime/DatePrototype.cpp \
82         runtime/Error.cpp \
83         runtime/ErrorConstructor.cpp \
84         runtime/ErrorInstance.cpp \
85         runtime/ErrorPrototype.cpp \
86         runtime/ExceptionHelpers.cpp \
87         runtime/Executable.cpp \
88         runtime/FunctionConstructor.cpp \
89         runtime/FunctionPrototype.cpp \
90         runtime/GetterSetter.cpp \
91         runtime/GlobalEvalFunction.cpp \
92         runtime/Identifier.cpp \
93         runtime/InitializeThreading.cpp \
94         runtime/InternalFunction.cpp \
95         runtime/JSAPIValueWrapper.cpp \
96         runtime/JSActivation.cpp \
97         runtime/JSArray.cpp \
98         runtime/JSByteArray.cpp \
99         runtime/JSCell.cpp \
100         runtime/JSFunction.cpp \
101         runtime/JSGlobalData.cpp \
102         runtime/JSGlobalObject.cpp \
103         runtime/JSGlobalObjectFunctions.cpp \
104         runtime/JSImmediate.cpp \
105         runtime/JSLock.cpp \
106         runtime/JSNotAnObject.cpp \
107         runtime/JSNumberCell.cpp \
108         runtime/JSONObject.cpp \
109         runtime/JSObject.cpp \
110         runtime/JSPropertyNameIterator.cpp \
111         runtime/JSStaticScopeObject.cpp \
112         runtime/JSString.cpp \
113         runtime/JSValue.cpp \
114         runtime/JSVariableObject.cpp \
115         runtime/JSWrapperObject.cpp \
116         runtime/LiteralParser.cpp \
117         runtime/Lookup.cpp \
118         runtime/MarkStack.cpp \
119         runtime/MarkStackPosix.cpp \
120         runtime/MathObject.cpp \
121         runtime/NativeErrorConstructor.cpp \
122         runtime/NativeErrorPrototype.cpp \
123         runtime/NumberConstructor.cpp \
124         runtime/NumberObject.cpp \
125         runtime/NumberPrototype.cpp \
126         runtime/ObjectConstructor.cpp \
127         runtime/ObjectPrototype.cpp \
128         runtime/Operations.cpp \
129         runtime/PropertyDescriptor.cpp \
130         runtime/PropertyNameArray.cpp \
131         runtime/PropertySlot.cpp \
132         runtime/PrototypeFunction.cpp \
133         runtime/RegExp.cpp \
134         runtime/RegExpConstructor.cpp \
135         runtime/RegExpObject.cpp \
136         runtime/RegExpPrototype.cpp \
137         runtime/ScopeChain.cpp \
138         runtime/SmallStrings.cpp \
139         runtime/StringConstructor.cpp \
140         runtime/StringObject.cpp \
141         runtime/StringPrototype.cpp \
142         runtime/Structure.cpp \
143         runtime/StructureChain.cpp \
144         runtime/TimeoutChecker.cpp \
145         runtime/UString.cpp \
146         \
147         wrec/CharacterClass.cpp \
148         wrec/CharacterClassConstructor.cpp \
149         wrec/WREC.cpp \
150         wrec/WRECFunctors.cpp \
151         wrec/WRECGenerator.cpp \
152         wrec/WRECParser.cpp \
153         \
154         wtf/Assertions.cpp \
155         wtf/ByteArray.cpp \
156         wtf/CurrentTime.cpp \
157         wtf/DateMath.cpp \
158         wtf/FastMalloc.cpp \
159         wtf/HashTable.cpp \
160         wtf/MainThread.cpp \
161         wtf/RandomNumber.cpp \
162         wtf/RefCountedLeakCounter.cpp \
163         wtf/TCSystemAlloc.cpp \
164         wtf/Threading.cpp \
165         wtf/ThreadingPthreads.cpp \
166         \
167         wtf/TypeTraits.cpp \
168         wtf/dtoa.cpp \
169         \
170         wtf/android/MainThreadAndroid.cpp \
171         \
172         wtf/unicode/CollatorDefault.cpp \
173         wtf/unicode/UTF8.cpp \
174         \
175         wtf/unicode/icu/CollatorICU.cpp
176
177 # Rule to build grammar.y with our custom bison.
178 GEN := $(intermediates)/parser/Grammar.cpp
179 $(GEN) : PRIVATE_YACCFLAGS := -p jscyy
180 $(GEN) : $(LOCAL_PATH)/parser/Grammar.y
181         $(call local-transform-y-to-cpp,.cpp)
182 $(GEN) : $(LOCAL_BISON)
183 LOCAL_GENERATED_SOURCES += $(GEN)
184
185 # generated headers
186 JSC_OBJECTS := $(addprefix $(intermediates)/runtime/, \
187                                 ArrayPrototype.lut.h \
188                                 DatePrototype.lut.h \
189                                 JSONObject.lut.h \
190                                 MathObject.lut.h \
191                                 NumberConstructor.lut.h \
192                                 RegExpConstructor.lut.h \
193                                 RegExpObject.lut.h \
194                                 StringPrototype.lut.h \
195                         )
196 $(JSC_OBJECTS): PRIVATE_PATH := $(LOCAL_PATH)
197 $(JSC_OBJECTS): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/create_hash_table $< -i > $@
198 $(JSC_OBJECTS): $(LOCAL_PATH)/create_hash_table
199 $(JSC_OBJECTS): $(intermediates)/%.lut.h : $(LOCAL_PATH)/%.cpp
200         $(transform-generated-source)
201
202
203 LEXER_HEADER := $(intermediates)/Lexer.lut.h
204 $(LEXER_HEADER): PRIVATE_PATH := $(LOCAL_PATH)
205 $(LEXER_HEADER): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/create_hash_table $< -i > $@
206 $(LEXER_HEADER): $(LOCAL_PATH)/create_hash_table
207 $(LEXER_HEADER): $(intermediates)/%.lut.h : $(LOCAL_PATH)/parser/Keywords.table
208         $(transform-generated-source)
209
210 CHARTABLES := $(intermediates)/chartables.c
211 $(CHARTABLES): PRIVATE_PATH := $(LOCAL_PATH)
212 $(CHARTABLES): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/pcre/dftables $@
213 $(CHARTABLES): $(LOCAL_PATH)/pcre/dftables
214 $(CHARTABLES): $(LOCAL_PATH)/pcre/pcre_internal.h
215         $(transform-generated-source)
216
217 LOCAL_GENERATED_SOURCES += $(JSC_OBJECTS) $(LEXER_HEADER) $(CHARTABLES)