2010-11-04 Ryosuke Niwa <rniwa@webkit.org>
[WebKit-https.git] / WebKit2 / DerivedSources.make
1 VPATH = \
2     $(WebKit2)/PluginProcess \
3     $(WebKit2)/Shared/Plugins \
4     $(WebKit2)/WebProcess/Plugins \
5     $(WebKit2)/WebProcess/WebPage \
6     $(WebKit2)/WebProcess \
7     $(WebKit2)/UIProcess \
8     $(WebKit2)/UIProcess/Plugins \
9 #
10
11 MESSAGE_RECEIVERS = \
12     NPObjectMessageReceiver \
13     PluginControllerProxy \
14     PluginProcess \
15     PluginProcessProxy \
16     PluginProxy \
17     WebInspector \
18     WebPage \
19     WebPageProxy \
20     WebProcess \
21     WebProcessConnection \
22     WebProcessProxy \
23 #
24
25 SCRIPTS = \
26     $(WebKit2)/Scripts/generate-message-receiver.py \
27     $(WebKit2)/Scripts/generate-messages-header.py \
28     $(WebKit2)/Scripts/webkit2/__init__.py \
29     $(WebKit2)/Scripts/webkit2/messages.py \
30 #
31
32 .PHONY : all
33
34 all : \
35     $(MESSAGE_RECEIVERS:%=%MessageReceiver.cpp) \
36     $(MESSAGE_RECEIVERS:%=%Messages.h) \
37 #
38
39 %MessageReceiver.cpp : %.messages.in $(SCRIPTS)
40         @echo Generating messages header for $*...
41         @python $(WebKit2)/Scripts/generate-message-receiver.py $< > $@
42
43 %Messages.h : %.messages.in $(SCRIPTS)
44         @echo Generating message receiver for $*...
45         @python $(WebKit2)/Scripts/generate-messages-header.py $< > $@