Move some commands from ./CMakeLists.txt to Source/cmake
[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 WEBKIT_DIR)
14     set(WEBKIT_DIR "${CMAKE_SOURCE_DIR}/Source/WebKit")
15 endif ()
16 if (NOT WEBKIT2_DIR)
17     set(WEBKIT2_DIR "${CMAKE_SOURCE_DIR}/Source/WebKit2")
18 endif ()
19 if (NOT THIRDPARTY_DIR)
20     set(THIRDPARTY_DIR "${CMAKE_SOURCE_DIR}/Source/ThirdParty")
21 endif ()
22 if (NOT TOOLS_DIR)
23     set(TOOLS_DIR "${CMAKE_SOURCE_DIR}/Tools")
24 endif ()
25
26 set(DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources")
27 set(DERIVED_SOURCES_JAVASCRIPTCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore")
28 set(DERIVED_SOURCES_WEBCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebCore")
29 set(DERIVED_SOURCES_WEBKITLEGACY_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKitLegacy")
30 set(DERIVED_SOURCES_WEBKIT_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit")
31 set(DERIVED_SOURCES_WEBKIT2_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit2")
32 set(DERIVED_SOURCES_WEBINSPECTORUI_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebInspectorUI")
33 set(DERIVED_SOURCES_WTF_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WTF")
34
35 file(MAKE_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR})
36 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WTF_DIR})
37 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Source/JavaScriptCore/runtime)
38
39 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR})
40 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR})
41 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/Protocol)
42 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol)
43
44 if (ENABLE_WEBKIT2)
45     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR})
46 endif ()
47
48 if (ENABLE_WEBKIT)
49     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKITLEGACY_DIR})
50     file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT_DIR})
51 endif ()