e5e26c0daa08a351a2f9243b532a6f92a85cf38a
[WebKit-https.git] / Source / WebKit2 / PlatformMac.cmake
1 add_definitions(-ObjC++)
2
3 find_library(PDFKIT_FRAMEWORK PDFKit HINTS ${QUARTZ_LIBRARY}/Versions/*/Frameworks)
4
5 find_library(ACCELERATE_LIBRARY accelerate)
6 find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
7 find_library(AUDIOUNIT_LIBRARY AudioUnit)
8 find_library(CARBON_LIBRARY Carbon)
9 find_library(COCOA_LIBRARY Cocoa)
10 find_library(COREAUDIO_LIBRARY CoreAudio)
11 find_library(DISKARBITRATION_LIBRARY DiskArbitration)
12 find_library(IOKIT_LIBRARY IOKit)
13 find_library(IOSURFACE_LIBRARY IOSurface)
14 find_library(OPENGL_LIBRARY OpenGL)
15 find_library(QUARTZ_LIBRARY Quartz)
16 find_library(QUARTZCORE_LIBRARY QuartzCore)
17 find_library(SECURITY_LIBRARY Security)
18 find_library(SQLITE3_LIBRARY sqlite3)
19 find_library(XML2_LIBRARY XML2)
20 find_package(ZLIB REQUIRED)
21
22 list(APPEND WebKit2_LIBRARIES
23     ${ACCELERATE_LIBRARY}
24     ${AUDIOTOOLBOX_LIBRARY}
25     ${AUDIOUNIT_LIBRARY}
26     ${CARBON_LIBRARY}
27     ${COCOA_LIBRARY}
28     ${COREAUDIO_LIBRARY}
29     ${DISKARBITRATION_LIBRARY}
30     ${IOKIT_LIBRARY}
31     ${IOSURFACE_LIBRARY}
32     ${OPENGL_LIBRARY}
33     ${PDFKIT_FRAMEWORK}/PDFKit
34     ${QUARTZ_LIBRARY}
35     ${QUARTZCORE_LIBRARY}
36     ${SECURITY_LIBRARY}
37     ${SQLITE3_LIBRARY}
38     ${WEBKITSYSTEMINTERFACE_LIBRARY}
39     ${XML2_LIBRARY}
40     ${ZLIB_LIBRARIES}
41 )
42
43 list(APPEND WebKit2_SOURCES
44     NetworkProcess/cocoa/NetworkProcessCocoa.mm
45
46     NetworkProcess/mac/NetworkDiskCacheMonitor.mm
47     NetworkProcess/mac/NetworkProcessMac.mm
48     NetworkProcess/mac/NetworkResourceLoaderMac.mm
49     NetworkProcess/mac/RemoteNetworkingContext.mm
50
51     UIProcess/API/Cocoa/APISerializedScriptValueCocoa.mm
52     UIProcess/API/Cocoa/APIUserContentExtensionStoreCocoa.mm
53     UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm
54     UIProcess/API/Cocoa/LegacyBundleForClass.mm
55     UIProcess/API/Cocoa/WKBackForwardList.mm
56     UIProcess/API/Cocoa/WKBackForwardListItem.mm
57     UIProcess/API/Cocoa/WKError.mm
58     UIProcess/API/Cocoa/WKFrameInfo.mm
59     UIProcess/API/Cocoa/WKNavigation.mm
60     UIProcess/API/Cocoa/WKNavigationAction.mm
61     UIProcess/API/Cocoa/WKNavigationResponse.mm
62     UIProcess/API/Cocoa/WKPreferences.mm
63     UIProcess/API/Cocoa/WKProcessPool.mm
64     UIProcess/API/Cocoa/WKScriptMessage.mm
65     UIProcess/API/Cocoa/WKSecurityOrigin.mm
66     UIProcess/API/Cocoa/WKUserContentController.mm
67     UIProcess/API/Cocoa/WKUserScript.mm
68     UIProcess/API/Cocoa/WKWebView.mm
69     UIProcess/API/Cocoa/WKWebViewConfiguration.mm
70     UIProcess/API/Cocoa/WKWebsiteDataRecord.mm
71     UIProcess/API/Cocoa/WKWebsiteDataStore.mm
72     UIProcess/API/Cocoa/WKWindowFeatures.mm
73     UIProcess/API/Cocoa/_WKActivatedElementInfo.mm
74     UIProcess/API/Cocoa/_WKDownload.mm
75     UIProcess/API/Cocoa/_WKElementAction.mm
76     UIProcess/API/Cocoa/_WKErrorRecoveryAttempting.mm
77     UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm
78     UIProcess/API/Cocoa/_WKSessionState.mm
79     UIProcess/API/Cocoa/_WKThumbnailView.mm
80     UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm
81     UIProcess/API/Cocoa/_WKUserContentFilter.mm
82     UIProcess/API/Cocoa/_WKVisitedLinkStore.mm
83
84     UIProcess/API/mac/WKView.mm
85
86     UIProcess/Cocoa/DiagnosticLoggingClient.mm
87     UIProcess/Cocoa/DownloadClient.mm
88     UIProcess/Cocoa/FindClient.mm
89     UIProcess/Cocoa/NavigationState.mm
90     UIProcess/Cocoa/RemoteLayerTreeScrollingPerformanceData.mm
91     UIProcess/Cocoa/SessionStateCoding.mm
92     UIProcess/Cocoa/UIDelegate.mm
93     UIProcess/Cocoa/VersionChecks.mm
94     UIProcess/Cocoa/WKReloadFrameErrorRecoveryAttempter.mm
95     UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm
96     UIProcess/Cocoa/WebPageProxyCocoa.mm
97     UIProcess/Cocoa/WebPasteboardProxyCocoa.mm
98     UIProcess/Cocoa/WebProcessPoolCocoa.mm
99     UIProcess/Cocoa/WebProcessProxyCocoa.mm
100
101     UIProcess/mac/CorrectionPanel.mm
102     UIProcess/mac/LegacySessionStateCoding.cpp
103     UIProcess/mac/PageClientImpl.mm
104     UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm
105     UIProcess/mac/RemoteLayerTreeHost.mm
106     UIProcess/mac/SecItemShimProxy.cpp
107     UIProcess/mac/ServicesController.mm
108     UIProcess/mac/TextCheckerMac.mm
109     UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm
110     UIProcess/mac/ViewGestureControllerMac.mm
111     UIProcess/mac/ViewSnapshotStore.mm
112     UIProcess/mac/WKFullKeyboardAccessWatcher.mm
113     UIProcess/mac/WKFullScreenWindowController.mm
114     UIProcess/mac/WKImmediateActionController.mm
115     UIProcess/mac/WKPrintingView.mm
116     UIProcess/mac/WKSharingServicePickerDelegate.mm
117     UIProcess/mac/WKTextInputWindowController.mm
118     UIProcess/mac/WKViewLayoutStrategy.mm
119     UIProcess/mac/WebColorPickerMac.mm
120     UIProcess/mac/WebContextMenuProxyMac.mm
121     UIProcess/mac/WebCookieManagerProxyMac.mm
122     UIProcess/mac/WebInspectorProxyMac.mm
123     UIProcess/mac/WebPageProxyMac.mm
124     UIProcess/mac/WebPopupMenuProxyMac.mm
125     UIProcess/mac/WebPreferencesMac.mm
126     UIProcess/mac/WebProcessProxyMac.mm
127     UIProcess/mac/WindowServerConnection.mm
128 )
129
130 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2_DIR})
131
132 list(APPEND WebKit2_INCLUDE_DIRECTORIES
133     "${WEBCORE_DIR}/platform/mac"
134     "${WEBCORE_DIR}/platform/network/cf"
135     "${WEBCORE_DIR}/platform/graphics/opentype"
136     "${WEBKIT2_DIR}/NetworkProcess/cocoa"
137     "${WEBKIT2_DIR}/NetworkProcess/mac"
138     "${WEBKIT2_DIR}/UIProcess/mac"
139     "${WEBKIT2_DIR}/UIProcess/API/C/mac"
140     "${WEBKIT2_DIR}/UIProcess/Cocoa"
141     "${WEBKIT2_DIR}/UIProcess/Scrolling"
142     "${WEBKIT2_DIR}/Platform/mac"
143     "${WEBKIT2_DIR}/Platform/IPC/mac"
144     "${WEBKIT2_DIR}/Shared/API/Cocoa"
145     "${WEBKIT2_DIR}/Shared/API/c/cf"
146     "${WEBKIT2_DIR}/Shared/cf"
147     "${WEBKIT2_DIR}/Shared/Cocoa"
148     "${WEBKIT2_DIR}/Shared/mac"
149     "${WEBKIT2_DIR}/Shared/Plugins/mac"
150     "${WEBKIT2_DIR}/WebProcess/Plugins/PDF"
151     "${WEBKIT2_DIR}/WebProcess/Scrolling"
152     "${WEBKIT2_DIR}/WebProcess/WebPage/mac"
153     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/mac"
154     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
155     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore"
156 )
157
158 set(WEBKIT2_EXTRA_DEPENDENCIES
159      WebKit2-forwarding-headers
160 )
161 set(WebProcess_SOURCES
162      WebProcess/mac/SecItemShimLibrary.mm
163 )
164
165 list(APPEND NetworkProcess_SOURCES
166      ${NetworkProcess_COMMON_SOURCES}
167 )
168
169 list(APPEND DatabaseProcess_SOURCES
170     DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm
171 )
172
173 add_definitions("-include WebKit2Prefix.h")
174
175 set(WebKit2_FORWARDING_HEADERS_FILES
176     Shared/API/c/WKDiagnosticLoggingResultType.h
177
178     UIProcess/API/C/WKPageDiagnosticLoggingClient.h
179     UIProcess/API/C/WKPageNavigationClient.h
180     UIProcess/API/C/WKPageRenderingProgressEvents.h
181 )
182
183 set(WebKit2_FORWARDING_HEADERS_DIRECTORIES
184     Shared/API/c
185
186     Shared/API/c/mac
187
188     UIProcess/Cocoa
189
190     UIProcess/API/C
191     UIProcess/API/Cocoa
192
193     WebProcess/WebPage
194
195     WebProcess/InjectedBundle/API/c
196 )
197
198 WEBKIT_CREATE_FORWARDING_HEADERS(WebKit FILES ${WebKit2_FORWARDING_HEADERS_FILES} DIRECTORIES ${WebKit2_FORWARDING_HEADERS_DIRECTORIES})