2010-06-18 Leandro Pereira <leandro@profusion.mobi>
[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     MD5.cpp
9     RandomNumber.cpp
10     RefCountedLeakCounter.cpp
11     StringExtras.cpp
12     Threading.cpp
13     TypeTraits.cpp
14     WTFThreadData.cpp
15     dtoa.cpp
16
17     text/AtomicString.cpp
18     text/CString.cpp
19     text/StringImpl.cpp
20     text/StringStatics.cpp
21     text/WTFString.cpp
22
23     unicode/UTF8.cpp
24 )
25
26 SET(WTF_LIBRARIES
27 )
28
29 SET(WTF_PORT_FLAGS )
30 INCLUDE_IF_EXISTS(${JAVASCRIPTCORE_DIR}/wtf/CMakeLists${PORT}.txt)
31
32 LIST(APPEND WTF_INCLUDE_DIRECTORIES
33     "${CMAKE_BINARY_DIR}"
34 )
35
36 WEBKIT_WRAP_SOURCELIST(${WTF_SOURCES})
37 INCLUDE_DIRECTORIES(${WTF_INCLUDE_DIRECTORIES})
38 ADD_DEFINITIONS(-DBUILDING_WTF)
39 ADD_LIBRARY(${WTF_LIBRARY_NAME} ${WTF_LIBRARY_TYPE} ${WTF_SOURCES})
40 TARGET_LINK_LIBRARIES(${WTF_LIBRARY_NAME} ${WTF_LIBRARIES})
41
42 ADD_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} LINK_FLAGS ${WTF_LINK_FLAGS})
43
44 IF (SHARED_CORE)
45     INSTALL(TARGETS ${WTF_LIBRARY_NAME} DESTINATION lib)
46 ENDIF ()