[CMAKE] Use *bin* and *lib* directories for executable and libraries.
[WebKit-https.git] / Tools / DumpRenderTree / efl / CMakeLists.txt
1 SET(DumpRenderTree_SOURCES
2     ${TOOLS_DIR}/DumpRenderTree/CyclicRedundancyCheck.cpp
3     ${TOOLS_DIR}/DumpRenderTree/GCController.cpp
4     ${TOOLS_DIR}/DumpRenderTree/LayoutTestController.cpp
5     ${TOOLS_DIR}/DumpRenderTree/PixelDumpSupport.cpp
6     ${TOOLS_DIR}/DumpRenderTree/WorkQueue.cpp
7     ${TOOLS_DIR}/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp
8     ${TOOLS_DIR}/DumpRenderTree/efl/DumpHistoryItem.cpp
9     ${TOOLS_DIR}/DumpRenderTree/efl/DumpRenderTree.cpp
10     ${TOOLS_DIR}/DumpRenderTree/efl/DumpRenderTreeChrome.cpp
11     ${TOOLS_DIR}/DumpRenderTree/efl/DumpRenderTreeView.cpp
12     ${TOOLS_DIR}/DumpRenderTree/efl/EventSender.cpp
13     ${TOOLS_DIR}/DumpRenderTree/efl/FontManagement.cpp
14     ${TOOLS_DIR}/DumpRenderTree/efl/GCControllerEfl.cpp
15     ${TOOLS_DIR}/DumpRenderTree/efl/JSStringUtils.cpp
16     ${TOOLS_DIR}/DumpRenderTree/efl/LayoutTestControllerEfl.cpp
17     ${TOOLS_DIR}/DumpRenderTree/efl/PixelDumpSupportEfl.cpp
18     ${TOOLS_DIR}/DumpRenderTree/efl/WorkQueueItemEfl.cpp
19 )
20
21 SET(ImageDiff_SOURCES
22     ${TOOLS_DIR}/DumpRenderTree/efl/ImageDiff.cpp
23 )
24
25 SET(DumpRenderTree_LIBRARIES
26     ${WTF_LIBRARY_NAME}
27     ${JavaScriptCore_LIBRARY_NAME}
28     ${WebCore_LIBRARY_NAME}
29     ${WebKit_LIBRARY_NAME}
30     ${Cairo_LIBRARIES}
31     ${ECORE_X_LIBRARIES}
32     ${EDJE_LIBRARIES}
33     ${EFLDEPS_LIBRARIES}
34     ${EVAS_LIBRARIES}
35     ${LIBXML2_LIBRARIES}
36     ${LIBXSLT_LIBRARIES}
37     ${SQLITE_LIBRARIES}
38 )
39
40 SET(DumpRenderTree_LIBRARIES ${DumpRenderTree_LIBRARIES})
41 SET(DumpRenderTree_INCLUDE_DIRECTORIES
42     "${WEBKIT_DIR}/efl/ewk"
43     ${WEBKIT_DIR}/efl
44     ${WEBCORE_DIR}
45     ${WEBCORE_DIR}/bridge
46     ${WEBCORE_DIR}/bridge/jsc
47     ${WEBCORE_DIR}/bindings
48     ${WEBCORE_DIR}/dom
49     ${WEBCORE_DIR}/editing
50     ${WEBCORE_DIR}/css
51     ${WEBCORE_DIR}/html
52     ${WEBCORE_DIR}/inspector
53     ${WEBCORE_DIR}/page
54     ${WEBCORE_DIR}/page/animation
55     ${WEBCORE_DIR}/platform
56     ${WEBCORE_DIR}/platform/animation
57     ${WEBCORE_DIR}/platform/text
58     ${WEBCORE_DIR}/platform/graphics
59     ${WEBCORE_DIR}/platform/graphics/cairo
60     ${WEBCORE_DIR}/platform/network
61     ${WEBCORE_DIR}/plugins
62     ${WEBCORE_DIR}/rendering
63     ${WEBCORE_DIR}/rendering/style
64     ${WEBCORE_DIR}/history
65     ${WEBCORE_DIR}/loader
66     ${WEBCORE_DIR}/loader/cache
67     ${WEBCORE_DIR}/loader/icon
68     ${JAVASCRIPTCORE_DIR}
69     ${JAVASCRIPTCORE_DIR}/API
70     ${JAVASCRIPTCORE_DIR}/assembler
71     ${JAVASCRIPTCORE_DIR}/dfg
72     ${JAVASCRIPTCORE_DIR}/heap
73     ${JAVASCRIPTCORE_DIR}/interpreter
74     ${JAVASCRIPTCORE_DIR}/jit
75     ${JAVASCRIPTCORE_DIR}/runtime
76     ${JAVASCRIPTCORE_DIR}/ForwardingHeaders
77     ${JAVASCRIPTCORE_DIR}/wtf
78     ${JAVASCRIPTCORE_DIR}/wtf/efl
79     ${TOOLS_DIR}/DumpRenderTree
80     ${TOOLS_DIR}/DumpRenderTree/cairo
81     ${TOOLS_DIR}/DumpRenderTree/efl
82     ${CMAKE_SOURCE_DIR}/Source
83     ${CMAKE_BINARY_DIR}
84     ${DERIVED_SOURCES_WEBCORE_DIR}
85     ${WEBCORE_DIR}/bindings/js
86     ${Cairo_INCLUDE_DIRS}
87     ${EDJE_INCLUDE_DIRS}
88     ${EFLDEPS_INCLUDE_DIRS}
89     ${EVAS_INCLUDE_DIRS}
90 )
91
92 SET(DumpRenderTree_LINK_FLAGS
93     ${ECORE_X_LDFLAGS}
94     ${EDJE_LDFLAGS}
95     ${EFLDEPS_LDFLAGS}
96     ${EVAS_LDFLAGS}
97 )
98
99 IF (ENABLE_GLIB_SUPPORT)
100     LIST(APPEND DumpRenderTree_INCLUDE_DIRECTORIES "${JAVASCRIPTCORE_DIR}/wtf/gobject")
101
102     LIST(APPEND DumpRenderTree_LIBRARIES
103         ${Gdk_LIBRARIES}
104         ${Glib_LIBRARIES}
105         ${Gthread_LIBRARIES}
106     )
107 ENDIF ()
108
109 IF (WTF_USE_SOUP)
110     LIST(APPEND DumpRenderTree_LIBRARIES ${LIBSOUP24_LIBRARIES})
111     LIST(APPEND DumpRenderTree_LINK_FLAGS ${LIBSOUP24_LDFLAGS})
112     LIST(APPEND DumpRenderTree_INCLUDE_DIRECTORIES ${LIBSOUP24_INCLUDE_DIRS} ${WEBCORE_DIR}/platform/network/soup)
113 ENDIF ()
114
115 IF (WTF_USE_CURL)
116     LIST(APPEND DumpRenderTree_LIBRARIES ${CURL_LIBRARIES})
117     LIST(APPEND DumpRenderTree_LINK_FLAGS ${CURL_LDFLAGS})
118     LIST(APPEND DumpRenderTree_INCLUDE_DIRECTORIES ${WEBCORE_DIR}/platform/network/curl)
119 ENDIF ()
120
121 ADD_DEFINITIONS(-DFONTS_CONF_DIR="${TOOLS_DIR}/DumpRenderTree/gtk/fonts"
122                 -DDATA_DIR="${THEME_BINARY_DIR}")
123
124 INCLUDE_DIRECTORIES(${DumpRenderTree_INCLUDE_DIRECTORIES})
125
126 ADD_EXECUTABLE(bin/DumpRenderTree ${DumpRenderTree_SOURCES})
127 TARGET_LINK_LIBRARIES(bin/DumpRenderTree ${DumpRenderTree_LIBRARIES})
128 ADD_TARGET_PROPERTIES(bin/DumpRenderTree LINK_FLAGS "${DumpRenderTree_LINK_FLAGS}")
129 SET_TARGET_PROPERTIES(bin/DumpRenderTree PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
130
131 ADD_EXECUTABLE(bin/ImageDiff ${ImageDiff_SOURCES})
132 TARGET_LINK_LIBRARIES(bin/ImageDiff ${DumpRenderTree_LIBRARIES})
133 ADD_TARGET_PROPERTIES(bin/ImageDiff LINK_FLAGS "${DumpRenderTree_LINK_FLAGS}")
134 SET_TARGET_PROPERTIES(bin/ImageDiff PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")