IF (ENABLE_FAST_MALLOC)
  LIST(APPEND WTF_SOURCES
    TCSystemAlloc.cpp
  )
ELSE ()
  ADD_DEFINITIONS(-DUSE_SYSTEM_MALLOC=1)
ENDIF()

LIST(APPEND WTF_SOURCES
    efl/MainThreadEfl.cpp
    efl/OwnPtrEfl.cpp

    OSAllocatorPosix.cpp
    ThreadIdentifierDataPthreads.cpp
    ThreadingPthreads.cpp

    unicode/icu/CollatorICU.cpp
)

IF (ENABLE_GLIB_SUPPORT)
  LIST(APPEND WTF_SOURCES
    gobject/GOwnPtr.cpp
    gobject/GRefPtr.cpp
  )

  LIST(APPEND WTF_INCLUDE_DIRECTORIES
    ${Glib_INCLUDE_DIRS}
    ${JAVASCRIPTCORE_DIR}/wtf/gobject
  )

  LIST(APPEND WTF_LIBRARIES
    ${Glib_LIBRARIES}
  )
ENDIF ()

LIST(APPEND WTF_LIBRARIES
    pthread
    ${ICU_LIBRARIES}
)

LIST(APPEND WTF_LINK_FLAGS
    ${ECORE_LDFLAGS}
    ${ECORE_EVAS_LDFLAGS}
    ${EVAS_LDFLAGS}
)

LIST(APPEND WTF_INCLUDE_DIRECTORIES
    ${ECORE_INCLUDE_DIRS}
    ${ECORE_EVAS_INCLUDE_DIRS}
    ${EVAS_INCLUDE_DIRS}
    ${ICU_INCLUDE_DIRS}
    ${JAVASCRIPTCORE_DIR}/wtf/unicode/
)
