Make accelerated compositing work in WebKit2 on Windows
[WebKit-https.git] / Source / WebKit2 / DerivedSources.make
1 # Copyright (C) 2010 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)/PluginProcess \
26     $(WebKit2)/Shared/Plugins \
27     $(WebKit2)/WebProcess/ApplicationCache \
28     $(WebKit2)/WebProcess/Authentication \
29     $(WebKit2)/WebProcess/Cookies \
30     $(WebKit2)/WebProcess/FullScreen \
31     $(WebKit2)/WebProcess/Geolocation \
32     $(WebKit2)/WebProcess/IconDatabase \
33     $(WebKit2)/WebProcess/KeyValueStorage \
34     $(WebKit2)/WebProcess/MediaCache \
35     $(WebKit2)/WebProcess/Plugins \
36     $(WebKit2)/WebProcess/ResourceCache \
37     $(WebKit2)/WebProcess/WebCoreSupport \
38     $(WebKit2)/WebProcess/WebPage \
39     $(WebKit2)/WebProcess \
40     $(WebKit2)/UIProcess \
41     $(WebKit2)/UIProcess/Downloads \
42     $(WebKit2)/UIProcess/Plugins \
43 #
44
45 MESSAGE_RECEIVERS = \
46     AuthenticationManager \
47     DrawingArea \
48     DrawingAreaProxy \
49     DownloadProxy \
50     NPObjectMessageReceiver \
51     PluginControllerProxy \
52     PluginProcess \
53     PluginProcessProxy \
54     PluginProxy \
55     WebApplicationCacheManager \
56     WebApplicationCacheManagerProxy \
57     WebCookieManager \
58     WebCookieManagerProxy \
59     WebContext \
60     WebDatabaseManager \
61     WebDatabaseManagerProxy \
62     WebFullScreenManager \
63     WebFullScreenManagerProxy \
64     WebGeolocationManager \
65     WebGeolocationManagerProxy \
66     WebIconDatabase \
67     WebIconDatabaseProxy \
68     WebInspector \
69     WebInspectorProxy \
70     WebKeyValueStorageManager \
71     WebKeyValueStorageManagerProxy \
72     WebMediaCacheManager \
73     WebMediaCacheManagerProxy \
74     WebPage \
75     WebPageProxy \
76     WebProcess \
77     WebProcessConnection \
78     WebProcessProxy \
79     WebResourceCacheManager \
80     WebResourceCacheManagerProxy \
81 #
82
83 SCRIPTS = \
84     $(WebKit2)/Scripts/generate-message-receiver.py \
85     $(WebKit2)/Scripts/generate-messages-header.py \
86     $(WebKit2)/Scripts/webkit2/__init__.py \
87     $(WebKit2)/Scripts/webkit2/messages.py \
88 #
89
90 .PHONY : all
91
92 all : \
93     $(MESSAGE_RECEIVERS:%=%MessageReceiver.cpp) \
94     $(MESSAGE_RECEIVERS:%=%Messages.h) \
95 #
96
97 %MessageReceiver.cpp : %.messages.in $(SCRIPTS)
98         @echo Generating messages header for $*...
99         @python $(WebKit2)/Scripts/generate-message-receiver.py $< > $@
100
101 %Messages.h : %.messages.in $(SCRIPTS)
102         @echo Generating message receiver for $*...
103         @python $(WebKit2)/Scripts/generate-messages-header.py $< > $@
104
105 # ------------------------
106
107 # Windows-specific rules
108
109 ifeq ($(OS),Windows_NT)
110
111 all : HeaderDetection.h
112
113 HeaderDetection.h : DerivedSources.make
114         if [ -f "$(WEBKITLIBRARIESDIR)/include/WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsBase.h" ]; then echo "#define HAVE_WKQCA 1" > $@; else echo > $@; fi
115
116 endif # Windows_NT