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