Add initial implementation of WebDriver process to run the HTTP server
[WebKit.git] / Source / cmake / WebKitFS.cmake
1 if (NOT BMALLOC_DIR)
2     set(BMALLOC_DIR "${CMAKE_SOURCE_DIR}/Source/bmalloc")
3 endif ()
4 if (NOT WTF_DIR)
5     set(WTF_DIR "${CMAKE_SOURCE_DIR}/Source/WTF")
6 endif ()
7 if (NOT JAVASCRIPTCORE_DIR)
8     set(JAVASCRIPTCORE_DIR "${CMAKE_SOURCE_DIR}/Source/JavaScriptCore")
9 endif ()
10 if (NOT WEBCORE_DIR)
11     set(WEBCORE_DIR "${CMAKE_SOURCE_DIR}/Source/WebCore")
12 endif ()
13 if (NOT PAL_DIR)
14     set(PAL_DIR "${CMAKE_SOURCE_DIR}/Source/WebCore/PAL")
15 endif ()
16 if (NOT WEBKIT_DIR)
17     set(WEBKIT_DIR "${CMAKE_SOURCE_DIR}/Source/WebKitLegacy")
18 endif ()
19 if (NOT WEBKIT2_DIR)
20     set(WEBKIT2_DIR "${CMAKE_SOURCE_DIR}/Source/WebKit")
21 endif ()
22 if (NOT THIRDPARTY_DIR)
23     set(THIRDPARTY_DIR "${CMAKE_SOURCE_DIR}/Source/ThirdParty")
24 endif ()
25 if (NOT TOOLS_DIR)
26     set(TOOLS_DIR "${CMAKE_SOURCE_DIR}/Tools")
27 endif ()
28 if (NOT WEBDRIVER_DIR)
29     set(WEBDRIVER_DIR "${CMAKE_SOURCE_DIR}/Source/WebDriver")
30 endif ()
31
32 set(DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources")
33 set(DERIVED_SOURCES_JAVASCRIPTCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore")
34 set(DERIVED_SOURCES_WEBCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebCore")
35 set(DERIVED_SOURCES_WEBDRIVER_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebDriver")
36 set(DERIVED_SOURCES_WEBKITLEGACY_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKitLegacy")
37 set(DERIVED_SOURCES_WEBKIT_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit")
38 set(DERIVED_SOURCES_WEBKIT2_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit2")
39 set(DERIVED_SOURCES_WEBINSPECTORUI_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebInspectorUI")
40 set(DERIVED_SOURCES_WTF_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WTF")
41
42 set(FORWARDING_HEADERS_DIR ${DERIVED_SOURCES_DIR}/ForwardingHeaders)
43
44 file(MAKE_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR})
45 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Source/JavaScriptCore/runtime)
46
47 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR})
48 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/Protocol)
49 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol)
50
51 if (ENABLE_WEBCORE)
52     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR})
53 endif ()
54
55 if (ENABLE_WEBKIT)
56     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT_DIR})
57 endif ()
58
59 if (ENABLE_WEBKIT_LEGACY)
60     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKITLEGACY_DIR})
61     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT_DIR})
62 endif ()
63
64 if (ENABLE_WEBDRIVER)
65     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBDRIVER_DIR})
66 endif ()