blob: 2689bce5c55d65af920bd690e698af8594875a7b [file] [log] [blame]
eric@webkit.orgd99f85b2010-05-15 13:37:59 +00001SET(JavaScriptCore_INCLUDE_DIRECTORIES
2 "${CMAKE_BINARY_DIR}"
3 "${JAVASCRIPTCORE_DIR}"
4 "${JAVASCRIPTCORE_DIR}/API"
5 "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
6 "${JAVASCRIPTCORE_DIR}/assembler"
7 "${JAVASCRIPTCORE_DIR}/bytecode"
8 "${JAVASCRIPTCORE_DIR}/bytecompiler"
fpizlo@apple.com594887a2011-09-06 09:23:55 +00009 "${JAVASCRIPTCORE_DIR}/dfg"
fpizlo@apple.com01c2a192012-06-19 19:42:55 +000010 "${JAVASCRIPTCORE_DIR}/disassembler"
ggaren@apple.comf03cbce2011-04-10 02:32:07 +000011 "${JAVASCRIPTCORE_DIR}/heap"
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000012 "${JAVASCRIPTCORE_DIR}/debugger"
13 "${JAVASCRIPTCORE_DIR}/interpreter"
14 "${JAVASCRIPTCORE_DIR}/jit"
fpizlo@apple.com7bbcaab2012-02-22 05:23:19 +000015 "${JAVASCRIPTCORE_DIR}/llint"
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000016 "${JAVASCRIPTCORE_DIR}/parser"
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000017 "${JAVASCRIPTCORE_DIR}/profiler"
18 "${JAVASCRIPTCORE_DIR}/runtime"
barraclough@apple.comf51cff32012-01-29 03:47:13 +000019 "${JAVASCRIPTCORE_DIR}/tools"
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000020 "${JAVASCRIPTCORE_DIR}/yarr"
kubo@profusion.mobi0210bd02012-03-23 00:54:09 +000021 "${WTF_DIR}"
commit-queue@webkit.org85b33552011-05-23 08:27:38 +000022 "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}"
paroga@webkit.org6e7e18f2011-11-23 09:08:11 +000023 "${CMAKE_SOURCE_DIR}/Source"
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000024)
25
26SET(JavaScriptCore_SOURCES
27 API/JSBase.cpp
28 API/JSCallbackConstructor.cpp
29 API/JSCallbackFunction.cpp
30 API/JSCallbackObject.cpp
31 API/JSClassRef.cpp
32 API/JSContextRef.cpp
33 API/JSObjectRef.cpp
34 API/JSProfilerPrivate.cpp
35 API/JSStringRef.cpp
36 API/JSValueRef.cpp
37 API/JSWeakObjectMapRefPrivate.cpp
38 API/OpaqueJSString.cpp
fpizlo@apple.com2adf5272012-06-20 01:33:30 +000039
40 assembler/LinkBuffer.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000041
fpizlo@apple.comf24804c2012-08-15 02:48:35 +000042 bytecode/ArrayProfile.cpp
fpizlo@apple.comea74cb12012-01-11 00:18:05 +000043 bytecode/CallLinkInfo.cpp
fpizlo@apple.com1f8917f2012-01-22 01:36:23 +000044 bytecode/CallLinkStatus.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000045 bytecode/CodeBlock.cpp
fpizlo@apple.com4ef9c872011-12-13 19:49:49 +000046 bytecode/DFGExitProfile.cpp
fpizlo@apple.com254d43b2012-03-05 06:52:44 +000047 bytecode/ExecutionCounter.cpp
fpizlo@apple.com1f8917f2012-01-22 01:36:23 +000048 bytecode/GetByIdStatus.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000049 bytecode/JumpTable.cpp
fpizlo@apple.com31659de2012-02-23 22:51:09 +000050 bytecode/LazyOperandValueProfile.cpp
fpizlo@apple.comea74cb12012-01-11 00:18:05 +000051 bytecode/MethodCallLinkInfo.cpp
fpizlo@apple.com1f8917f2012-01-22 01:36:23 +000052 bytecode/MethodCallLinkStatus.cpp
fpizlo@apple.com31659de2012-02-23 22:51:09 +000053 bytecode/MethodOfGettingAValueProfile.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000054 bytecode/Opcode.cpp
fpizlo@apple.com40cae3a2012-02-11 21:07:25 +000055 bytecode/PolymorphicPutByIdList.cpp
fpizlo@apple.com62336162012-06-07 01:35:59 +000056 bytecode/SpeculatedType.cpp
fpizlo@apple.com1f8917f2012-01-22 01:36:23 +000057 bytecode/PutByIdStatus.cpp
fpizlo@apple.com3bcb2112012-06-21 01:38:49 +000058 bytecode/ResolveGlobalStatus.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000059 bytecode/SamplingTool.cpp
fpizlo@apple.comcf716122012-07-13 06:41:18 +000060 bytecode/StructureStubClearingWatchpoint.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000061 bytecode/StructureStubInfo.cpp
fpizlo@apple.comb75911b2012-06-13 20:53:52 +000062 bytecode/Watchpoint.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +000063
64 bytecompiler/BytecodeGenerator.cpp
65 bytecompiler/NodesCodegen.cpp
66
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +000067 dfg/DFGAbstractState.cpp
fpizlo@apple.com9b928722012-05-24 00:18:55 +000068 dfg/DFGArgumentsSimplificationPhase.cpp
fpizlo@apple.com7aed8d82012-08-23 03:38:52 +000069 dfg/DFGArrayMode.cpp
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +000070 dfg/DFGAssemblyHelpers.cpp
71 dfg/DFGByteCodeParser.cpp
72 dfg/DFGCapabilities.cpp
fpizlo@apple.coma18833e2012-02-18 20:07:32 +000073 dfg/DFGCFAPhase.cpp
fpizlo@apple.com79c51ee2012-05-18 22:30:24 +000074 dfg/DFGCFGSimplificationPhase.cpp
fpizlo@apple.com3187c922012-05-18 21:47:53 +000075 dfg/DFGConstantFoldingPhase.cpp
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +000076 dfg/DFGCorrectableJumpPoint.cpp
fpizlo@apple.coma18833e2012-02-18 20:07:32 +000077 dfg/DFGCSEPhase.cpp
fpizlo@apple.com3d517672012-06-20 17:48:23 +000078 dfg/DFGDisassembler.cpp
fpizlo@apple.comba79d1f2012-05-22 00:51:05 +000079 dfg/DFGDominators.cpp
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +000080 dfg/DFGDriver.cpp
fpizlo@apple.coma73f21d2012-03-24 03:23:02 +000081 dfg/DFGFixupPhase.cpp
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +000082 dfg/DFGGraph.cpp
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +000083 dfg/DFGJITCompiler.cpp
fpizlo@apple.com8618e4b2012-07-03 01:27:16 +000084 dfg/DFGMinifiedNode.cpp
fpizlo@apple.comd7897b12012-03-12 23:15:45 +000085 dfg/DFGNodeFlags.cpp
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +000086 dfg/DFGOSREntry.cpp
87 dfg/DFGOSRExit.cpp
88 dfg/DFGOSRExitCompiler.cpp
89 dfg/DFGOSRExitCompiler32_64.cpp
90 dfg/DFGOSRExitCompiler64.cpp
91 dfg/DFGOperations.cpp
fpizlo@apple.coma18833e2012-02-18 20:07:32 +000092 dfg/DFGPhase.cpp
93 dfg/DFGPredictionPropagationPhase.cpp
yuqiang.xian@intel.comdb5bddc2012-03-08 03:08:36 +000094 dfg/DFGRedundantPhiEliminationPhase.cpp
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +000095 dfg/DFGRepatch.cpp
96 dfg/DFGSpeculativeJIT.cpp
97 dfg/DFGSpeculativeJIT32_64.cpp
98 dfg/DFGSpeculativeJIT64.cpp
fpizlo@apple.comcaa68812012-08-02 04:32:30 +000099 dfg/DFGStructureCheckHoistingPhase.cpp
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +0000100 dfg/DFGThunks.cpp
fpizlo@apple.com8618e4b2012-07-03 01:27:16 +0000101 dfg/DFGValueSource.cpp
102 dfg/DFGVariableEvent.cpp
103 dfg/DFGVariableEventStream.cpp
fpizlo@apple.com79c51ee2012-05-18 22:30:24 +0000104 dfg/DFGValidate.cpp
fpizlo@apple.coma18833e2012-02-18 20:07:32 +0000105 dfg/DFGVirtualRegisterAllocationPhase.cpp
paroga@webkit.org0d7b7be2011-11-12 17:30:48 +0000106
ggaren@apple.comfb0ddb42012-04-29 01:44:37 +0000107 heap/BlockAllocator.cpp
mhahnenberg@apple.com4e822632012-02-17 20:09:14 +0000108 heap/CopiedSpace.cpp
ggaren@apple.com76215812012-04-04 05:28:13 +0000109 heap/ConservativeRoots.cpp
fpizlo@apple.com45928f82011-11-17 03:58:48 +0000110 heap/DFGCodeBlocks.cpp
mhahnenberg@apple.com20f21f32012-08-22 21:49:16 +0000111 heap/GCThreadSharedData.cpp
ggaren@apple.com61b97002012-04-06 22:35:55 +0000112 heap/HandleSet.cpp
ggaren@apple.comf03cbce2011-04-10 02:32:07 +0000113 heap/HandleStack.cpp
ggaren@apple.com76215812012-04-04 05:28:13 +0000114 heap/Heap.cpp
mhahnenberg@apple.coma7ec41b2012-06-19 19:17:31 +0000115 heap/HeapTimer.cpp
mhahnenberg@apple.comeb39abc2012-05-31 03:04:00 +0000116 heap/IncrementalSweeper.cpp
fpizlo@apple.com746b8c52012-07-09 23:26:54 +0000117 heap/JITStubRoutineSet.cpp
ggaren@apple.com0b32d092011-04-11 21:57:31 +0000118 heap/MachineStackMarker.cpp
mhahnenberg@apple.com3c1e1012012-02-03 19:21:28 +0000119 heap/MarkedAllocator.cpp
ggaren@apple.com0b32d092011-04-11 21:57:31 +0000120 heap/MarkedBlock.cpp
oliver@apple.com40f4a962011-09-19 19:14:53 +0000121 heap/MarkedSpace.cpp
ggaren@apple.com0b32d092011-04-11 21:57:31 +0000122 heap/MarkStack.cpp
ggaren@apple.com61b97002012-04-06 22:35:55 +0000123 heap/WeakSet.cpp
ggaren@apple.com76215812012-04-04 05:28:13 +0000124 heap/WeakHandleOwner.cpp
125 heap/WeakBlock.cpp
oliver@apple.com8d857052011-02-15 23:54:06 +0000126
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000127 debugger/Debugger.cpp
128 debugger/DebuggerActivation.cpp
129 debugger/DebuggerCallFrame.cpp
fpizlo@apple.com594887a2011-09-06 09:23:55 +0000130
fpizlo@apple.come8a38be2012-01-27 01:15:16 +0000131 interpreter/AbstractPC.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000132 interpreter/CallFrame.cpp
133 interpreter/Interpreter.cpp
134 interpreter/RegisterFile.cpp
commit-queue@webkit.orga22c4cd2012-08-22 00:11:20 +0000135 interpreter/VMInspector.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000136
137 jit/ExecutableAllocator.cpp
fpizlo@apple.com7bbcaab2012-02-22 05:23:19 +0000138 jit/HostCallReturnValue.cpp
fpizlo@apple.com746b8c52012-07-09 23:26:54 +0000139 jit/GCAwareJITStubRoutine.cpp
commit-queue@webkit.org268bd692010-06-25 12:28:44 +0000140 jit/JITArithmetic32_64.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000141 jit/JITArithmetic.cpp
ggaren@apple.com7214b5a2010-05-21 20:52:30 +0000142 jit/JITCall32_64.cpp
commit-queue@webkit.org268bd692010-06-25 12:28:44 +0000143 jit/JITCall.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000144 jit/JIT.cpp
fpizlo@apple.com8d72be42012-01-08 23:46:12 +0000145 jit/JITExceptions.cpp
commit-queue@webkit.org268bd692010-06-25 12:28:44 +0000146 jit/JITOpcodes32_64.cpp
147 jit/JITOpcodes.cpp
148 jit/JITPropertyAccess32_64.cpp
149 jit/JITPropertyAccess.cpp
fpizlo@apple.com746b8c52012-07-09 23:26:54 +0000150 jit/JITStubRoutine.cpp
commit-queue@webkit.org268bd692010-06-25 12:28:44 +0000151 jit/JITStubs.cpp
fpizlo@apple.com3d949152012-07-11 23:12:35 +0000152 jit/JumpReplacementWatchpoint.cpp
commit-queue@webkit.org268bd692010-06-25 12:28:44 +0000153 jit/ThunkGenerators.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000154
155 parser/Lexer.cpp
156 parser/Nodes.cpp
157 parser/Parser.cpp
158 parser/ParserArena.cpp
antti@apple.combe333a72011-01-25 18:44:11 +0000159 parser/SourceProviderCache.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000160
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000161 profiler/Profile.cpp
162 profiler/ProfileGenerator.cpp
163 profiler/ProfileNode.cpp
164 profiler/Profiler.cpp
165
166 runtime/ArgList.cpp
167 runtime/Arguments.cpp
168 runtime/ArrayConstructor.cpp
169 runtime/ArrayPrototype.cpp
170 runtime/BooleanConstructor.cpp
171 runtime/BooleanObject.cpp
172 runtime/BooleanPrototype.cpp
173 runtime/CallData.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000174 runtime/CommonIdentifiers.cpp
175 runtime/Completion.cpp
176 runtime/ConstructData.cpp
177 runtime/DateConstructor.cpp
178 runtime/DateConversion.cpp
179 runtime/DateInstance.cpp
180 runtime/DatePrototype.cpp
181 runtime/Error.cpp
182 runtime/ErrorConstructor.cpp
183 runtime/ErrorInstance.cpp
184 runtime/ErrorPrototype.cpp
185 runtime/ExceptionHelpers.cpp
186 runtime/Executable.cpp
187 runtime/FunctionConstructor.cpp
188 runtime/FunctionPrototype.cpp
ggaren@apple.com2ccf7a92010-08-03 20:34:17 +0000189 runtime/GCActivityCallback.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000190 runtime/GetterSetter.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000191 runtime/Identifier.cpp
192 runtime/InitializeThreading.cpp
193 runtime/InternalFunction.cpp
194 runtime/JSActivation.cpp
195 runtime/JSAPIValueWrapper.cpp
196 runtime/JSArray.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000197 runtime/JSCell.cpp
abarth@webkit.org2e4652a2011-11-15 00:04:53 +0000198 runtime/JSDateMath.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000199 runtime/JSFunction.cpp
barraclough@apple.com22215662011-09-22 21:22:17 +0000200 runtime/JSBoundFunction.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000201 runtime/JSGlobalData.cpp
202 runtime/JSGlobalObject.cpp
203 runtime/JSGlobalObjectFunctions.cpp
weinig@apple.com76fa2752011-10-31 23:43:58 +0000204 runtime/JSGlobalThis.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000205 runtime/JSLock.cpp
206 runtime/JSNotAnObject.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000207 runtime/JSObject.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000208 runtime/JSONObject.cpp
209 runtime/JSPropertyNameIterator.cpp
fpizlo@apple.com26af9b62012-06-07 00:49:34 +0000210 runtime/JSSegmentedVariableObject.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000211 runtime/JSStaticScopeObject.cpp
212 runtime/JSString.cpp
benjamin@webkit.org7be398b2012-04-05 19:30:13 +0000213 runtime/JSStringJoiner.cpp
fpizlo@apple.com26af9b62012-06-07 00:49:34 +0000214 runtime/JSSymbolTableObject.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000215 runtime/JSValue.cpp
216 runtime/JSVariableObject.cpp
217 runtime/JSWrapperObject.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000218 runtime/LiteralParser.cpp
219 runtime/Lookup.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000220 runtime/MathObject.cpp
barraclough@apple.com6c9b2642012-05-22 00:37:09 +0000221 runtime/NameConstructor.cpp
222 runtime/NameConstructor.h
223 runtime/NameInstance.cpp
224 runtime/NameInstance.h
225 runtime/NamePrototype.cpp
226 runtime/NamePrototype.h
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000227 runtime/NativeErrorConstructor.cpp
228 runtime/NativeErrorPrototype.cpp
229 runtime/NumberConstructor.cpp
230 runtime/NumberObject.cpp
231 runtime/NumberPrototype.cpp
232 runtime/ObjectConstructor.cpp
233 runtime/ObjectPrototype.cpp
234 runtime/Operations.cpp
commit-queue@webkit.orga2e15982011-12-15 12:01:30 +0000235 runtime/Options.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000236 runtime/PropertyDescriptor.cpp
237 runtime/PropertyNameArray.cpp
238 runtime/PropertySlot.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000239 runtime/RegExp.cpp
leandro@webkit.orgebda3022010-06-23 14:01:17 +0000240 runtime/RegExpCache.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000241 runtime/RegExpConstructor.cpp
barraclough@apple.com0a0af1a2012-03-23 19:57:28 +0000242 runtime/RegExpCachedResult.cpp
243 runtime/RegExpMatchesArray.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000244 runtime/RegExpObject.cpp
245 runtime/RegExpPrototype.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000246 runtime/ScopeChain.cpp
247 runtime/SmallStrings.cpp
oliver@apple.com59301852010-10-11 19:12:29 +0000248 runtime/StrictEvalActivation.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000249 runtime/StringConstructor.cpp
250 runtime/StringObject.cpp
251 runtime/StringPrototype.cpp
darin@apple.com4cd37c32011-01-20 01:53:50 +0000252 runtime/StringRecursionChecker.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000253 runtime/Structure.cpp
254 runtime/StructureChain.cpp
fpizlo@apple.comb75911b2012-06-13 20:53:52 +0000255 runtime/SymbolTable.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000256 runtime/TimeoutChecker.cpp
257 runtime/UString.cpp
258
barraclough@apple.comf51cff32012-01-29 03:47:13 +0000259 tools/CodeProfile.cpp
260 tools/CodeProfiling.cpp
261
barraclough@apple.com3f23b2b2012-03-26 20:13:39 +0000262 yarr/YarrCanonicalizeUCS2.cpp
barraclough@apple.com7dd30562011-01-10 21:08:28 +0000263 yarr/YarrPattern.cpp
264 yarr/YarrInterpreter.cpp
265 yarr/YarrJIT.cpp
barraclough@apple.com7e6bd6d2011-01-10 20:20:15 +0000266 yarr/YarrSyntaxChecker.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000267)
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000268
269SET(JavaScriptCore_LUT_FILES
ggaren@apple.com19fe5092011-05-18 02:39:00 +0000270 runtime/ArrayConstructor.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000271 runtime/ArrayPrototype.cpp
ggaren@apple.com19fe5092011-05-18 02:39:00 +0000272 runtime/BooleanPrototype.cpp
273 runtime/DateConstructor.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000274 runtime/DatePrototype.cpp
ggaren@apple.com19fe5092011-05-18 02:39:00 +0000275 runtime/ErrorPrototype.cpp
276 runtime/JSGlobalObject.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000277 runtime/JSONObject.cpp
278 runtime/MathObject.cpp
barraclough@apple.com6c9b2642012-05-22 00:37:09 +0000279 runtime/NamePrototype.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000280 runtime/NumberConstructor.cpp
ggaren@apple.com19fe5092011-05-18 02:39:00 +0000281 runtime/NumberPrototype.cpp
barraclough@apple.com66ccb5c2011-03-05 01:08:04 +0000282 runtime/ObjectConstructor.cpp
ggaren@apple.com19fe5092011-05-18 02:39:00 +0000283 runtime/ObjectPrototype.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000284 runtime/RegExpConstructor.cpp
285 runtime/RegExpObject.cpp
ggaren@apple.com19fe5092011-05-18 02:39:00 +0000286 runtime/RegExpPrototype.cpp
287 runtime/StringConstructor.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000288 runtime/StringPrototype.cpp
289)
290
291SET(JavaScriptCore_LIBRARIES
292 ${WTF_LIBRARY_NAME}
293)
294
295
296# GENERATOR 1-A: LUT creator
297FOREACH (_file ${JavaScriptCore_LUT_FILES})
298 GET_FILENAME_COMPONENT(_name ${_file} NAME_WE)
commit-queue@webkit.org34e60f52011-04-14 00:44:38 +0000299 GENERATE_HASH_LUT(${JAVASCRIPTCORE_DIR}/${_file} ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/${_name}.lut.h)
300 LIST(APPEND JavaScriptCore_HEADERS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/${_name}.lut.h)
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000301ENDFOREACH ()
302
303
304# GENERATOR 1-B: particular LUT creator (for 1 file only)
commit-queue@webkit.org34e60f52011-04-14 00:44:38 +0000305GENERATE_HASH_LUT(${JAVASCRIPTCORE_DIR}/parser/Keywords.table ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/Lexer.lut.h MAIN_DEPENDENCY)
306LIST(APPEND JavaScriptCore_HEADERS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/Lexer.lut.h)
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000307
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000308#GENERATOR: "RegExpJitTables.h": tables used by Yarr
309ADD_CUSTOM_COMMAND(
commit-queue@webkit.org34e60f52011-04-14 00:44:38 +0000310 OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/RegExpJitTables.h
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000311 MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/create_regex_tables
commit-queue@webkit.org34e60f52011-04-14 00:44:38 +0000312 COMMAND ${PYTHON_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/create_regex_tables > ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/RegExpJitTables.h
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000313 VERBATIM)
commit-queue@webkit.org34e60f52011-04-14 00:44:38 +0000314ADD_SOURCE_DEPENDENCIES(${JAVASCRIPTCORE_DIR}/yarr/YarrPattern.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/RegExpJitTables.h)
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000315
316
oliver@apple.comc3ce5432011-06-03 23:30:22 +0000317#GENERATOR: "KeywordLookup.h": keyword decision tree used by the lexer
318ADD_CUSTOM_COMMAND(
319 OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/KeywordLookup.h
320 MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/KeywordLookupGenerator.py
321 COMMAND ${PYTHON_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/KeywordLookupGenerator.py ${JAVASCRIPTCORE_DIR}/parser/Keywords.table > ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/KeywordLookup.h
322 VERBATIM)
323ADD_SOURCE_DEPENDENCIES(${JAVASCRIPTCORE_DIR}/parser/Lexer.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/KeywordLookup.h)
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000324
325IF (WTF_CPU_ARM)
326 LIST(APPEND JavaScriptCore_SOURCES
327 assembler/ARMAssembler.cpp
demarchi@webkit.org20c8b4e2011-04-06 16:39:52 +0000328 assembler/ARMv7Assembler.cpp
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000329 assembler/MacroAssemblerARM.cpp
330 )
331ELSEIF (WTF_CPU_MIPS)
332ELSEIF (WTF_CPU_X86)
333ELSEIF (WTF_CPU_X86_64)
334ELSE ()
335 MESSAGE(FATAL_ERROR "Unknown CPU")
336ENDIF ()
337
338
paroga@webkit.org583094f2012-02-23 19:23:47 +0000339WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000340
341
leandro@webkit.org7a0179d2010-10-05 18:58:22 +0000342ADD_SUBDIRECTORY(shell)
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000343
344WEBKIT_WRAP_SOURCELIST(${JavaScriptCore_SOURCES})
345INCLUDE_DIRECTORIES(${JavaScriptCore_INCLUDE_DIRECTORIES})
346ADD_DEFINITIONS(-DBUILDING_JavaScriptCore)
347ADD_LIBRARY(${JavaScriptCore_LIBRARY_NAME} ${JavaScriptCore_LIBRARY_TYPE} ${JavaScriptCore_HEADERS} ${JavaScriptCore_SOURCES})
348TARGET_LINK_LIBRARIES(${JavaScriptCore_LIBRARY_NAME} ${JavaScriptCore_LIBRARIES})
paroga@webkit.org2fc0c722012-04-10 21:07:26 +0000349SET_TARGET_PROPERTIES(${JavaScriptCore_LIBRARY_NAME} PROPERTIES FOLDER "JavaScriptCore")
kubo@profusion.mobi808e61a2012-03-07 07:37:16 +0000350SET_TARGET_PROPERTIES(${JavaScriptCore_LIBRARY_NAME} PROPERTIES LINK_INTERFACE_LIBRARIES "")
commit-queue@webkit.org838ed342010-08-14 15:17:54 +0000351
leandro@webkit.org02b64d12010-08-16 16:44:46 +0000352IF (JavaScriptCore_LINK_FLAGS)
commit-queue@webkit.org838ed342010-08-14 15:17:54 +0000353 ADD_TARGET_PROPERTIES(${JavaScriptCore_LIBRARY_NAME} LINK_FLAGS "${JavaScriptCore_LINK_FLAGS}")
354ENDIF ()
eric@webkit.orgd99f85b2010-05-15 13:37:59 +0000355
eric@webkit.org73771932010-06-09 20:31:37 +0000356IF (SHARED_CORE)
commit-queue@webkit.orgcb503b62010-07-30 14:31:04 +0000357 SET_TARGET_PROPERTIES(${JavaScriptCore_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
kubo@profusion.mobi962c0d92012-03-05 03:01:38 +0000358 INSTALL(TARGETS ${JavaScriptCore_LIBRARY_NAME} DESTINATION "${LIB_INSTALL_DIR}")
eric@webkit.org73771932010-06-09 20:31:37 +0000359ENDIF ()