dc35a1e842297a5b3d15844bf07d1e0961d144e1
[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 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 if (NOT WEBINSPECTORUI_DIR)
32     set(WEBINSPECTORUI_DIR "${CMAKE_SOURCE_DIR}/Source/WebInspectorUI")
33 endif ()
34
35 set(DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources")
36 set(DERIVED_SOURCES_JAVASCRIPTCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore")
37 set(DERIVED_SOURCES_PAL_DIR "${CMAKE_BINARY_DIR}/DerivedSources/PAL")
38 set(DERIVED_SOURCES_WEBCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebCore")
39 set(DERIVED_SOURCES_WEBDRIVER_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebDriver")
40 set(DERIVED_SOURCES_WEBKITLEGACY_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKitLegacy")
41 set(DERIVED_SOURCES_WEBKIT_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit")
42 set(DERIVED_SOURCES_WEBINSPECTORUI_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebInspectorUI")
43
44 # These values will replace the above after refactoring is complete
45 set(WTF_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WTF")
46 set(JavaScriptCore_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore")
47 set(PAL_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/PAL")
48 set(WebCore_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebCore")
49 set(WebDriver_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebDriver")
50 set(WebKitLegacy_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKitLegacy")
51 set(WebKit_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit")
52 set(WebInspectorUI_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebInspectorUI")
53 set(MiniBrowser_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/MiniBrowser")
54 set(DumpRenderTree_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/DumpRenderTree")
55 set(WebKitTestRunner_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKitTestRunner")
56
57 set(FORWARDING_HEADERS_DIR ${DERIVED_SOURCES_DIR}/ForwardingHeaders)
58
59 set(bmalloc_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
60 set(ANGLE_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
61 set(WTF_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
62 set(JavaScriptCore_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
63 set(JavaScriptCore_PRIVATE_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
64 set(PAL_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
65 set(WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
66 set(WebKitLegacy_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
67 set(WebKit_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
68 set(WebKit_PRIVATE_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
69
70 set(WTF_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/wtf/Scripts")
71 set(JavaScriptCore_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/JavaScriptCore/Scripts")
72
73 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR})
74 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/Protocol)
75 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol)