[CMake] Unclear distinction between WebKitHelpers and WebKitMacros
[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
29 set(DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources")
30 set(DERIVED_SOURCES_JAVASCRIPTCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore")
31 set(DERIVED_SOURCES_WEBCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebCore")
32 set(DERIVED_SOURCES_WEBKITLEGACY_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKitLegacy")
33 set(DERIVED_SOURCES_WEBKIT_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit")
34 set(DERIVED_SOURCES_WEBKIT2_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit2")
35 set(DERIVED_SOURCES_WEBINSPECTORUI_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebInspectorUI")
36 set(DERIVED_SOURCES_WTF_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WTF")
37
38 set(FORWARDING_HEADERS_DIR ${DERIVED_SOURCES_DIR}/ForwardingHeaders)
39
40 file(MAKE_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR})
41 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Source/JavaScriptCore/runtime)
42
43 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR})
44 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/Protocol)
45 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol)
46
47 if (ENABLE_WEBCORE)
48     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR})
49 endif ()
50
51 if (ENABLE_WEBKIT)
52     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT_DIR})
53 endif ()
54
55 if (ENABLE_WEBKIT_LEGACY)
56     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKITLEGACY_DIR})
57     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT_DIR})
58 endif ()