3 ## Copyright 2007, The Android Open Source Project
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
9 ## http://www.apache.org/licenses/LICENSE-2.0
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.
18 #LOCAL_CFLAGS += -E -v
20 # This comment block is read by tools/webkitsync/diff.cpp
21 # Don't remove it or move it.
23 # The following files are intentionally not included
24 # LOCAL_SRC_FILES_EXCLUDED := \
34 # This comment block is read by tools/webkitsync/diff.cpp
35 # Don't remove it or move it.
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 := \
52 API/JSCallbackObject.cpp \
53 API/OpaqueJSString.cpp \
55 assembler/ARMAssembler.cpp \
56 bytecode/CodeBlock.cpp \
57 bytecode/JumpTable.cpp \
59 bytecode/SamplingTool.cpp \
60 bytecode/StructureStubInfo.cpp \
62 bytecompiler/BytecodeGenerator.cpp \
64 debugger/Debugger.cpp \
65 debugger/DebuggerActivation.cpp \
66 debugger/DebuggerCallFrame.cpp \
68 interpreter/CallFrame.cpp \
69 interpreter/Interpreter.cpp \
70 interpreter/RegisterFile.cpp \
75 parser/ParserArena.cpp \
77 pcre/pcre_compile.cpp \
79 pcre/pcre_tables.cpp \
80 pcre/pcre_ucp_searchfuncs.cpp \
81 pcre/pcre_xclass.cpp \
83 profiler/HeavyProfile.cpp \
84 profiler/Profile.cpp \
85 profiler/ProfileGenerator.cpp \
86 profiler/ProfileNode.cpp \
87 profiler/Profiler.cpp \
88 profiler/TreeProfile.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 \
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 \
123 runtime/JSFunction.cpp \
124 runtime/JSGlobalData.cpp \
125 runtime/JSGlobalObject.cpp \
126 runtime/JSGlobalObjectFunctions.cpp \
127 runtime/JSImmediate.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 \
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 \
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 \
169 wrec/CharacterClass.cpp \
170 wrec/CharacterClassConstructor.cpp \
172 wrec/WRECFunctors.cpp \
173 wrec/WRECGenerator.cpp \
174 wrec/WRECParser.cpp \
178 wtf/CurrentTime.cpp \
183 wtf/RandomNumber.cpp \
184 wtf/RefCountedLeakCounter.cpp \
185 wtf/TCSystemAlloc.cpp \
187 wtf/ThreadingPthreads.cpp \
192 wtf/android/MainThreadAndroid.cpp \
194 wtf/unicode/CollatorDefault.cpp \
195 wtf/unicode/UTF8.cpp \
197 wtf/unicode/icu/CollatorICU.cpp
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)
208 JSC_OBJECTS := $(addprefix $(intermediates)/runtime/, \
209 ArrayPrototype.lut.h \
210 DatePrototype.lut.h \
213 NumberConstructor.lut.h \
214 RegExpConstructor.lut.h \
216 StringPrototype.lut.h \
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)
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)
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)
239 LOCAL_GENERATED_SOURCES += $(JSC_OBJECTS) $(LEXER_HEADER) $(CHARTABLES)