b4918c1e107bc3d9f897da7b304c19233919cacd
[WebKit-https.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 WEBKITLEGACY_DIR)
17     set(WEBKITLEGACY_DIR "${CMAKE_SOURCE_DIR}/Source/WebKitLegacy")
18 endif ()
19 if (NOT WEBKIT_DIR)
20     set(WEBKIT_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_PAL_DIR "${CMAKE_BINARY_DIR}/DerivedSources/PAL")
35 set(DERIVED_SOURCES_WEBCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebCore")
36 set(DERIVED_SOURCES_WEBDRIVER_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebDriver")
37 set(DERIVED_SOURCES_WEBKITLEGACY_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKitLegacy")
38 set(DERIVED_SOURCES_WEBKIT_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit")
39 set(DERIVED_SOURCES_WEBINSPECTORUI_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebInspectorUI")
40
41 # These values will replace the above after refactoring is complete
42 set(WTF_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WTF")
43 set(JavaScriptCore_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore")
44 set(PAL_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/PAL")
45 set(WebCore_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebCore")
46 set(WebDriver_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebDriver")
47 set(WebKitLegacy_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKitLegacy")
48 set(WebKit_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit")
49 set(WebInspectorUI_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebInspectorUI")
50
51 set(FORWARDING_HEADERS_DIR ${DERIVED_SOURCES_DIR}/ForwardingHeaders)
52
53 set(ANGLE_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
54 set(WTF_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
55 set(JavaScriptCore_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
56 set(JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
57 set(PAL_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
58 set(WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
59 set(WebKitLegacy_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
60 set(WebKit_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
61 set(WebKit_PRIVATE_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
62
63 set(WTF_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/wtf/Scripts")
64 set(JavaScriptCore_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/JavaScriptCore/Scripts")
65
66 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR})
67 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/Protocol)
68 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol)