Upstream the WPE port
[WebKit-https.git] / Tools / CMakeLists.txt
1 set_property(DIRECTORY . PROPERTY FOLDER "Tools")
2
3 if ("${PORT}" STREQUAL "GTK")
4     if (DEVELOPER_MODE)
5       add_subdirectory(WebKitTestRunner)
6       add_subdirectory(ImageDiff)
7       if (ENABLE_API_TESTS)
8           add_subdirectory(TestWebKitAPI/Tests/WebKit2Gtk)
9       endif ()
10       if (ENABLE_X11_TARGET)
11           add_subdirectory(DumpRenderTree/TestNetscapePlugIn)
12       endif ()
13     endif ()
14
15     if (ENABLE_MINIBROWSER)
16         add_subdirectory(MiniBrowser/gtk)
17     endif ()
18 elseif ("${PORT}" STREQUAL "Mac")
19     add_subdirectory(DumpRenderTree)
20     add_subdirectory(WebKitTestRunner)
21     add_subdirectory(MiniBrowser/mac)
22 elseif ("${PORT}" STREQUAL "JSCOnly")
23     if (ENABLE_API_TESTS)
24         add_subdirectory(TestWebKitAPI)
25     endif ()
26 elseif ("${PORT}" STREQUAL "WPE")
27     if (DEVELOPER_MODE)
28         add_subdirectory(ImageDiff)
29         add_subdirectory(WebKitTestRunner)
30     endif ()
31 endif ()
32
33 if (WIN32)
34     add_subdirectory(DumpRenderTree)
35     add_subdirectory(TestWebKitAPI)
36     add_subdirectory(MiniBrowser/win)
37 endif ()
38
39 if (ENABLE_WEBKIT2 AND ENABLE_API_TESTS)
40     add_subdirectory(TestWebKitAPI)
41 endif ()