f4d90ceb71c33827bf17809c064a076f0de0f245
[WebKit-https.git] / JavaScriptCore / wtf / CMakeLists.txt
1 SET(WTF_SOURCES
2     Assertions.cpp
3     ByteArray.cpp
4     CurrentTime.cpp
5     FastMalloc.cpp
6     HashTable.cpp
7     MainThread.cpp
8     RandomNumber.cpp
9     RefCountedLeakCounter.cpp
10     StringExtras.cpp
11     Threading.cpp
12     TypeTraits.cpp
13     WTFThreadData.cpp
14     dtoa.cpp
15
16     text/AtomicString.cpp
17     text/CString.cpp
18     text/StringImpl.cpp
19     text/StringStatics.cpp
20     text/WTFString.cpp
21
22     unicode/UTF8.cpp
23 )
24
25 SET(WTF_LIBRARIES
26 )
27
28 SET(WTF_PORT_FLAGS )
29 INCLUDE_IF_EXISTS(${JAVASCRIPTCORE_DIR}/wtf/CMakeLists${PORT}.txt)
30
31 LIST(APPEND WTF_INCLUDE_DIRECTORIES
32     "${CMAKE_BINARY_DIR}"
33 )
34
35 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
36 INCLUDE_DIRECTORIES(${WTF_INCLUDE_DIRECTORIES})
37 ADD_DEFINITIONS(-DBUILDING_WTF)
38 ADD_LIBRARY(${WTF_LIBRARY_NAME} ${WTF_LIBRARY_TYPE} ${WTF_SOURCES})
39 TARGET_LINK_LIBRARIES(${WTF_LIBRARY_NAME} ${WTF_LIBRARIES})
40
41 ADD_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} LINK_FLAGS ${WTF_LINK_FLAGS})