1 # Copyright (C) 2010, 2011, 2012 Apple Inc. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
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.
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.
25 $(WebKit2)/NetworkProcess \
26 $(WebKit2)/PluginProcess \
27 $(WebKit2)/PluginProcess/mac \
28 $(WebKit2)/Shared/Plugins \
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 \
58 AuthenticationManager \
59 CustomProtocolManager \
60 CustomProtocolManagerProxy \
66 NetworkProcessConnection \
68 NPObjectMessageReceiver \
69 PluginControllerProxy \
71 PluginProcessConnection \
75 SharedWorkerProcessProxy \
76 WebApplicationCacheManager \
77 WebApplicationCacheManagerProxy \
79 WebCookieManagerProxy \
81 NetworkConnectionToWebProcess \
85 WebDatabaseManagerProxy \
86 WebFullScreenManager \
87 WebFullScreenManagerProxy \
88 WebGeolocationManager \
89 WebGeolocationManagerProxy \
91 WebIconDatabaseProxy \
94 WebKeyValueStorageManager \
95 WebKeyValueStorageManagerProxy \
96 WebMediaCacheManager \
97 WebMediaCacheManagerProxy \
98 WebNotificationManagerProxy \
99 WebNotificationManager \
104 WebProcessConnection \
106 WebResourceCacheManager \
107 WebResourceCacheManagerProxy \
112 $(WebKit2)/Scripts/generate-message-receiver.py \
113 $(WebKit2)/Scripts/generate-messages-header.py \
114 $(WebKit2)/Scripts/webkit2/__init__.py \
115 $(WebKit2)/Scripts/webkit2/messages.py \
116 $(WebKit2)/Scripts/webkit2/model.py \
117 $(WebKit2)/Scripts/webkit2/parser.py \
123 $(MESSAGE_RECEIVERS:%=%MessageReceiver.cpp) \
124 $(MESSAGE_RECEIVERS:%=%Messages.h) \
127 %MessageReceiver.cpp : %.messages.in $(SCRIPTS)
128 @echo Generating messages header for $*...
129 @python $(WebKit2)/Scripts/generate-message-receiver.py $< > $@
131 %Messages.h : %.messages.in $(SCRIPTS)
132 @echo Generating message receiver for $*...
133 @python $(WebKit2)/Scripts/generate-messages-header.py $< > $@
139 FRAMEWORK_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(FRAMEWORK_SEARCH_PATHS) | perl -e 'print "-F " . join(" -F ", split(" ", <>));')
140 HEADER_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(HEADER_SEARCH_PATHS) | perl -e 'print "-I" . join(" -I", split(" ", <>));')
141 TEXT_PREPROCESSOR_FLAGS=-E -P -x c -traditional -w
144 SDK_FLAGS=-isysroot $(SDKROOT)
148 com.apple.WebProcess.sb \
149 com.apple.WebKit.PluginProcess.sb
151 all: $(SANDBOX_PROFILES)
154 @echo Pre-processing $* sandbox profile...
155 $(CC) $(SDK_FLAGS) $(TEXT_PREPROCESSOR_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" $< > $@
159 # ------------------------
161 # Windows-specific rules
163 ifeq ($(OS),Windows_NT)
165 all : HeaderDetection.h
167 HeaderDetection.h : DerivedSources.make
168 if [ -f "$(WEBKITLIBRARIESDIR)/include/WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsBase.h" ] && [ ! -f "$(WEBKITLIBRARIESDIR)/include/cairo/cairo.h" ]; then echo "#define HAVE_WKQCA 1" > $@; else echo > $@; fi
169 if [ -f "$(WEBKITLIBRARIESDIR)/include/AVFoundationCF/AVCFBase.h" ]; then echo "#define HAVE_AVCF 1" >> $@; else echo >> $@; fi