blob: 5392beb023ef64876ee58d637f8bee0e01088bba [file] [log] [blame]
list(APPEND WTF_SOURCES
generic/WorkQueueGeneric.cpp
)
if (WIN32)
list(APPEND WTF_SOURCES
text/win/TextBreakIteratorInternalICUWin.cpp
win/CPUTimeWin.cpp
win/DbgHelperWin.cpp
win/FileSystemWin.cpp
win/LanguageWin.cpp
win/MainThreadWin.cpp
win/OSAllocatorWin.cpp
win/PathWalker.cpp
win/ThreadSpecificWin.cpp
win/ThreadingWin.cpp
)
list(APPEND WTF_PUBLIC_HEADERS
win/DbgHelperWin.h
win/PathWalker.h
text/win/WCharStringExtras.h
)
list(APPEND WTF_LIBRARIES
DbgHelp
shlwapi
winmm
)
else ()
list(APPEND WTF_SOURCES
UniStdExtras.cpp
generic/MainThreadGeneric.cpp
posix/FileSystemPOSIX.cpp
posix/OSAllocatorPOSIX.cpp
posix/ThreadingPOSIX.cpp
text/unix/TextBreakIteratorInternalICUUnix.cpp
unix/LanguageUnix.cpp
)
if (WTF_OS_FUCHSIA)
list(APPEND WTF_SOURCES
fuchsia/CPUTimeFuchsia.cpp
)
else ()
list(APPEND WTF_SOURCES
unix/CPUTimeUnix.cpp
)
endif ()
endif ()
if (WIN32)
list(APPEND WTF_SOURCES
win/MemoryFootprintWin.cpp
)
list(APPEND WTF_PUBLIC_HEADERS
win/Win32Handle.h
)
elseif (APPLE)
file(COPY mac/MachExceptions.defs DESTINATION ${WTF_DERIVED_SOURCES_DIR})
add_custom_command(
OUTPUT
${WTF_DERIVED_SOURCES_DIR}/MachExceptionsServer.h
${WTF_DERIVED_SOURCES_DIR}/mach_exc.h
${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
MAIN_DEPENDENCY mac/MachExceptions.defs
WORKING_DIRECTORY ${WTF_DERIVED_SOURCES_DIR}
COMMAND mig -sheader MachExceptionsServer.h MachExceptions.defs
VERBATIM)
list(APPEND WTF_SOURCES
cocoa/MemoryFootprintCocoa.cpp
${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
)
elseif (CMAKE_SYSTEM_NAME MATCHES "Linux")
list(APPEND WTF_SOURCES
linux/CurrentProcessMemoryStatus.cpp
linux/MemoryFootprintLinux.cpp
linux/MemoryPressureHandlerLinux.cpp
)
list(APPEND WTF_PUBLIC_HEADERS
linux/CurrentProcessMemoryStatus.h
)
else ()
list(APPEND WTF_SOURCES
generic/MemoryFootprintGeneric.cpp
generic/MemoryPressureHandlerGeneric.cpp
)
endif ()
if (LOWERCASE_EVENT_LOOP_TYPE STREQUAL "glib")
list(APPEND WTF_SOURCES
glib/GRefPtr.cpp
glib/RunLoopGLib.cpp
)
list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
${GLIB_INCLUDE_DIRS}
)
list(APPEND WTF_LIBRARIES
${GLIB_GIO_LIBRARIES}
${GLIB_GOBJECT_LIBRARIES}
${GLIB_LIBRARIES}
)
else ()
list(APPEND WTF_SOURCES
generic/RunLoopGeneric.cpp
)
endif ()
list(APPEND WTF_LIBRARIES
${CMAKE_THREAD_LIBS_INIT}
)