Remove code for handling NetworkProcess authentication challenges in WebProcess
[WebKit-https.git] / Source / WebKit2 / DerivedSources.make
1 # Copyright (C) 2010, 2011, 2012 Apple Inc. All rights reserved.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
5 # are met:
6 # 1.  Redistributions of source code must retain the above copyright
7 #     notice, this list of conditions and the following disclaimer.
8 # 2.  Redistributions in binary form must reproduce the above copyright
9 #     notice, this list of conditions and the following disclaimer in the
10 #     documentation and/or other materials provided with the distribution.
11 #
12 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
13 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
16 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
18 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
19 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
23 VPATH = \
24     $(WebKit2) \
25     $(WebKit2)/NetworkProcess \
26     $(WebKit2)/PluginProcess \
27     $(WebKit2)/PluginProcess/mac \
28     $(WebKit2)/Shared/Plugins \
29     $(WebKit2)/Shared \
30     $(WebKit2)/Shared/mac \
31     $(WebKit2)/Shared/Authentication \
32     $(WebKit2)/Shared/Network/CustomProtocols \
33     $(WebKit2)/SharedWorkerProcess \
34     $(WebKit2)/WebProcess/ApplicationCache \
35     $(WebKit2)/WebProcess/Cookies \
36     $(WebKit2)/WebProcess/FullScreen \
37     $(WebKit2)/WebProcess/Geolocation \
38     $(WebKit2)/WebProcess/IconDatabase \
39     $(WebKit2)/WebProcess/MediaCache \
40     $(WebKit2)/WebProcess/Network \
41     $(WebKit2)/WebProcess/Notifications \
42     $(WebKit2)/WebProcess/Plugins \
43     $(WebKit2)/WebProcess/ResourceCache \
44     $(WebKit2)/WebProcess/Storage \
45     $(WebKit2)/WebProcess/WebCoreSupport \
46     $(WebKit2)/WebProcess/WebPage \
47     $(WebKit2)/WebProcess \
48     $(WebKit2)/UIProcess \
49     $(WebKit2)/UIProcess/Downloads \
50     $(WebKit2)/UIProcess/Network \
51     $(WebKit2)/UIProcess/Network/CustomProtocols \
52     $(WebKit2)/UIProcess/Notifications \
53     $(WebKit2)/UIProcess/Plugins \
54     $(WebKit2)/UIProcess/SharedWorkers \
55     $(WebKit2)/UIProcess/mac \
56 #
57
58 MESSAGE_RECEIVERS = \
59     AuthenticationManager \
60     CustomProtocolManager \
61     CustomProtocolManagerProxy \
62     DrawingArea \
63     DrawingAreaProxy \
64     DownloadProxy \
65     EventDispatcher \
66     NetworkProcess \
67     NetworkProcessConnection \
68     NetworkProcessProxy \
69     NPObjectMessageReceiver \
70     PluginControllerProxy \
71     PluginProcess \
72     PluginProcessConnection \
73     PluginProcessProxy \
74     PluginProxy \
75     SharedWorkerProcess \
76     SharedWorkerProcessProxy \
77     WebApplicationCacheManager \
78     WebApplicationCacheManagerProxy \
79     WebCookieManager \
80     WebCookieManagerProxy \
81     WebConnection \
82     NetworkConnectionToWebProcess \
83     RemoteLayerTreeHost \
84     SecItemShim \
85     SecItemShimProxy \
86     WebContext \
87     WebDatabaseManager \
88     WebDatabaseManagerProxy \
89     WebFullScreenManager \
90     WebFullScreenManagerProxy \
91     WebGeolocationManager \
92     WebGeolocationManagerProxy \
93     WebIconDatabase \
94     WebIconDatabaseProxy \
95     WebInspector \
96     WebInspectorProxy \
97     WebKeyValueStorageManager \
98     WebKeyValueStorageManagerProxy \
99     WebMediaCacheManager \
100     WebMediaCacheManagerProxy \
101     WebNotificationManagerProxy \
102     WebNotificationManager \
103     WebPage \
104     WebPageGroupProxy \
105     WebPageProxy \
106     WebProcess \
107     WebProcessConnection \
108     WebProcessProxy \
109     WebResourceCacheManager \
110     WebResourceCacheManagerProxy \
111     WebResourceLoader \
112 #
113
114 SCRIPTS = \
115     $(WebKit2)/Scripts/generate-message-receiver.py \
116     $(WebKit2)/Scripts/generate-messages-header.py \
117     $(WebKit2)/Scripts/webkit2/__init__.py \
118     $(WebKit2)/Scripts/webkit2/messages.py \
119     $(WebKit2)/Scripts/webkit2/model.py \
120     $(WebKit2)/Scripts/webkit2/parser.py \
121 #
122
123 .PHONY : all
124
125 all : \
126     $(MESSAGE_RECEIVERS:%=%MessageReceiver.cpp) \
127     $(MESSAGE_RECEIVERS:%=%Messages.h) \
128 #
129
130 %MessageReceiver.cpp : %.messages.in $(SCRIPTS)
131         @echo Generating messages header for $*...
132         @python $(WebKit2)/Scripts/generate-message-receiver.py $< > $@
133
134 %Messages.h : %.messages.in $(SCRIPTS)
135         @echo Generating message receiver for $*...
136         @python $(WebKit2)/Scripts/generate-messages-header.py $< > $@
137
138 # Mac-specific rules
139
140 ifeq ($(OS),MACOS)
141
142 FRAMEWORK_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(FRAMEWORK_SEARCH_PATHS) | perl -e 'print "-F " . join(" -F ", split(" ", <>));')
143 HEADER_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(HEADER_SEARCH_PATHS) | perl -e 'print "-I" . join(" -I", split(" ", <>));')
144 TEXT_PREPROCESSOR_FLAGS=-E -P -x c -traditional -w
145
146 ifneq ($(SDKROOT),)
147         SDK_FLAGS=-isysroot $(SDKROOT)
148 endif
149
150 SANDBOX_PROFILES = \
151         com.apple.WebProcess.sb
152
153 all: $(SANDBOX_PROFILES)
154
155 %.sb : %.sb.in
156         @echo Pre-processing $* sandbox profile...
157         $(CC) $(SDK_FLAGS) $(TEXT_PREPROCESSOR_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" $< > $@
158
159 endif # MACOS
160
161 # ------------------------
162
163 # Windows-specific rules
164
165 ifeq ($(OS),Windows_NT)
166
167 all : HeaderDetection.h
168
169 HeaderDetection.h : DerivedSources.make
170         if [ -f "$(WEBKITLIBRARIESDIR)/include/WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsBase.h" ] && [ ! -f "$(WEBKITLIBRARIESDIR)/include/cairo/cairo.h" ]; then echo "#define HAVE_WKQCA 1" > $@; else echo > $@; fi
171         if [ -f "$(WEBKITLIBRARIESDIR)/include/AVFoundationCF/AVCFBase.h" ]; then echo "#define HAVE_AVCF 1" >> $@; else echo >> $@; fi
172
173 endif # Windows_NT