builtins directory causes name conflict on Python 3
[WebKit-https.git] / Source / JavaScriptCore / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.12)
2 include(WebKitCommon)
3 set_property(DIRECTORY . PROPERTY FOLDER "JavaScriptCore")
4
5 list(APPEND JavaScriptCore_UNIFIED_SOURCE_LIST_FILES
6     "Sources.txt"
7 )
8
9 set(JavaScriptCore_INCLUDE_DIRECTORIES
10     "${FORWARDING_HEADERS_DIR}"
11 )
12
13 set(JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES
14     "${CMAKE_BINARY_DIR}"
15     "${JAVASCRIPTCORE_DIR}"
16     "${JAVASCRIPTCORE_DIR}/API"
17     "${JAVASCRIPTCORE_DIR}/assembler"
18     "${JAVASCRIPTCORE_DIR}/b3"
19     "${JAVASCRIPTCORE_DIR}/b3/air"
20     "${JAVASCRIPTCORE_DIR}/bindings"
21     "${JAVASCRIPTCORE_DIR}/builtins"
22     "${JAVASCRIPTCORE_DIR}/bytecode"
23     "${JAVASCRIPTCORE_DIR}/bytecompiler"
24     "${JAVASCRIPTCORE_DIR}/dfg"
25     "${JAVASCRIPTCORE_DIR}/disassembler"
26     "${JAVASCRIPTCORE_DIR}/disassembler/ARM64"
27     "${JAVASCRIPTCORE_DIR}/disassembler/udis86"
28     "${JAVASCRIPTCORE_DIR}/domjit"
29     "${JAVASCRIPTCORE_DIR}/ftl"
30     "${JAVASCRIPTCORE_DIR}/heap"
31     "${JAVASCRIPTCORE_DIR}/debugger"
32     "${JAVASCRIPTCORE_DIR}/inspector"
33     "${JAVASCRIPTCORE_DIR}/inspector/agents"
34     "${JAVASCRIPTCORE_DIR}/inspector/augmentable"
35     "${JAVASCRIPTCORE_DIR}/inspector/remote"
36     "${JAVASCRIPTCORE_DIR}/interpreter"
37     "${JAVASCRIPTCORE_DIR}/jit"
38     "${JAVASCRIPTCORE_DIR}/llint"
39     "${JAVASCRIPTCORE_DIR}/parser"
40     "${JAVASCRIPTCORE_DIR}/profiler"
41     "${JAVASCRIPTCORE_DIR}/runtime"
42     "${JAVASCRIPTCORE_DIR}/tools"
43     "${JAVASCRIPTCORE_DIR}/wasm"
44     "${JAVASCRIPTCORE_DIR}/wasm/js"
45     "${JAVASCRIPTCORE_DIR}/yarr"
46     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}"
47     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector"
48     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/runtime"
49     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr"
50 )
51
52 if (USE_CAPSTONE)
53     list(APPEND JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/capstone/Source/include")
54 endif ()
55
56 set(JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES
57     "${ICU_INCLUDE_DIRS}"
58 )
59
60 set(JavaScriptCore_OBJECT_LUT_SOURCES
61     runtime/ArrayConstructor.cpp
62     runtime/ArrayIteratorPrototype.cpp
63     runtime/AsyncGeneratorPrototype.cpp
64     runtime/BigIntConstructor.cpp
65     runtime/BigIntPrototype.cpp
66     runtime/BooleanPrototype.cpp
67     runtime/DateConstructor.cpp
68     runtime/DatePrototype.cpp
69     runtime/ErrorPrototype.cpp
70     runtime/GeneratorPrototype.cpp
71     runtime/InspectorInstrumentationObject.cpp
72     runtime/IntlCollatorConstructor.cpp
73     runtime/IntlCollatorPrototype.cpp
74     runtime/IntlDateTimeFormatConstructor.cpp
75     runtime/IntlDateTimeFormatPrototype.cpp
76     runtime/IntlNumberFormatConstructor.cpp
77     runtime/IntlNumberFormatPrototype.cpp
78     runtime/IntlPluralRulesConstructor.cpp
79     runtime/IntlPluralRulesPrototype.cpp
80     runtime/JSDataViewPrototype.cpp
81     runtime/JSGlobalObject.cpp
82     runtime/JSInternalPromiseConstructor.cpp
83     runtime/JSModuleLoader.cpp
84     runtime/JSONObject.cpp
85     runtime/JSPromiseConstructor.cpp
86     runtime/JSPromisePrototype.cpp
87     runtime/MapPrototype.cpp
88     runtime/NumberConstructor.cpp
89     runtime/NumberPrototype.cpp
90     runtime/ObjectConstructor.cpp
91     runtime/ReflectObject.cpp
92     runtime/RegExpConstructor.cpp
93     runtime/RegExpPrototype.cpp
94     runtime/SetPrototype.cpp
95     runtime/StringConstructor.cpp
96     runtime/StringIteratorPrototype.cpp
97     runtime/StringPrototype.cpp
98     runtime/SymbolConstructor.cpp
99     runtime/SymbolPrototype.cpp
100
101     wasm/js/WebAssemblyCompileErrorConstructor.cpp
102     wasm/js/WebAssemblyCompileErrorPrototype.cpp
103     wasm/js/WebAssemblyInstanceConstructor.cpp
104     wasm/js/WebAssemblyInstancePrototype.cpp
105     wasm/js/WebAssemblyLinkErrorConstructor.cpp
106     wasm/js/WebAssemblyLinkErrorPrototype.cpp
107     wasm/js/WebAssemblyMemoryConstructor.cpp
108     wasm/js/WebAssemblyMemoryPrototype.cpp
109     wasm/js/WebAssemblyModuleConstructor.cpp
110     wasm/js/WebAssemblyModulePrototype.cpp
111     wasm/js/WebAssemblyPrototype.cpp
112     wasm/js/WebAssemblyRuntimeErrorConstructor.cpp
113     wasm/js/WebAssemblyRuntimeErrorPrototype.cpp
114     wasm/js/WebAssemblyTableConstructor.cpp
115     wasm/js/WebAssemblyTablePrototype.cpp
116 )
117
118 set(JavaScriptCore_LIBRARIES
119     WTF${DEBUG_SUFFIX}
120     ${ICU_I18N_LIBRARIES}
121 )
122
123 if (USE_CAPSTONE)
124     list(APPEND JavaScriptCore_LIBRARIES capstone)
125 endif ()
126
127 if (ATOMIC_INT64_REQUIRES_LIBATOMIC)
128     list(APPEND JavaScriptCore_LIBRARIES atomic)
129 endif ()
130
131 set(JavaScriptCore_SCRIPTS_SOURCES_DIR "${JAVASCRIPTCORE_DIR}/Scripts")
132
133 # Globbing relies on the fact that generator-specific file names are prefixed with their directory.
134 # Top-level scripts should have a file extension, since they are invoked during the build.
135
136 set(JavaScriptCore_SCRIPTS_SOURCES_PATHS
137     ${JavaScriptCore_SCRIPTS_SOURCES_DIR}/*.pl
138     ${JavaScriptCore_SCRIPTS_SOURCES_DIR}/*.py
139     ${JavaScriptCore_SCRIPTS_SOURCES_DIR}/wkbuiltins/builtins*.py
140     ${JavaScriptCore_SCRIPTS_SOURCES_DIR}/wkbuiltins/wkbuiltins.py
141 )
142
143 # Force JavaScriptCore to run scripts from the same staging path as WebCore.
144 set(JavaScriptCore_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/JavaScriptCore/Scripts")
145
146 file(MAKE_DIRECTORY ${JavaScriptCore_SCRIPTS_DIR})
147
148 # The directory flattening performed below mirrors what the Mac port does with private headers.
149
150 file(GLOB JavaScriptCore_SCRIPTS_SOURCES ${JavaScriptCore_SCRIPTS_SOURCES_PATHS})
151
152 foreach (_file ${JavaScriptCore_SCRIPTS_SOURCES})
153     get_filename_component(_script "${_file}" NAME)
154     add_custom_command(
155         OUTPUT ${JavaScriptCore_SCRIPTS_DIR}/${_script}
156         MAIN_DEPENDENCY ${_file}
157         WORKING_DIRECTORY ${DERIVED_SOURCES_DIR}
158         COMMAND ${CMAKE_COMMAND} -E copy_if_different ${_file} ${JavaScriptCore_SCRIPTS_DIR}/${_script}
159         VERBATIM)
160     list(APPEND JavaScriptCore_SCRIPTS ${JavaScriptCore_SCRIPTS_DIR}/${_script})
161 endforeach ()
162
163 set(UDIS_GEN_DEP
164     disassembler/udis86/ud_opcode.py
165 )
166
167 add_custom_command(
168     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/udis86_itab.c ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/udis86_itab.h
169     DEPENDS ${UDIS_GEN_DEP}
170     WORKING_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}
171     COMMAND ${PYTHON_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/disassembler/udis86/ud_itab.py ${JAVASCRIPTCORE_DIR}/disassembler/udis86/optable.xml ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}
172     VERBATIM)
173
174 list(APPEND JavaScriptCore_HEADERS
175     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/udis86_itab.h
176 )
177
178 set(LLINT_ASM
179     llint/LowLevelInterpreter.asm
180     llint/LowLevelInterpreter32_64.asm
181     llint/LowLevelInterpreter64.asm
182 )
183
184 set(OFFLINE_ASM
185     offlineasm/arm.rb
186     offlineasm/arm64.rb
187     offlineasm/ast.rb
188     offlineasm/backends.rb
189     offlineasm/cloop.rb
190     offlineasm/config.rb
191     offlineasm/instructions.rb
192     offlineasm/mips.rb
193     offlineasm/offsets.rb
194     offlineasm/opt.rb
195     offlineasm/parser.rb
196     offlineasm/registers.rb
197     offlineasm/risc.rb
198     offlineasm/self_hash.rb
199     offlineasm/settings.rb
200     offlineasm/transform.rb
201     offlineasm/x86.rb
202 )
203
204 add_custom_command(
205     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/Bytecodes.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InitBytecodes.asm ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/BytecodeStructs.h
206     MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/generate-bytecode-files
207     DEPENDS ${JAVASCRIPTCORE_DIR}/generate-bytecode-files bytecode/BytecodeList.json
208     COMMAND ${PYTHON_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/generate-bytecode-files --bytecodes_h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/Bytecodes.h --init_bytecodes_asm ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InitBytecodes.asm --bytecode_structs_h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/BytecodeStructs.h ${JAVASCRIPTCORE_DIR}/bytecode/BytecodeList.json
209     VERBATIM)
210
211 list(APPEND JavaScriptCore_HEADERS
212     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/Bytecodes.h
213     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/BytecodeStructs.h
214 )
215
216 if (WIN32)
217   set(OFFLINE_ASM_BACKEND "X86_WIN, X86_64_WIN, C_LOOP")
218 else ()
219     if (WTF_CPU_X86)
220         set(OFFLINE_ASM_BACKEND "X86")
221     elseif (WTF_CPU_X86_64)
222         set(OFFLINE_ASM_BACKEND "X86_64")
223     elseif (WTF_CPU_ARM64)
224         set(OFFLINE_ASM_BACKEND "ARM64")
225     elseif (ARM_THUMB2_DETECTED)
226         set(OFFLINE_ASM_BACKEND "ARMv7")
227     elseif (ARM_TRADITIONAL_DETECTED)
228         set(OFFLINE_ASM_BACKEND "ARMv7_TRADITIONAL")
229     elseif (WTF_CPU_MIPS)
230         set(OFFLINE_ASM_BACKEND "MIPS")
231     endif ()
232
233     if (NOT ENABLE_JIT)
234         set(OFFLINE_ASM_BACKEND "C_LOOP")
235     endif ()
236 endif ()
237
238 add_custom_command(
239     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/LLIntDesiredOffsets.h
240     MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/offlineasm/generate_offset_extractor.rb
241     DEPENDS ${LLINT_ASM} ${OFFLINE_ASM} ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InitBytecodes.asm
242     COMMAND ${RUBY_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/offlineasm/generate_offset_extractor.rb -I${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/ ${JAVASCRIPTCORE_DIR}/llint/LowLevelInterpreter.asm ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/LLIntDesiredOffsets.h ${OFFLINE_ASM_BACKEND}
243     VERBATIM)
244
245 # We add the header files directly to the ADD_EXECUTABLE call instead of setting the
246 # OBJECT_DEPENDS property in LLIntOffsetsExtractor.cpp because generate_offset_extractor.rb and
247 # generate-bytecode-files may not regenerate the .h files in case the hash it calculates does not change.
248 # In this case, if some of the dependencies specified in the ADD_CUSTOM_COMMANDs above have
249 # changed the command will always be called because the mtime of the .h files will
250 # always be older than that of their dependencies.
251 # Additionally, setting the OBJECT_DEPENDS property will make the .h files a Makefile
252 # dependency of both LLIntOffsetsExtractor and LLIntOffsetsExtractor.cpp, so the command will
253 # actually be run multiple times!
254 add_executable(LLIntOffsetsExtractor
255     ${JAVASCRIPTCORE_DIR}/llint/LLIntOffsetsExtractor.cpp
256     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/LLIntDesiredOffsets.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/Bytecodes.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/BytecodeStructs.h
257 )
258 target_link_libraries(LLIntOffsetsExtractor WTF)
259 add_dependencies(LLIntOffsetsExtractor JavaScriptCoreForwardingHeaders)
260
261 # The build system will execute asm.rb every time LLIntOffsetsExtractor's mtime is newer than
262 # LLIntAssembly.h's mtime. The problem we have here is: asm.rb has some built-in optimization
263 # that generates a checksum of the LLIntOffsetsExtractor binary, if the checksum of the new
264 # LLIntOffsetsExtractor matches, no output is generated. To make this target consistent and avoid
265 # running this command for every build, we artificially update LLIntAssembly.h's mtime (using touch)
266 # after every asm.rb run.
267 if (MSVC AND ENABLE_JIT)
268     set(LLIntOutput LowLevelInterpreterWin.asm)
269     set(OFFLINE_ASM_ARGS --assembler=MASM)
270 else ()
271     set(LLIntOutput LLIntAssembly.h)
272 endif ()
273
274 add_custom_command(
275     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/${LLIntOutput}
276     MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/offlineasm/asm.rb
277     DEPENDS LLIntOffsetsExtractor ${LLINT_ASM} ${OFFLINE_ASM} ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InitBytecodes.asm
278     COMMAND ${RUBY_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/offlineasm/asm.rb -I${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/ ${JAVASCRIPTCORE_DIR}/llint/LowLevelInterpreter.asm $<TARGET_FILE:LLIntOffsetsExtractor> ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/${LLIntOutput} ${OFFLINE_ASM_ARGS}
279     COMMAND ${CMAKE_COMMAND} -E touch_nocreate ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/${LLIntOutput}
280     WORKING_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}
281     VERBATIM)
282
283 # The explanation for not making LLIntAssembly.h part of the OBJECT_DEPENDS property of some of
284 # the .cpp files below is similar to the one in the previous comment. However, since these .cpp
285 # files are used to build JavaScriptCore itself, we can just add LLIntAssembly.h to JSC_HEADERS
286 # since it is used in the add_library() call at the end of this file.
287 if (MSVC AND ENABLE_JIT)
288     enable_language(ASM_MASM)
289     if (CMAKE_SIZEOF_VOID_P EQUAL 4)
290         # Win32 needs /safeseh with assembly, but Win64 does not.
291         set(MASM_EXECUTABLE ml)
292         set(LLINT_MASM_FLAGS /safeseh /c /Fo)
293     else ()
294         set(MASM_EXECUTABLE ml64)
295         set(LLINT_MASM_FLAGS /c /Fo)
296     endif ()
297     add_custom_command(
298         OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/LowLevelInterpreterWin.obj
299         DEPENDS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/LowLevelInterpreterWin.asm
300         COMMAND ${MASM_EXECUTABLE} ${LLINT_MASM_FLAGS} ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/LowLevelInterpreterWin.obj ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/LowLevelInterpreterWin.asm
301         VERBATIM)
302     list(APPEND JavaScriptCore_SOURCES ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/LowLevelInterpreterWin.obj)
303 else ()
304     list(APPEND JavaScriptCore_HEADERS
305         ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/LLIntAssembly.h
306     )
307 endif ()
308
309 # WebAssembly generator
310
311 macro(GENERATE_PYTHON _generator _additional_deps _input _output)
312     add_custom_command(
313         OUTPUT ${_output}
314         MAIN_DEPENDENCY ${_generator}
315         DEPENDS ${_input} ${_additional_deps}
316         COMMAND ${PYTHON_EXECUTABLE} ${_generator} ${_input} ${_output}
317         VERBATIM)
318     list(APPEND JavaScriptCore_HEADERS ${_output})
319     WEBKIT_ADD_SOURCE_DEPENDENCIES(${_input} ${_output})
320 endmacro()
321 GENERATE_PYTHON(${CMAKE_CURRENT_SOURCE_DIR}/wasm/generateWasmOpsHeader.py ${CMAKE_CURRENT_SOURCE_DIR}/wasm/generateWasm.py ${CMAKE_CURRENT_SOURCE_DIR}/wasm/wasm.json ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/WasmOps.h)
322 GENERATE_PYTHON(${CMAKE_CURRENT_SOURCE_DIR}/wasm/generateWasmValidateInlinesHeader.py ${CMAKE_CURRENT_SOURCE_DIR}/wasm/generateWasm.py ${CMAKE_CURRENT_SOURCE_DIR}/wasm/wasm.json ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/WasmValidateInlines.h)
323 GENERATE_PYTHON(${CMAKE_CURRENT_SOURCE_DIR}/wasm/generateWasmB3IRGeneratorInlinesHeader.py ${CMAKE_CURRENT_SOURCE_DIR}/wasm/generateWasm.py ${CMAKE_CURRENT_SOURCE_DIR}/wasm/wasm.json ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/WasmB3IRGeneratorInlines.h)
324
325 # LUT generator
326
327 set(HASH_LUT_GENERATOR ${CMAKE_CURRENT_SOURCE_DIR}/create_hash_table)
328 macro(GENERATE_HASH_LUT _input _output)
329     add_custom_command(
330         OUTPUT ${_output}
331         MAIN_DEPENDENCY ${HASH_LUT_GENERATOR}
332         DEPENDS ${_input}
333         COMMAND ${PERL_EXECUTABLE} ${HASH_LUT_GENERATOR} ${_input} > ${_output}
334         VERBATIM)
335     list(APPEND JavaScriptCore_HEADERS ${_output})
336     WEBKIT_ADD_SOURCE_DEPENDENCIES(${_input} ${_output})
337 endmacro()
338
339 # GENERATOR 1-A: LUT creator
340
341 foreach (_file ${JavaScriptCore_OBJECT_LUT_SOURCES})
342     get_filename_component(_name ${_file} NAME_WE)
343     GENERATE_HASH_LUT(${CMAKE_CURRENT_SOURCE_DIR}/${_file} ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/${_name}.lut.h)
344 endforeach ()
345
346 set(JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS
347     API/JSBase.h
348     API/JSContextRef.h
349     API/JSObjectRef.h
350     API/JSStringRef.h
351     API/JSTypedArray.h
352     API/JSValueRef.h
353     API/JavaScript.h
354     API/WebKitAvailability.h
355 )
356
357 set(JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS
358     API/APICallbackFunction.h
359     API/APICast.h
360     API/APIUtils.h
361     API/JSAPIValueWrapper.h
362     API/JSAPIWrapperObject.h
363     API/JSBasePrivate.h
364     API/JSCTestRunnerUtils.h
365     API/JSCallbackConstructor.h
366     API/JSCallbackFunction.h
367     API/JSCallbackObject.h
368     API/JSCallbackObjectFunctions.h
369     API/JSClassRef.h
370     API/JSContextInternal.h
371     API/JSContextPrivate.h
372     API/JSContextRefInspectorSupport.h
373     API/JSContextRefInternal.h
374     API/JSContextRefPrivate.h
375     API/JSHeapFinalizerPrivate.h
376     API/JSManagedValueInternal.h
377     API/JSMarkingConstraintPrivate.h
378     API/JSObjectRefPrivate.h
379     API/JSRemoteInspector.h
380     API/JSRetainPtr.h
381     API/JSScriptRefPrivate.h
382     API/JSStringRefPrivate.h
383     API/JSValueInternal.h
384     API/JSVirtualMachineInternal.h
385     API/JSWeakObjectMapRefInternal.h
386     API/JSWeakObjectMapRefPrivate.h
387     API/JSWeakPrivate.h
388     API/JSWrapperMap.h
389     API/ObjCCallbackFunction.h
390     API/ObjcRuntimeExtras.h
391     API/OpaqueJSString.h
392
393     assembler/ARM64Assembler.h
394     assembler/ARMAssembler.h
395     assembler/ARMv7Assembler.h
396     assembler/AbortReason.h
397     assembler/AbstractMacroAssembler.h
398     assembler/AssemblerBuffer.h
399     assembler/AssemblerBufferWithConstantPool.h
400     assembler/AssemblerCommon.h
401     assembler/CPU.h
402     assembler/CodeLocation.h
403     assembler/LinkBuffer.h
404     assembler/MIPSAssembler.h
405     assembler/MacroAssembler.h
406     assembler/MacroAssemblerARM.h
407     assembler/MacroAssemblerARM64.h
408     assembler/MacroAssemblerARMv7.h
409     assembler/MacroAssemblerCodeRef.h
410     assembler/MacroAssemblerHelpers.h
411     assembler/MacroAssemblerMIPS.h
412     assembler/MacroAssemblerX86.h
413     assembler/MacroAssemblerX86Common.h
414     assembler/MacroAssemblerX86_64.h
415     assembler/Printer.h
416     assembler/X86Assembler.h
417
418     bindings/ScriptFunctionCall.h
419     bindings/ScriptObject.h
420     bindings/ScriptValue.h
421
422     builtins/BuiltinNames.h
423     builtins/BuiltinUtils.h
424
425     bytecode/ArrayAllocationProfile.h
426     bytecode/ArrayProfile.h
427     bytecode/ByValInfo.h
428     bytecode/BytecodeConventions.h
429     bytecode/BytecodeIntrinsicRegistry.h
430     bytecode/CallEdge.h
431     bytecode/CallLinkInfo.h
432     bytecode/CallMode.h
433     bytecode/CallVariant.h
434     bytecode/CodeBlock.h
435     bytecode/CodeBlockHash.h
436     bytecode/CodeOrigin.h
437     bytecode/CodeType.h
438     bytecode/DFGExitProfile.h
439     bytecode/DataFormat.h
440     bytecode/DirectEvalCodeCache.h
441     bytecode/ExecutableInfo.h
442     bytecode/ExecutableToCodeBlockEdge.h
443     bytecode/ExecutionCounter.h
444     bytecode/ExitKind.h
445     bytecode/ExitingInlineKind.h
446     bytecode/ExitingJITType.h
447     bytecode/ExpressionRangeInfo.h
448     bytecode/HandlerInfo.h
449     bytecode/ICStatusMap.h
450     bytecode/InlineCallFrame.h
451     bytecode/Instruction.h
452     bytecode/InternalFunctionAllocationProfile.h
453     bytecode/JumpTable.h
454     bytecode/LLIntCallLinkInfo.h
455     bytecode/LLIntPrototypeLoadAdaptiveStructureWatchpoint.h
456     bytecode/LazyOperandValueProfile.h
457     bytecode/ObjectAllocationProfile.h
458     bytecode/ObjectPropertyCondition.h
459     bytecode/PropertyCondition.h
460     bytecode/PutByIdFlags.h
461     bytecode/SpecialPointer.h
462     bytecode/SpeculatedType.h
463     bytecode/StructureSet.h
464     bytecode/SuperSampler.h
465     bytecode/ToThisStatus.h
466     bytecode/TypeLocation.h
467     bytecode/UnlinkedCodeBlock.h
468     bytecode/UnlinkedEvalCodeBlock.h
469     bytecode/UnlinkedFunctionExecutable.h
470     bytecode/UnlinkedGlobalCodeBlock.h
471     bytecode/ValueProfile.h
472     bytecode/ValueRecovery.h
473     bytecode/VariableWriteFireDetail.h
474     bytecode/VirtualRegister.h
475     bytecode/Watchpoint.h
476
477     debugger/Breakpoint.h
478     debugger/Debugger.h
479     debugger/DebuggerCallFrame.h
480     debugger/DebuggerParseData.h
481     debugger/DebuggerPrimitives.h
482
483     dfg/DFGCommon.h
484     dfg/DFGCompilationMode.h
485     dfg/DFGMinifiedID.h
486
487     domjit/DOMJITAbstractHeap.h
488     domjit/DOMJITCallDOMGetterSnippet.h
489     domjit/DOMJITEffect.h
490     domjit/DOMJITGetterSetter.h
491     domjit/DOMJITHeapRange.h
492     domjit/DOMJITSignature.h
493
494     heap/AlignedMemoryAllocator.h
495     heap/AllocationFailureMode.h
496     heap/Allocator.h
497     heap/AllocatorInlines.h
498     heap/AllocatorForMode.h
499     heap/BlockDirectory.h
500     heap/BlockDirectoryInlines.h
501     heap/CellAttributes.h
502     heap/CellContainer.h
503     heap/CellContainerInlines.h
504     heap/CellState.h
505     heap/CollectionScope.h
506     heap/CollectorPhase.h
507     heap/CompleteSubspace.h
508     heap/CompleteSubspaceInlines.h
509     heap/ConstraintConcurrency.h
510     heap/ConstraintParallelism.h
511     heap/ConstraintVolatility.h
512     heap/DeferGC.h
513     heap/DeleteAllCodeEffort.h
514     heap/DestructionMode.h
515     heap/FastMallocAlignedMemoryAllocator.h
516     heap/FreeList.h
517     heap/FreeListInlines.h
518     heap/GCActivityCallback.h
519     heap/GCAssertions.h
520     heap/GCConductor.h
521     heap/GCDeferralContext.h
522     heap/GCIncomingRefCounted.h
523     heap/GCIncomingRefCountedInlines.h
524     heap/GCIncomingRefCountedSet.h
525     heap/GCLogging.h
526     heap/GCRequest.h
527     heap/GCSegmentedArray.h
528     heap/Handle.h
529     heap/HandleBlock.h
530     heap/HandleSet.h
531     heap/HandleTypes.h
532     heap/Heap.h
533     heap/HeapCell.h
534     heap/HeapCellInlines.h
535     heap/HeapCellType.h
536     heap/HeapFinalizerCallback.h
537     heap/HeapInlines.h
538     heap/HeapObserver.h
539     heap/HeapSnapshotBuilder.h
540     heap/IncrementalSweeper.h
541     heap/IsoCellSet.h
542     heap/IsoSubspace.h
543     heap/IsoSubspaceInlines.h
544     heap/IsoSubspacePerVM.h
545     heap/LargeAllocation.h
546     heap/LocalAllocator.h
547     heap/LocalAllocatorInlines.h
548     heap/LockDuringMarking.h
549     heap/MachineStackMarker.h
550     heap/MarkStack.h
551     heap/MarkedBlock.h
552     heap/MarkedBlockInlines.h
553     heap/MarkedBlockSet.h
554     heap/MarkedSpace.h
555     heap/MarkingConstraint.h
556     heap/MutatorState.h
557     heap/RegisterState.h
558     heap/RunningScope.h
559     heap/SimpleMarkingConstraint.h
560     heap/SlotVisitor.h
561     heap/SlotVisitorInlines.h
562     heap/Strong.h
563     heap/StrongInlines.h
564     heap/Subspace.h
565     heap/SubspaceInlines.h
566     heap/Synchronousness.h
567     heap/TinyBloomFilter.h
568     heap/VisitRaceKey.h
569     heap/Weak.h
570     heap/WeakBlock.h
571     heap/WeakHandleOwner.h
572     heap/WeakImpl.h
573     heap/WeakInlines.h
574     heap/WeakSet.h
575     heap/WeakSetInlines.h
576
577     inspector/ConsoleMessage.h
578     inspector/ContentSearchUtilities.h
579     inspector/IdentifiersFactory.h
580     inspector/InjectedScript.h
581     inspector/InjectedScriptBase.h
582     inspector/InjectedScriptHost.h
583     inspector/InjectedScriptManager.h
584     inspector/InjectedScriptModule.h
585     inspector/InspectorAgentBase.h
586     inspector/InspectorAgentRegistry.h
587     inspector/InspectorBackendDispatcher.h
588     inspector/InspectorEnvironment.h
589     inspector/InspectorFrontendChannel.h
590     inspector/InspectorFrontendRouter.h
591     inspector/InspectorProtocolTypes.h
592     inspector/PerGlobalObjectWrapperWorld.h
593     inspector/ScriptArguments.h
594     inspector/ScriptBreakpoint.h
595     inspector/ScriptCallFrame.h
596     inspector/ScriptCallStack.h
597     inspector/ScriptCallStackFactory.h
598     inspector/ScriptDebugListener.h
599     inspector/ScriptDebugServer.h
600
601     inspector/agents/InspectorAgent.h
602     inspector/agents/InspectorConsoleAgent.h
603     inspector/agents/InspectorDebuggerAgent.h
604     inspector/agents/InspectorHeapAgent.h
605     inspector/agents/InspectorRuntimeAgent.h
606     inspector/agents/InspectorScriptProfilerAgent.h
607
608     inspector/augmentable/AugmentableInspectorControllerClient.h
609
610     inspector/remote/RemoteAutomationTarget.h
611     inspector/remote/RemoteControllableTarget.h
612     inspector/remote/RemoteInspectionTarget.h
613     inspector/remote/RemoteInspector.h
614
615     interpreter/AbstractPC.h
616     interpreter/CallFrame.h
617     interpreter/CallFrameInlines.h
618     interpreter/CalleeBits.h
619     interpreter/EntryFrame.h
620     interpreter/FrameTracers.h
621     interpreter/Register.h
622     interpreter/ShadowChicken.h
623     interpreter/StackVisitor.h
624     interpreter/VMEntryRecord.h
625
626     jit/AssemblyHelpers.h
627     jit/CCallHelpers.h
628     jit/ExecutableAllocator.h
629     jit/FPRInfo.h
630     jit/GCAwareJITStubRoutine.h
631     jit/GPRInfo.h
632     jit/JITAllocator.h
633     jit/JITCode.h
634     jit/JITCodeMap.h
635     jit/JITCompilationEffort.h
636     jit/JITMathICForwards.h
637     jit/JITOperations.h
638     jit/JITStubRoutine.h
639     jit/JITThunks.h
640     jit/PolymorphicCallStubRoutine.h
641     jit/Reg.h
642     jit/RegisterAtOffset.h
643     jit/RegisterAtOffsetList.h
644     jit/RegisterSet.h
645     jit/Snippet.h
646     jit/SnippetParams.h
647     jit/SnippetReg.h
648     jit/SnippetSlowPathCalls.h
649     jit/SpillRegistersMode.h
650     jit/TagRegistersMode.h
651     jit/TempRegisterSet.h
652     jit/ThunkGenerator.h
653     jit/UnusedPointer.h
654
655     parser/ParserError.h
656     parser/ParserModes.h
657     parser/ParserTokens.h
658     parser/SourceCode.h
659     parser/SourceProvider.h
660     parser/SourceProviderCache.h
661     parser/SourceProviderCacheItem.h
662     parser/UnlinkedSourceCode.h
663     parser/VariableEnvironment.h
664
665     profiler/ProfilerBytecode.h
666     profiler/ProfilerBytecodeSequence.h
667     profiler/ProfilerBytecodes.h
668     profiler/ProfilerCompilation.h
669     profiler/ProfilerCompilationKind.h
670     profiler/ProfilerCompiledBytecode.h
671     profiler/ProfilerDatabase.h
672     profiler/ProfilerEvent.h
673     profiler/ProfilerExecutionCounter.h
674     profiler/ProfilerJettisonReason.h
675     profiler/ProfilerOSRExit.h
676     profiler/ProfilerOSRExitSite.h
677     profiler/ProfilerOrigin.h
678     profiler/ProfilerOriginStack.h
679     profiler/ProfilerProfiledBytecodes.h
680     profiler/ProfilerUID.h
681
682     runtime/AbstractModuleRecord.h
683     runtime/ArgList.h
684     runtime/ArityCheckMode.h
685     runtime/ArrayBuffer.h
686     runtime/ArrayBufferSharingMode.h
687     runtime/ArrayBufferView.h
688     runtime/ArrayConventions.h
689     runtime/ArrayPrototype.h
690     runtime/ArrayStorage.h
691     runtime/AuxiliaryBarrier.h
692     runtime/AuxiliaryBarrierInlines.h
693     runtime/BasicBlockLocation.h
694     runtime/BatchedTransitionOptimizer.h
695     runtime/BigIntPrototype.h
696     runtime/BooleanObject.h
697     runtime/BooleanPrototype.h
698     runtime/Butterfly.h
699     runtime/ButterflyInlines.h
700     runtime/CagedBarrierPtr.h
701     runtime/CallData.h
702     runtime/CatchScope.h
703     runtime/ClassInfo.h
704     runtime/CodeSpecializationKind.h
705     runtime/CommonIdentifiers.h
706     runtime/CompilationResult.h
707     runtime/Completion.h
708     runtime/ConcurrentJSLock.h
709     runtime/ConfigFile.h
710     runtime/ConsoleClient.h
711     runtime/ConsoleTypes.h
712     runtime/ConstantMode.h
713     runtime/ConstructAbility.h
714     runtime/ConstructData.h
715     runtime/ControlFlowProfiler.h
716     runtime/CustomGetterSetter.h
717     runtime/DOMAnnotation.h
718     runtime/DOMAttributeGetterSetter.h
719     runtime/DataView.h
720     runtime/DateInstance.h
721     runtime/DateInstanceCache.h
722     runtime/DefinePropertyAttributes.h
723     runtime/DirectArgumentsOffset.h
724     runtime/DirectEvalExecutable.h
725     runtime/DisallowScope.h
726     runtime/DisallowVMReentry.h
727     runtime/DumpContext.h
728     runtime/EnumerationMode.h
729     runtime/Error.h
730     runtime/ErrorHandlingScope.h
731     runtime/ErrorInstance.h
732     runtime/ErrorPrototype.h
733     runtime/EvalExecutable.h
734     runtime/Exception.h
735     runtime/ExceptionEventLocation.h
736     runtime/ExceptionHelpers.h
737     runtime/ExceptionScope.h
738     runtime/ExecutableBase.h
739     runtime/Float32Array.h
740     runtime/Float64Array.h
741     runtime/FunctionConstructor.h
742     runtime/FunctionExecutable.h
743     runtime/FunctionHasExecutedCache.h
744     runtime/FunctionPrototype.h
745     runtime/FunctionRareData.h
746     runtime/GenericOffset.h
747     runtime/GenericTypedArrayView.h
748     runtime/GenericTypedArrayViewInlines.h
749     runtime/GetPutInfo.h
750     runtime/HashMapImpl.h
751     runtime/Identifier.h
752     runtime/IdentifierInlines.h
753     runtime/IndexingHeader.h
754     runtime/IndexingHeaderInlines.h
755     runtime/IndexingType.h
756     runtime/InferredStructure.h
757     runtime/InferredStructureWatchpoint.h
758     runtime/InferredType.h
759     runtime/InferredTypeTable.h
760     runtime/InferredValue.h
761     runtime/InitializeThreading.h
762     runtime/Int16Array.h
763     runtime/Int32Array.h
764     runtime/Int8Array.h
765     runtime/InternalFunction.h
766     runtime/Intrinsic.h
767     runtime/IterationKind.h
768     runtime/IterationStatus.h
769     runtime/IteratorOperations.h
770     runtime/IteratorPrototype.h
771     runtime/JSArray.h
772     runtime/JSArrayBuffer.h
773     runtime/JSArrayBufferPrototype.h
774     runtime/JSArrayBufferView.h
775     runtime/JSArrayBufferViewInlines.h
776     runtime/JSBigInt.h
777     runtime/JSCInlines.h
778     runtime/JSCJSValue.h
779     runtime/JSCJSValueInlines.h
780     runtime/JSCPoison.h
781     runtime/JSCPtrTag.h
782     runtime/JSCallee.h
783     runtime/JSCast.h
784     runtime/JSCell.h
785     runtime/JSCellInlines.h
786     runtime/JSDataView.h
787     runtime/JSDestructibleObject.h
788     runtime/JSDestructibleObjectHeapCellType.h
789     runtime/JSExportMacros.h
790     runtime/JSFunction.h
791     runtime/JSFunctionInlines.h
792     runtime/JSGenericTypedArrayView.h
793     runtime/JSGenericTypedArrayViewInlines.h
794     runtime/JSGenericTypedArrayViewPrototype.h
795     runtime/JSGenericTypedArrayViewPrototypeInlines.h
796     runtime/JSGlobalLexicalEnvironment.h
797     runtime/JSGlobalObject.h
798     runtime/JSGlobalObjectInlines.h
799     runtime/JSInternalPromise.h
800     runtime/JSInternalPromiseDeferred.h
801     runtime/JSMicrotask.h
802     runtime/JSLock.h
803     runtime/JSMap.h
804     runtime/JSMapIterator.h
805     runtime/JSModuleLoader.h
806     runtime/JSModuleRecord.h
807     runtime/JSNativeStdFunction.h
808     runtime/JSONObject.h
809     runtime/JSObject.h
810     runtime/JSObjectInlines.h
811     runtime/JSPromise.h
812     runtime/JSPromiseConstructor.h
813     runtime/JSPromiseDeferred.h
814     runtime/JSProxy.h
815     runtime/JSRunLoopTimer.h
816     runtime/JSScope.h
817     runtime/JSScriptFetchParameters.h
818     runtime/JSScriptFetcher.h
819     runtime/JSSegmentedVariableObject.h
820     runtime/JSSegmentedVariableObjectHeapCellType.h
821     runtime/JSSet.h
822     runtime/JSSetIterator.h
823     runtime/JSSourceCode.h
824     runtime/JSString.h
825     runtime/JSStringInlines.h
826     runtime/JSSymbolTableObject.h
827     runtime/JSType.h
828     runtime/JSTypeInfo.h
829     runtime/JSTypedArrays.h
830     runtime/JSWithScope.h
831     runtime/JSWrapperObject.h
832     runtime/LazyClassStructure.h
833     runtime/LazyProperty.h
834     runtime/Lookup.h
835     runtime/MatchResult.h
836     runtime/MathCommon.h
837     runtime/MemoryStatistics.h
838     runtime/Microtask.h
839     runtime/ModuleProgramExecutable.h
840     runtime/NativeExecutable.h
841     runtime/NativeFunction.h
842     runtime/NumberObject.h
843     runtime/NumberPrototype.h
844     runtime/NumericStrings.h
845     runtime/ObjectConstructor.h
846     runtime/ObjectInitializationScope.h
847     runtime/ObjectPrototype.h
848     runtime/Operations.h
849     runtime/Options.h
850     runtime/ParseInt.h
851     runtime/PrivateName.h
852     runtime/ProgramExecutable.h
853     runtime/PromiseDeferredTimer.h
854     runtime/PropertyDescriptor.h
855     runtime/PropertyMapHashTable.h
856     runtime/PropertyName.h
857     runtime/PropertyNameArray.h
858     runtime/PropertyOffset.h
859     runtime/PropertySlot.h
860     runtime/PropertyStorage.h
861     runtime/Protect.h
862     runtime/PrototypeKey.h
863     runtime/PureNaN.h
864     runtime/PutDirectIndexMode.h
865     runtime/PutPropertySlot.h
866     runtime/RegExp.h
867     runtime/RegExpKey.h
868     runtime/RegExpObject.h
869     runtime/RuntimeFlags.h
870     runtime/RuntimeType.h
871     runtime/SamplingProfiler.h
872     runtime/ScopeOffset.h
873     runtime/ScopedArgumentsTable.h
874     runtime/ScriptExecutable.h
875     runtime/ScriptFetchParameters.h
876     runtime/ScriptFetcher.h
877     runtime/SlowPathReturnType.h
878     runtime/SmallStrings.h
879     runtime/SourceOrigin.h
880     runtime/SparseArrayValueMap.h
881     runtime/StackAlignment.h
882     runtime/StackFrame.h
883     runtime/StringObject.h
884     runtime/StringPrototype.h
885     runtime/Structure.h
886     runtime/StructureCache.h
887     runtime/StructureChain.h
888     runtime/StructureIDBlob.h
889     runtime/StructureIDTable.h
890     runtime/StructureInlines.h
891     runtime/StructureRareData.h
892     runtime/StructureRareDataInlines.h
893     runtime/StructureTransitionTable.h
894     runtime/Symbol.h
895     runtime/SymbolPrototype.h
896     runtime/SymbolTable.h
897     runtime/TemplateObjectDescriptor.h
898     runtime/TestRunnerUtils.h
899     runtime/ThrowScope.h
900     runtime/ToNativeFromValue.h
901     runtime/TypeError.h
902     runtime/TypeSet.h
903     runtime/TypedArrayAdaptors.h
904     runtime/TypedArrayController.h
905     runtime/TypedArrayInlines.h
906     runtime/TypedArrayType.h
907     runtime/TypedArrays.h
908     runtime/TypeofType.h
909     runtime/Uint16Array.h
910     runtime/Uint32Array.h
911     runtime/Uint8Array.h
912     runtime/Uint8ClampedArray.h
913     runtime/VM.h
914     runtime/VMEntryScope.h
915     runtime/VMInlines.h
916     runtime/VMTraps.h
917     runtime/VarOffset.h
918     runtime/Watchdog.h
919     runtime/WeakGCMap.h
920     runtime/WeakGCMapInlines.h
921     runtime/WriteBarrier.h
922     runtime/WriteBarrierInlines.h
923
924     wasm/WasmCodeBlock.h
925     wasm/WasmContext.h
926     wasm/WasmEmbedder.h
927     wasm/WasmExceptionType.h
928     wasm/WasmFaultSignalHandler.h
929     wasm/WasmIndexOrName.h
930     wasm/WasmMemory.h
931     wasm/WasmMemoryMode.h
932     wasm/WasmModule.h
933     wasm/WasmName.h
934     wasm/WasmNameSection.h
935     wasm/WasmPageCount.h
936     wasm/WasmTierUpCount.h
937
938     wasm/js/JSWebAssemblyModule.h
939     wasm/js/WebAssemblyPrototype.h
940
941
942     yarr/RegularExpression.h
943     yarr/Yarr.h
944     yarr/YarrErrorCode.h
945     yarr/YarrInterpreter.h
946     yarr/YarrJIT.h
947     yarr/YarrParser.h
948     yarr/YarrPattern.h
949     yarr/YarrUnicodeProperties.h
950 )
951
952 # GENERATOR 1-B: particular LUT creator (for 1 file only)
953 GENERATE_HASH_LUT(${CMAKE_CURRENT_SOURCE_DIR}/parser/Keywords.table ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/Lexer.lut.h)
954
955 file(MAKE_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr)
956
957 #GENERATOR: "RegExpJitTables.h": tables used by Yarr
958 add_custom_command(
959     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/RegExpJitTables.h
960     MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/yarr/create_regex_tables
961     COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/yarr/create_regex_tables ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/RegExpJitTables.h
962     VERBATIM)
963 list(APPEND JavaScriptCore_HEADERS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/RegExpJitTables.h)
964 WEBKIT_ADD_SOURCE_DEPENDENCIES(${CMAKE_CURRENT_SOURCE_DIR}/yarr/YarrPattern.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/RegExpJitTables.h)
965
966 add_custom_command(
967     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/UnicodePatternTables.h
968     MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/yarr/generateYarrUnicodePropertyTables.py
969     DEPENDS ${JAVASCRIPTCORE_DIR}/yarr/hasher.py ${JAVASCRIPTCORE_DIR}/ucd/DerivedBinaryProperties.txt ${JAVASCRIPTCORE_DIR}/ucd/DerivedCoreProperties.txt ${JAVASCRIPTCORE_DIR}/ucd/DerivedNormalizationProps.txt ${JAVASCRIPTCORE_DIR}/ucd/PropList.txt ${JAVASCRIPTCORE_DIR}/ucd/PropertyAliases.txt ${JAVASCRIPTCORE_DIR}/ucd/PropertyValueAliases.txt ${JAVASCRIPTCORE_DIR}/ucd/ScriptExtensions.txt ${JAVASCRIPTCORE_DIR}/ucd/Scripts.txt ${JAVASCRIPTCORE_DIR}/ucd/UnicodeData.txt ${JAVASCRIPTCORE_DIR}/ucd/emoji-data.txt
970     COMMAND ${PYTHON_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/yarr/generateYarrUnicodePropertyTables.py ${JAVASCRIPTCORE_DIR}/ucd ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/UnicodePatternTables.h
971     VERBATIM)
972 list(APPEND JavaScriptCore_HEADERS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/UnicodePatternTables.h)
973 WEBKIT_ADD_SOURCE_DEPENDENCIES(${CMAKE_CURRENT_SOURCE_DIR}/yarr/UnicodePatternTables.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/UnicodePatternTables.h)
974
975 add_custom_command(
976     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/YarrCanonicalizeUnicode.cpp
977     MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/yarr/generateYarrCanonicalizeUnicode
978     DEPENDS ${JAVASCRIPTCORE_DIR}/ucd/CaseFolding.txt
979     COMMAND ${PYTHON_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/yarr/generateYarrCanonicalizeUnicode ${JAVASCRIPTCORE_DIR}/ucd/CaseFolding.txt ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/yarr/YarrCanonicalizeUnicode.cpp
980     VERBATIM)
981
982 #GENERATOR: "IntlCanonicalizeLanguage.h": tables used by Intl
983 add_custom_command(
984     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/IntlCanonicalizeLanguage.h
985     MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/Scripts/generateIntlCanonicalizeLanguage.py
986     DEPENDS ${JAVASCRIPTCORE_DIR}/ucd/language-subtag-registry.txt
987     COMMAND ${PYTHON_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/Scripts/generateIntlCanonicalizeLanguage.py ${JAVASCRIPTCORE_DIR}/ucd/language-subtag-registry.txt ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/IntlCanonicalizeLanguage.h
988     VERBATIM)
989 list(APPEND JavaScriptCore_HEADERS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/IntlCanonicalizeLanguage.h)
990 WEBKIT_ADD_SOURCE_DEPENDENCIES(${CMAKE_CURRENT_SOURCE_DIR}/runtime/IntlObject.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/IntlCanonicalizeLanguage.h)
991
992 #GENERATOR: "KeywordLookup.h": keyword decision tree used by the lexer
993 add_custom_command(
994     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/KeywordLookup.h
995     MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/KeywordLookupGenerator.py
996     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/parser/Keywords.table
997     COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/KeywordLookupGenerator.py ${CMAKE_CURRENT_SOURCE_DIR}/parser/Keywords.table > ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/KeywordLookup.h
998     VERBATIM)
999 list(APPEND JavaScriptCore_HEADERS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/KeywordLookup.h)
1000 WEBKIT_ADD_SOURCE_DEPENDENCIES(${CMAKE_CURRENT_SOURCE_DIR}/parser/Lexer.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/KeywordLookup.h)
1001
1002
1003 # Inspector Interfaces
1004
1005 set(JavaScriptCore_INSPECTOR_SCRIPTS_DIR "${JAVASCRIPTCORE_DIR}/inspector/scripts")
1006
1007 set(JavaScriptCore_INSPECTOR_PROTOCOL_SCRIPTS
1008     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/generate-inspector-protocol-bindings.py
1009     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/cpp_generator.py
1010     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/cpp_generator_templates.py
1011     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_js_backend_commands.py
1012     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_cpp_backend_dispatcher_header.py
1013     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_cpp_backend_dispatcher_implementation.py
1014     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_cpp_frontend_dispatcher_header.py
1015     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_cpp_frontend_dispatcher_implementation.py
1016     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_cpp_protocol_types_header.py
1017     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generate_cpp_protocol_types_implementation.py
1018     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generator.py
1019     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/generator_templates.py
1020     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/__init__.py
1021     ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/codegen/models.py
1022 )
1023
1024 set(JavaScriptCore_INSPECTOR_DOMAINS
1025     ${JAVASCRIPTCORE_DIR}/inspector/protocol/ApplicationCache.json
1026     ${JAVASCRIPTCORE_DIR}/inspector/protocol/CSS.json
1027     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Canvas.json
1028     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Console.json
1029     ${JAVASCRIPTCORE_DIR}/inspector/protocol/DOM.json
1030     ${JAVASCRIPTCORE_DIR}/inspector/protocol/DOMDebugger.json
1031     ${JAVASCRIPTCORE_DIR}/inspector/protocol/DOMStorage.json
1032     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Database.json
1033     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Debugger.json
1034     ${JAVASCRIPTCORE_DIR}/inspector/protocol/GenericTypes.json
1035     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Heap.json
1036     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Inspector.json
1037     ${JAVASCRIPTCORE_DIR}/inspector/protocol/LayerTree.json
1038     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Network.json
1039     ${JAVASCRIPTCORE_DIR}/inspector/protocol/OverlayTypes.json
1040     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Page.json
1041     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Recording.json
1042     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Runtime.json
1043     ${JAVASCRIPTCORE_DIR}/inspector/protocol/ScriptProfiler.json
1044     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Timeline.json
1045     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Worker.json
1046 )
1047
1048 if (ENABLE_INDEXED_DATABASE)
1049     list(APPEND JavaScriptCore_INSPECTOR_DOMAINS
1050         ${JAVASCRIPTCORE_DIR}/inspector/protocol/IndexedDB.json
1051     )
1052 endif ()
1053
1054 if (ENABLE_RESOURCE_USAGE)
1055     list(APPEND JavaScriptCore_INSPECTOR_DOMAINS
1056         ${JAVASCRIPTCORE_DIR}/inspector/protocol/Memory.json
1057     )
1058 endif ()
1059
1060 if (ENABLE_SERVICE_WORKER)
1061     list(APPEND JavaScriptCore_INSPECTOR_DOMAINS
1062         ${JAVASCRIPTCORE_DIR}/inspector/protocol/ServiceWorker.json
1063     )
1064 endif ()
1065
1066 add_custom_command(
1067     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/CombinedDomains.json
1068     MAIN_DEPENDENCY ${JavaScriptCore_SCRIPTS_DIR}/generate-combined-inspector-json.py
1069     DEPENDS ${JavaScriptCore_INSPECTOR_DOMAINS}
1070     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/generate-combined-inspector-json.py ${JavaScriptCore_INSPECTOR_DOMAINS} > ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/CombinedDomains.json
1071     VERBATIM)
1072
1073 # Inspector Backend Dispatchers, Frontend Dispatchers, Type Builders
1074 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol)
1075 file(MAKE_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector)
1076 add_custom_command(
1077     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendDispatchers.cpp
1078            ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendDispatchers.h
1079            ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorFrontendDispatchers.cpp
1080            ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorFrontendDispatchers.h
1081            ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorProtocolObjects.cpp
1082            ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorProtocolObjects.h
1083            ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js
1084     MAIN_DEPENDENCY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/CombinedDomains.json
1085     DEPENDS ${JavaScriptCore_INSPECTOR_PROTOCOL_SCRIPTS}
1086     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_INSPECTOR_SCRIPTS_DIR}/generate-inspector-protocol-bindings.py --outputDir "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector" --framework JavaScriptCore ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/CombinedDomains.json
1087     VERBATIM)
1088
1089 # JSCBuiltins
1090
1091 set(BUILTINS_GENERATOR_SCRIPTS
1092     ${JavaScriptCore_SCRIPTS_DIR}/wkbuiltins.py
1093     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generator.py
1094     ${JavaScriptCore_SCRIPTS_DIR}/builtins_model.py
1095     ${JavaScriptCore_SCRIPTS_DIR}/builtins_templates.py
1096     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_combined_header.py
1097     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_combined_implementation.py
1098     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_separate_header.py
1099     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_separate_implementation.py
1100     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_wrapper_header.py
1101     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_wrapper_implementation.py
1102     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_internals_wrapper_header.py
1103     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_internals_wrapper_implementation.py
1104     ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py
1105     ${JavaScriptCore_SCRIPTS_DIR}/lazywriter.py
1106 )
1107
1108 set(JavaScriptCore_BUILTINS_SOURCES
1109     ${JAVASCRIPTCORE_DIR}/builtins/AsyncFromSyncIteratorPrototype.js
1110     ${JAVASCRIPTCORE_DIR}/builtins/ArrayConstructor.js
1111     ${JAVASCRIPTCORE_DIR}/builtins/ArrayIteratorPrototype.js
1112     ${JAVASCRIPTCORE_DIR}/builtins/ArrayPrototype.js
1113     ${JAVASCRIPTCORE_DIR}/builtins/AsyncFunctionPrototype.js
1114     ${JAVASCRIPTCORE_DIR}/builtins/AsyncIteratorPrototype.js
1115     ${JAVASCRIPTCORE_DIR}/builtins/AsyncGeneratorPrototype.js
1116     ${JAVASCRIPTCORE_DIR}/builtins/DatePrototype.js
1117     ${JAVASCRIPTCORE_DIR}/builtins/FunctionPrototype.js
1118     ${JAVASCRIPTCORE_DIR}/builtins/GeneratorPrototype.js
1119     ${JAVASCRIPTCORE_DIR}/builtins/GlobalObject.js
1120     ${JAVASCRIPTCORE_DIR}/builtins/GlobalOperations.js
1121     ${JAVASCRIPTCORE_DIR}/builtins/InspectorInstrumentationObject.js
1122     ${JAVASCRIPTCORE_DIR}/builtins/InternalPromiseConstructor.js
1123     ${JAVASCRIPTCORE_DIR}/builtins/IteratorHelpers.js
1124     ${JAVASCRIPTCORE_DIR}/builtins/IteratorPrototype.js
1125     ${JAVASCRIPTCORE_DIR}/builtins/MapIteratorPrototype.js
1126     ${JAVASCRIPTCORE_DIR}/builtins/MapPrototype.js
1127     ${JAVASCRIPTCORE_DIR}/builtins/ModuleLoader.js
1128     ${JAVASCRIPTCORE_DIR}/builtins/NumberConstructor.js
1129     ${JAVASCRIPTCORE_DIR}/builtins/NumberPrototype.js
1130     ${JAVASCRIPTCORE_DIR}/builtins/ObjectConstructor.js
1131     ${JAVASCRIPTCORE_DIR}/builtins/PromiseConstructor.js
1132     ${JAVASCRIPTCORE_DIR}/builtins/PromiseOperations.js
1133     ${JAVASCRIPTCORE_DIR}/builtins/PromisePrototype.js
1134     ${JAVASCRIPTCORE_DIR}/builtins/ReflectObject.js
1135     ${JAVASCRIPTCORE_DIR}/builtins/RegExpPrototype.js
1136     ${JAVASCRIPTCORE_DIR}/builtins/SetIteratorPrototype.js
1137     ${JAVASCRIPTCORE_DIR}/builtins/SetPrototype.js
1138     ${JAVASCRIPTCORE_DIR}/builtins/StringConstructor.js
1139     ${JAVASCRIPTCORE_DIR}/builtins/StringIteratorPrototype.js
1140     ${JAVASCRIPTCORE_DIR}/builtins/StringPrototype.js
1141     ${JAVASCRIPTCORE_DIR}/builtins/TypedArrayConstructor.js
1142     ${JAVASCRIPTCORE_DIR}/builtins/TypedArrayPrototype.js
1143     ${JAVASCRIPTCORE_DIR}/builtins/WebAssemblyPrototype.js
1144 )
1145
1146 add_custom_command(
1147     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/JSCBuiltins.cpp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/JSCBuiltins.h
1148     MAIN_DEPENDENCY ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py
1149     DEPENDS ${JavaScriptCore_BUILTINS_SOURCES} ${BUILTINS_GENERATOR_SCRIPTS}
1150     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py --framework JavaScriptCore --output-directory ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR} --combined ${JavaScriptCore_BUILTINS_SOURCES}
1151     VERBATIM)
1152
1153 list(APPEND JavaScriptCore_HEADERS
1154     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendDispatchers.h
1155     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorFrontendDispatchers.h
1156     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorProtocolObjects.h
1157     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/JSCBuiltins.h
1158 )
1159
1160 add_custom_command(
1161     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/AirOpcode.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/AirOpcodeGenerated.h
1162     MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/b3/air/AirOpcode.opcodes
1163     DEPENDS ${JAVASCRIPTCORE_DIR}/b3/air/opcode_generator.rb
1164     COMMAND ${RUBY_EXECUTABLE} ${JAVASCRIPTCORE_DIR}/b3/air/opcode_generator.rb ${JAVASCRIPTCORE_DIR}/b3/air/AirOpcode.opcodes VERBATIM
1165     WORKING_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}
1166 )
1167
1168 list(APPEND JavaScriptCore_HEADERS
1169     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/AirOpcode.h
1170     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/AirOpcodeGenerated.h
1171 )
1172
1173 add_custom_command(
1174     OUTPUT ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InjectedScriptSource.h ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InjectedScriptSource.min.js
1175     MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/inspector/InjectedScriptSource.js
1176     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py
1177     COMMAND ${CMAKE_COMMAND} -E echo "//# sourceURL=__InjectedScript_InjectedScriptSource.js" > ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InjectedScriptSource.min.js
1178     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py < ${JAVASCRIPTCORE_DIR}/inspector/InjectedScriptSource.js >> ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InjectedScriptSource.min.js
1179     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl InjectedScriptSource_js ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InjectedScriptSource.min.js ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InjectedScriptSource.h
1180     VERBATIM)
1181
1182 list(APPEND JavaScriptCore_HEADERS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/InjectedScriptSource.h)
1183
1184 if (WTF_CPU_X86_64)
1185     if (MSVC AND ENABLE_JIT)
1186         add_custom_command(
1187             OUTPUT ${DERIVED_SOURCES_DIR}/JITStubsMSVC64.obj
1188             MAIN_DEPENDENCY ${JAVASCRIPTCORE_DIR}/jit/JITStubsMSVC64.asm
1189             COMMAND ml64 -nologo -c -Fo ${DERIVED_SOURCES_DIR}/JITStubsMSVC64.obj ${JAVASCRIPTCORE_DIR}/jit/JITStubsMSVC64.asm
1190             VERBATIM)
1191
1192         list(APPEND JavaScriptCore_SOURCES ${DERIVED_SOURCES_DIR}/JITStubsMSVC64.obj)
1193     endif ()
1194 endif ()
1195
1196 WEBKIT_FRAMEWORK_DECLARE(JavaScriptCore)
1197 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
1198
1199 if (COMPILER_IS_GCC_OR_CLANG)
1200     # Avoid using fused multiply-add instructions since this could give different results
1201     # for e.g. parseInt depending on the platform and compilation flags.
1202     WEBKIT_ADD_TARGET_CXX_FLAGS(JavaScriptCore -ffp-contract=off)
1203
1204     # Avoid "variable tracking size limit exceeded"
1205     set_source_files_properties(builtins/BuiltinNames.cpp PROPERTIES COMPILE_FLAGS -fno-var-tracking-assignments)
1206 endif ()
1207
1208 WEBKIT_MAKE_FORWARDING_HEADERS(JavaScriptCore
1209     FILES ${JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS}
1210     FLATTENED
1211 )
1212
1213 WEBKIT_MAKE_FORWARDING_HEADERS(JavaScriptCore
1214     TARGET_NAME JavaScriptCorePrivateForwardingHeaders
1215     FILES ${JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS}
1216     DERIVED_SOURCE_DIRECTORIES ${DERIVED_SOURCES_DIR}/JavaScriptCore ${DERIVED_SOURCES_DIR}/JavaScriptCore/inspector
1217     FLATTENED
1218 )
1219
1220 target_include_directories(LLIntOffsetsExtractor PRIVATE
1221     ${JavaScriptCore_INCLUDE_DIRECTORIES}
1222     ${JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES}
1223 )
1224 target_include_directories(LLIntOffsetsExtractor SYSTEM PRIVATE ${JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES})
1225
1226 add_subdirectory(shell)
1227
1228 WEBKIT_COMPUTE_SOURCES(JavaScriptCore)
1229 WEBKIT_WRAP_SOURCELIST(${JavaScriptCore_SOURCES})
1230 WEBKIT_FRAMEWORK(JavaScriptCore)
1231
1232 if (NOT "${PORT}" STREQUAL "Mac")
1233     if (${JavaScriptCore_LIBRARY_TYPE} STREQUAL "SHARED")
1234         WEBKIT_POPULATE_LIBRARY_VERSION(JAVASCRIPTCORE)
1235         set_target_properties(JavaScriptCore PROPERTIES VERSION ${JAVASCRIPTCORE_VERSION} SOVERSION ${JAVASCRIPTCORE_VERSION_MAJOR})
1236         install(TARGETS JavaScriptCore DESTINATION "${LIB_INSTALL_DIR}")
1237     endif ()
1238 endif ()
1239
1240 # Force staging of shared scripts, even if they aren't directly used to build JavaScriptCore.
1241
1242 add_custom_target(stageSharedScripts DEPENDS ${JavaScriptCore_SCRIPTS})
1243 add_dependencies(JavaScriptCore stageSharedScripts ${JavaScriptCore_EXTRA_DEPENDENCIES})
1244
1245 if (MSVC)
1246     add_custom_command(
1247         TARGET JavaScriptCore
1248         PRE_BUILD
1249         COMMAND ${PERL_EXECUTABLE} ${WEBKIT_LIBRARIES_DIR}/tools/scripts/auto-version.pl ${DERIVED_SOURCES_DIR}
1250         VERBATIM)
1251
1252     add_custom_command(
1253         TARGET JavaScriptCore
1254         POST_BUILD
1255         COMMAND ${PERL_EXECUTABLE} ${WEBKIT_LIBRARIES_DIR}/tools/scripts/version-stamp.pl ${DERIVED_SOURCES_DIR} $<TARGET_FILE:JavaScriptCore>
1256         VERBATIM)
1257 endif ()