Move resource loader messaging from NetworkConnectionToWebProcess directly to Network...
[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)/SharedWorkerProcess \
31     $(WebKit2)/WebProcess/ApplicationCache \
32     $(WebKit2)/WebProcess/Authentication \
33     $(WebKit2)/WebProcess/Cookies \
34     $(WebKit2)/WebProcess/FullScreen \
35     $(WebKit2)/WebProcess/Geolocation \
36     $(WebKit2)/WebProcess/IconDatabase \
37     $(WebKit2)/WebProcess/KeyValueStorage \
38     $(WebKit2)/WebProcess/MediaCache \
39     $(WebKit2)/WebProcess/Network \
40     $(WebKit2)/WebProcess/Network/CustomProtocols \
41     $(WebKit2)/WebProcess/Notifications \
42     $(WebKit2)/WebProcess/Plugins \
43     $(WebKit2)/WebProcess/ResourceCache \
44     $(WebKit2)/WebProcess/WebCoreSupport \
45     $(WebKit2)/WebProcess/WebPage \
46     $(WebKit2)/WebProcess \
47     $(WebKit2)/UIProcess \
48     $(WebKit2)/UIProcess/Downloads \
49     $(WebKit2)/UIProcess/Network \
50     $(WebKit2)/UIProcess/Network/CustomProtocols \
51     $(WebKit2)/UIProcess/Notifications \
52     $(WebKit2)/UIProcess/Plugins \
53     $(WebKit2)/UIProcess/SharedWorkers \
54     $(WebKit2)/UIProcess/mac \
55 #
56
57 MESSAGE_RECEIVERS = \
58     AuthenticationManager \
59     CustomProtocolManager \
60     CustomProtocolManagerProxy \
61     DrawingArea \
62     DrawingAreaProxy \
63     DownloadProxy \
64     EventDispatcher \
65     NetworkProcess \
66     NetworkProcessConnection \
67     NetworkProcessProxy \
68     NPObjectMessageReceiver \
69     PluginControllerProxy \
70     PluginProcess \
71     PluginProcessConnection \
72     PluginProcessProxy \
73     PluginProxy \
74     SharedWorkerProcess \
75     SharedWorkerProcessProxy \
76     WebApplicationCacheManager \
77     WebApplicationCacheManagerProxy \
78     WebCookieManager \
79     WebCookieManagerProxy \
80     WebConnection \
81     NetworkConnectionToWebProcess \
82     NetworkResourceLoader \
83     RemoteLayerTreeHost \
84     WebContext \
85     WebDatabaseManager \
86     WebDatabaseManagerProxy \
87     WebFullScreenManager \
88     WebFullScreenManagerProxy \
89     WebGeolocationManager \
90     WebGeolocationManagerProxy \
91     WebIconDatabase \
92     WebIconDatabaseProxy \
93     WebInspector \
94     WebInspectorProxy \
95     WebKeyValueStorageManager \
96     WebKeyValueStorageManagerProxy \
97     WebMediaCacheManager \
98     WebMediaCacheManagerProxy \
99     WebNotificationManagerProxy \
100     WebNotificationManager \
101     WebPage \
102     WebPageGroupProxy \
103     WebPageProxy \
104     WebProcess \
105     WebProcessConnection \
106     WebProcessProxy \
107     WebResourceCacheManager \
108     WebResourceCacheManagerProxy \
109     WebResourceLoader \
110 #
111
112 SCRIPTS = \
113     $(WebKit2)/Scripts/generate-message-receiver.py \
114     $(WebKit2)/Scripts/generate-messages-header.py \
115     $(WebKit2)/Scripts/webkit2/__init__.py \
116     $(WebKit2)/Scripts/webkit2/messages.py \
117     $(WebKit2)/Scripts/webkit2/model.py \
118     $(WebKit2)/Scripts/webkit2/parser.py \
119 #
120
121 .PHONY : all
122
123 all : \
124     $(MESSAGE_RECEIVERS:%=%MessageReceiver.cpp) \
125     $(MESSAGE_RECEIVERS:%=%Messages.h) \
126 #
127
128 %MessageReceiver.cpp : %.messages.in $(SCRIPTS)
129         @echo Generating messages header for $*...
130         @python $(WebKit2)/Scripts/generate-message-receiver.py $< > $@
131
132 %Messages.h : %.messages.in $(SCRIPTS)
133         @echo Generating message receiver for $*...
134         @python $(WebKit2)/Scripts/generate-messages-header.py $< > $@
135
136 # Mac-specific rules
137
138 ifeq ($(OS),MACOS)
139
140 FRAMEWORK_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(FRAMEWORK_SEARCH_PATHS) | perl -e 'print "-F " . join(" -F ", split(" ", <>));')
141 HEADER_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(HEADER_SEARCH_PATHS) | perl -e 'print "-I" . join(" -I", split(" ", <>));')
142 TEXT_PREPROCESSOR_FLAGS=-E -P -x c -traditional -w
143
144 ifneq ($(SDKROOT),)
145         SDK_FLAGS=-isysroot $(SDKROOT)
146 endif
147
148 SANDBOX_PROFILES = \
149         com.apple.WebProcess.sb \
150         com.apple.WebKit.PluginProcess.sb
151
152 all: $(SANDBOX_PROFILES)
153
154 %.sb : %.sb.in
155         @echo Pre-processing $* sandbox profile...
156         $(CC) $(SDK_FLAGS) $(TEXT_PREPROCESSOR_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" $< > $@
157
158 endif # MACOS
159
160 # ------------------------
161
162 # Windows-specific rules
163
164 ifeq ($(OS),Windows_NT)
165
166 all : HeaderDetection.h
167
168 HeaderDetection.h : DerivedSources.make
169         if [ -f "$(WEBKITLIBRARIESDIR)/include/WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsBase.h" ] && [ ! -f "$(WEBKITLIBRARIESDIR)/include/cairo/cairo.h" ]; then echo "#define HAVE_WKQCA 1" > $@; else echo > $@; fi
170         if [ -f "$(WEBKITLIBRARIESDIR)/include/AVFoundationCF/AVCFBase.h" ]; then echo "#define HAVE_AVCF 1" >> $@; else echo >> $@; fi
171
172 endif # Windows_NT