Progress towards CMake on Mac.
[WebKit-https.git] / Source / WebKit / PlatformMac.cmake
1 list(APPEND WebKit_INCLUDE_DIRECTORIES
2     "${JAVASCRIPTCORE_DIR}/dfg"
3     "${WEBCORE_DIR}/accessibility/mac"
4     "${WEBCORE_DIR}/bindings/objc"
5     "${WEBCORE_DIR}/bridge"
6     "${WEBCORE_DIR}/bridge/jsc"
7     "${WEBCORE_DIR}/bridge/objc"
8     "${WEBCORE_DIR}/loader/archive/cf"
9     "${WEBCORE_DIR}/loader/cf"
10     "${WEBCORE_DIR}/loader/mac"
11     "${WEBCORE_DIR}/page/cocoa"
12     "${WEBCORE_DIR}/page/mac"
13     "${WEBCORE_DIR}/platform/cf"
14     "${WEBCORE_DIR}/platform/cocoa"
15     "${WEBCORE_DIR}/platform/graphics/avfoundation"
16     "${WEBCORE_DIR}/platform/graphics/avfoundation/cf"
17     "${WEBCORE_DIR}/platform/graphics/avfoundation/objc"
18     "${WEBCORE_DIR}/platform/graphics/ca"
19     "${WEBCORE_DIR}/platform/graphics/ca/mac"
20     "${WEBCORE_DIR}/platform/graphics/cocoa"
21     "${WEBCORE_DIR}/platform/graphics/cg"
22     "${WEBCORE_DIR}/platform/graphics/opentype"
23     "${WEBCORE_DIR}/platform/graphics/mac"
24     "${WEBCORE_DIR}/platform/mac"
25     "${WEBCORE_DIR}/platform/network/cocoa"
26     "${WEBCORE_DIR}/platform/network/cf"
27     "${WEBCORE_DIR}/platform/network/mac"
28     "${WEBCORE_DIR}/platform/text/cf"
29     "${WEBCORE_DIR}/platform/text/mac"
30     "${WEBCORE_DIR}/plugins/mac"
31
32     mac
33     mac/Carbon
34     mac/DefaultDelegates
35     mac/DOM
36     mac/History
37     mac/icu/unicode
38     mac/Misc
39     mac/Panels
40     mac/Plugins
41     mac/Plugins/Hosted
42     mac/Storage
43     mac/WebCoreSupport
44     mac/WebInspector
45     mac/WebView
46     Storage
47 )
48
49 list(APPEND WebKit_SOURCES
50     mac/Carbon/CarbonUtils.m
51     mac/Carbon/CarbonWindowAdapter.mm
52     mac/Carbon/CarbonWindowContentView.m
53     mac/Carbon/CarbonWindowFrame.m
54     mac/Carbon/HIViewAdapter.m
55     mac/Carbon/HIWebView.mm
56
57     mac/History/BinaryPropertyList.cpp
58     mac/History/HistoryPropertyList.mm
59     mac/History/WebBackForwardList.mm
60     mac/History/WebHistory.mm
61     mac/History/WebHistoryItem.mm
62     mac/History/WebURLsWithTitles.m
63
64     mac/Misc/OldWebAssertions.c
65     mac/Misc/WebCache.mm
66     mac/Misc/WebCoreStatistics.mm
67     mac/Misc/WebDownload.mm
68     mac/Misc/WebElementDictionary.mm
69     mac/Misc/WebIconDatabase.mm
70     mac/Misc/WebKitErrors.m
71     mac/Misc/WebKitLogging.m
72     mac/Misc/WebKitNSStringExtras.mm
73     mac/Misc/WebKitStatistics.m
74     mac/Misc/WebKitSystemBits.m
75     mac/Misc/WebKitVersionChecks.m
76     mac/Misc/WebLocalizableStrings.mm
77     mac/Misc/WebLocalizableStringsInternal.mm
78     mac/Misc/WebNSArrayExtras.m
79     mac/Misc/WebNSControlExtras.m
80     mac/Misc/WebNSDataExtras.m
81     mac/Misc/WebNSDictionaryExtras.m
82     mac/Misc/WebNSEventExtras.m
83     mac/Misc/WebNSFileManagerExtras.mm
84     mac/Misc/WebNSImageExtras.m
85     mac/Misc/WebNSObjectExtras.mm
86     mac/Misc/WebNSPasteboardExtras.mm
87     mac/Misc/WebNSPrintOperationExtras.m
88     mac/Misc/WebNSURLExtras.mm
89     mac/Misc/WebNSURLRequestExtras.m
90     mac/Misc/WebNSUserDefaultsExtras.mm
91     mac/Misc/WebNSViewExtras.m
92     mac/Misc/WebNSWindowExtras.m
93     mac/Misc/WebSharingServicePickerController.mm
94     mac/Misc/WebStringTruncator.mm
95     mac/Misc/WebUserContentURLPattern.mm
96
97     mac/Panels/WebAuthenticationPanel.m
98     mac/Panels/WebPanelAuthenticationHandler.m
99
100     mac/Plugins/WebBaseNetscapePluginView.mm
101     mac/Plugins/WebBasePluginPackage.mm
102     mac/Plugins/WebNetscapeContainerCheckContextInfo.mm
103     mac/Plugins/WebNetscapeContainerCheckPrivate.mm
104     mac/Plugins/WebNetscapePluginEventHandler.mm
105     mac/Plugins/WebNetscapePluginEventHandlerCarbon.mm
106     mac/Plugins/WebNetscapePluginEventHandlerCocoa.mm
107     mac/Plugins/WebNetscapePluginPackage.mm
108     mac/Plugins/WebNetscapePluginStream.mm
109     mac/Plugins/WebNetscapePluginView.mm
110     mac/Plugins/WebPluginContainerCheck.mm
111     mac/Plugins/WebPluginController.mm
112     mac/Plugins/WebPluginDatabase.mm
113     mac/Plugins/WebPluginPackage.mm
114     mac/Plugins/WebPluginRequest.m
115     mac/Plugins/WebPluginsPrivate.m
116     mac/Plugins/npapi.mm
117
118     mac/Plugins/Hosted/HostedNetscapePluginStream.mm
119     mac/Plugins/Hosted/NetscapePluginHostManager.mm
120     mac/Plugins/Hosted/NetscapePluginHostProxy.mm
121     mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm
122     mac/Plugins/Hosted/ProxyInstance.mm
123     mac/Plugins/Hosted/ProxyRuntimeObject.mm
124     mac/Plugins/Hosted/WebHostedNetscapePluginView.mm
125     mac/Plugins/Hosted/WebKitPluginAgent.defs
126     mac/Plugins/Hosted/WebKitPluginAgentReply.defs
127     mac/Plugins/Hosted/WebKitPluginClient.defs
128     mac/Plugins/Hosted/WebKitPluginHost.defs
129     mac/Plugins/Hosted/WebKitPluginHostTypes.defs
130     mac/Plugins/Hosted/WebTextInputWindowController.m
131
132     mac/Storage/WebDatabaseManager.mm
133     mac/Storage/WebDatabaseManagerClient.mm
134     mac/Storage/WebDatabaseQuotaManager.mm
135     mac/Storage/WebStorageManager.mm
136     mac/Storage/WebStorageTrackerClient.mm
137
138     mac/WebCoreSupport/CorrectionPanel.mm
139     mac/WebCoreSupport/PopupMenuMac.mm
140     mac/WebCoreSupport/SearchPopupMenuMac.mm
141     mac/WebCoreSupport/WebAlternativeTextClient.mm
142     mac/WebCoreSupport/WebApplicationCache.mm
143     mac/WebCoreSupport/WebApplicationCacheQuotaManager.mm
144     mac/WebCoreSupport/WebChromeClient.mm
145     mac/WebCoreSupport/WebContextMenuClient.mm
146     mac/WebCoreSupport/WebDeviceOrientationClient.mm
147     mac/WebCoreSupport/WebDragClient.mm
148     mac/WebCoreSupport/WebEditorClient.mm
149     mac/WebCoreSupport/WebFrameLoaderClient.mm
150     mac/WebCoreSupport/WebFrameNetworkingContext.mm
151     mac/WebCoreSupport/WebGeolocationClient.mm
152     mac/WebCoreSupport/WebIconDatabaseClient.mm
153     mac/WebCoreSupport/WebInspectorClient.mm
154     mac/WebCoreSupport/WebJavaScriptTextInputPanel.m
155     mac/WebCoreSupport/WebKeyGenerator.mm
156     mac/WebCoreSupport/WebKitFullScreenListener.mm
157     mac/WebCoreSupport/WebNotificationClient.mm
158     mac/WebCoreSupport/WebOpenPanelResultListener.mm
159     mac/WebCoreSupport/WebPlatformStrategies.mm
160     mac/WebCoreSupport/WebProgressTrackerClient.mm
161     mac/WebCoreSupport/WebSecurityOrigin.mm
162     mac/WebCoreSupport/WebSystemInterface.mm
163     mac/WebCoreSupport/WebUserMediaClient.mm
164     mac/WebCoreSupport/WebViewGroup.mm
165
166     mac/WebInspector/WebInspector.mm
167     mac/WebInspector/WebInspectorFrontend.mm
168     mac/WebInspector/WebNodeHighlight.mm
169     mac/WebInspector/WebNodeHighlightView.mm
170     mac/WebInspector/WebNodeHighlighter.mm
171
172     mac/WebView/WebArchive.mm
173     mac/WebView/WebClipView.mm
174     mac/WebView/WebDashboardRegion.mm
175     mac/WebView/WebDataSource.mm
176     mac/WebView/WebDelegateImplementationCaching.mm
177     mac/WebView/WebDeviceOrientation.mm
178     mac/WebView/WebDeviceOrientationProviderMock.mm
179     mac/WebView/WebDocumentLoaderMac.mm
180     mac/WebView/WebDynamicScrollBarsView.mm
181     mac/WebView/WebFormDelegate.m
182     mac/WebView/WebFrame.mm
183     mac/WebView/WebFrameView.mm
184     mac/WebView/WebFullScreenController.mm
185     mac/WebView/WebGeolocationPosition.mm
186     mac/WebView/WebHTMLRepresentation.mm
187     mac/WebView/WebHTMLView.mm
188     mac/WebView/WebIndicateLayer.mm
189     mac/WebView/WebJSPDFDoc.mm
190     mac/WebView/WebNavigationData.mm
191     mac/WebView/WebNotification.mm
192     mac/WebView/WebPDFDocumentExtras.mm
193     mac/WebView/WebPDFRepresentation.mm
194     mac/WebView/WebPDFView.mm
195     mac/WebView/WebPolicyDelegate.mm
196     mac/WebView/WebPreferences.mm
197     mac/WebView/WebResource.mm
198     mac/WebView/WebScriptDebugDelegate.mm
199     mac/WebView/WebScriptDebugger.mm
200     mac/WebView/WebScriptWorld.mm
201     mac/WebView/WebTextCompletionController.mm
202     mac/WebView/WebTextIterator.mm
203     mac/WebView/WebView.mm
204     mac/WebView/WebViewData.mm
205 )
206
207 set(WebKit_LIBRARY_TYPE SHARED)
208
209 set(WebKitLegacy_FORWARDING_HEADERS_DIRECTORIES
210     mac/DOM
211     mac/History
212     mac/Misc
213     mac/Panels
214     mac/Plugins
215     mac/WebCoreSupport
216     mac/WebInspector
217     mac/WebView
218     ${DERIVED_SOURCES_WEBCORE_DIR}
219     ${WEBCORE_DIR}/bindings/objc
220     ${WEBCORE_DIR}/plugins
221 )
222
223 set(WebKitLegacy_FORWARDING_HEADERS_FILES
224     mac/DOM/WebDOMOperations.h
225
226     mac/History/WebHistory.h
227     mac/History/WebHistoryItem.h
228
229     mac/Misc/WebNSURLExtras.h
230
231     mac/Panels/WebPanelAuthenticationHandler.h
232
233     mac/Plugins/WebBasePluginPackage.h
234
235     mac/WebCoreSupport/WebKeyGenerator.h
236
237     mac/WebInspector/WebInspector.h
238
239     mac/WebView/WebFrame.h
240     mac/WebView/WebView.h
241
242     ${DERIVED_SOURCES_WEBCORE_DIR}/DOMRange.h
243
244     ${WEBCORE_DIR}/bindings/objc/DOMCore.h
245     ${WEBCORE_DIR}/bindings/objc/DOMExtensions.h
246
247     ${WEBCORE_DIR}/plugins/npfunctions.h
248 )
249
250 add_definitions("-include WebKitPrefix.h")
251
252 set_source_files_properties(
253     ${WEBKIT_DIR}/mac/Carbon/CarbonUtils.m
254     ${WEBKIT_DIR}/mac/Carbon/CarbonWindowContentView.m
255     ${WEBKIT_DIR}/mac/Carbon/CarbonWindowFrame.m
256     ${WEBKIT_DIR}/mac/Carbon/HIViewAdapter.m
257     mac/History/WebURLsWithTitles.m
258
259     mac/Misc/OldWebAssertions.c
260
261     mac/Misc/WebKitErrors.m
262     mac/Misc/WebKitLogging.m
263     mac/Misc/WebKitStatistics.m
264     mac/Misc/WebKitSystemBits.m
265     mac/Misc/WebKitVersionChecks.m
266     mac/Misc/WebNSArrayExtras.m
267     mac/Misc/WebNSControlExtras.m
268     mac/Misc/WebNSDataExtras.m
269     mac/Misc/WebNSDictionaryExtras.m
270     mac/Misc/WebNSEventExtras.m
271     mac/Misc/WebNSImageExtras.m
272     mac/Misc/WebNSPrintOperationExtras.m
273     mac/Misc/WebNSURLRequestExtras.m
274     mac/Misc/WebNSViewExtras.m
275     mac/Misc/WebNSWindowExtras.m
276
277     mac/Panels/WebAuthenticationPanel.m
278     mac/Panels/WebPanelAuthenticationHandler.m
279
280     mac/Plugins/WebPluginRequest.m
281     mac/Plugins/WebPluginsPrivate.m
282
283     mac/Plugins/Hosted/WebTextInputWindowController.m
284
285     mac/WebCoreSupport/WebJavaScriptTextInputPanel.m
286
287     mac/WebView/WebFormDelegate.m
288 PROPERTIES COMPILE_FLAGS -std=c99)
289
290 WEBKIT_CREATE_FORWARDING_HEADERS(WebKitLegacy DIRECTORIES ${WebKitLegacy_FORWARDING_HEADERS_DIRECTORIES} FILES ${WebKitLegacy_FORWARDING_HEADERS_FILES})