46694d39216aca969cc39fd02153b88f388ffaa0
[WebKit-https.git] / Source / WebKit2 / PlatformMac.cmake
1 #FIXME: Add Mac-specific sources here.
2
3 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR})
4
5 list(APPEND WebKit2_INCLUDE_DIRECTORIES
6     "${WEBCORE_DIR}/platform/mac"
7     "${WEBCORE_DIR}/platform/network/cf"
8     "${WEBCORE_DIR}/platform/graphics/opentype"
9     "${WEBKIT2_DIR}/UIProcess/mac"
10     "${WEBKIT2_DIR}/UIProcess/API/C/mac"
11     "${WEBKIT2_DIR}/UIProcess/Cocoa"
12     "${WEBKIT2_DIR}/UIProcess/Scrolling"
13     "${WEBKIT2_DIR}/Platform/mac"
14     "${WEBKIT2_DIR}/Platform/IPC/mac"
15     "${WEBKIT2_DIR}/Shared/API/Cocoa"
16     "${WEBKIT2_DIR}/Shared/API/c/cf"
17     "${WEBKIT2_DIR}/Shared/cf"
18     "${WEBKIT2_DIR}/Shared/mac"
19     "${WEBKIT2_DIR}/Shared/Plugins/mac"
20     "${WEBKIT2_DIR}/WebProcess/Plugins/PDF"
21     "${WEBKIT2_DIR}/WebProcess/Scrolling"
22     "${WEBKIT2_DIR}/WebProcess/WebPage/mac"
23     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/mac"
24     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
25     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore"
26 )
27
28 set(WEBKIT2_EXTRA_DEPENDENCIES
29      WebKit2-forwarding-headers
30 )
31 set(WebProcess_SOURCES
32      WebProcess/mac/SecItemShimLibrary.mm
33 )
34
35 list(APPEND NetworkProcess_SOURCES
36      ${NetworkProcess_COMMON_SOURCES}
37 )
38
39 list(APPEND DatabaseProcess_SOURCES
40     DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm
41 )
42
43 add_definitions("-include WebKit2Prefix.h")
44
45 set(WebKit2_FORWARDING_HEADERS_FILES
46     Shared/API/c/WKDiagnosticLoggingResultType.h
47
48     UIProcess/API/C/WKPageDiagnosticLoggingClient.h
49     UIProcess/API/C/WKPageNavigationClient.h
50     UIProcess/API/C/WKPageRenderingProgressEvents.h
51 )
52
53 set(WebKit2_FORWARDING_HEADERS_DIRECTORIES
54     Shared/API/c
55
56     Shared/API/c/mac
57
58     UIProcess/Cocoa
59
60     UIProcess/API/C
61     UIProcess/API/Cocoa
62
63     WebProcess/WebPage
64
65     WebProcess/InjectedBundle/API/c
66 )
67
68 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit FILES ${WebKit2_FORWARDING_HEADERS_FILES} DIRECTORIES ${WebKit2_FORWARDING_HEADERS_DIRECTORIES})