[GTK] Move WebKit2 GLib API tests to glib directories
[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/glib)
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 elseif ("${PORT}" STREQUAL "Win")
32     add_subdirectory(DumpRenderTree)
33     add_subdirectory(TestWebKitAPI)
34     add_subdirectory(MiniBrowser/win)
35     add_subdirectory(ImageDiff)
36 endif ()
37
38 if (ENABLE_WEBKIT2 AND ENABLE_API_TESTS)
39     add_subdirectory(TestWebKitAPI)
40 endif ()