LIST(APPEND JavaScriptCore_SOURCES
    jit/ExecutableAllocatorFixedVMPool.cpp
    jit/ExecutableAllocator.cpp
)

LIST(APPEND JavaScriptCore_LIBRARIES
    ${ICU_I18N_LIBRARIES}
)

IF (ENABLE_GLIB_SUPPORT)
  LIST(APPEND JavaScriptCore_INCLUDE_DIRECTORIES
    ${JAVASCRIPTCORE_DIR}/wtf/gobject
  )
ENDIF ()

LIST(APPEND JavaScriptCore_LINK_FLAGS
    ${ECORE_LDFLAGS}
)

IF (ENABLE_DFG_JIT)
    LIST(APPEND JavaScriptCore_INCLUDE_DIRECTORIES
      ${JAVASCRIPTCORE_DIR}/dfg
    )
    LIST(APPEND JavaScriptCore_SOURCES
        dfg/DFGAbstractState.cpp
        dfg/DFGByteCodeParser.cpp
        dfg/DFGCapabilities.cpp
        dfg/DFGDriver.cpp
        dfg/DFGGraph.cpp
        dfg/DFGJITCodeGenerator.cpp
        dfg/DFGJITCodeGenerator32_64.cpp
        dfg/DFGJITCompiler.cpp
        dfg/DFGJITCompiler32_64.cpp
        dfg/DFGOperations.cpp
        dfg/DFGOSREntry.cpp
        dfg/DFGPropagator.cpp
        dfg/DFGRepatch.cpp
        dfg/DFGSpeculativeJIT.cpp
        dfg/DFGSpeculativeJIT32_64.cpp
    )
ENDIF ()
