Qt4 - Fix error in a previous commit.
[vlc.git] / modules / gui / qt4 / Modules.am
1 # vim:syntax=make
2 ## Howto
3 # For each Q_OBJECT:
4 #   - Add it without extension to TOMOC
5 #   - Add the moc.cpp to BUILT_SOURCES and nodist_SOURCES_qt4
6 #   - Add the cpp to SOURCES_qt4
7 #   - Add the hpp to EXTRA_DIST
8 # For each UI
9 #   - Add it without extension to TOUI
10 #   - Add it to EXTRA_DIST
11
12 AUTOMAKE_OPTIONS = subdir-objects
13
14 TOUI =  \
15         ui/equalizer \
16         ui/video_effects \
17         ui/open_file \
18         ui/open_disk \
19         ui/open_net \
20         ui/open_capture \
21         ui/open \
22         ui/main_interface \
23         ui/sprefs_audio \
24         ui/sprefs_input \
25         ui/sprefs_interface \
26         ui/sprefs_subtitles \
27         ui/sprefs_video \
28         ui/sprefs_hotkeys \
29         ui/streampanel \
30         ui/sout
31
32
33 UIH = $(TOUI:%=%.h)
34
35 TOMOC = main_interface \
36         menus \
37         dialogs_provider \
38         input_manager \
39         playlist_model \
40         dialogs/playlist \
41         dialogs/preferences \
42         dialogs/messages \
43         dialogs/errors \
44         dialogs/mediainfo \
45         dialogs/extended \
46         dialogs/interaction \
47         dialogs/sout \
48         dialogs/help \
49         dialogs/gototime \
50         dialogs/open \
51         components/extended_panels \
52         components/infopanels \
53         components/preferences_widgets \
54         components/complete_preferences \
55         components/simple_preferences \
56         components/open \
57         components/interface_widgets \
58         components/playlist/panels \
59         components/playlist/selector \
60         util/input_slider \
61         util/customwidgets
62 MOCCPP = $(TOMOC:%=%.moc.cpp)
63
64 nodist_SOURCES_qt4 = \
65                 main_interface.moc.cpp \
66                 menus.moc.cpp \
67                 dialogs_provider.moc.cpp \
68                 input_manager.moc.cpp \
69                 playlist_model.moc.cpp \
70                 dialogs/playlist.moc.cpp \
71                 dialogs/mediainfo.moc.cpp \
72                 dialogs/extended.moc.cpp \
73                 dialogs/messages.moc.cpp \
74                 dialogs/errors.moc.cpp \
75                 dialogs/preferences.moc.cpp \
76                 dialogs/interaction.moc.cpp \
77                 dialogs/sout.moc.cpp \
78                 dialogs/help.moc.cpp \
79                 dialogs/gototime.moc.cpp \
80                 dialogs/open.moc.cpp \
81                 components/extended_panels.moc.cpp \
82                 components/infopanels.moc.cpp \
83                 components/preferences_widgets.moc.cpp \
84                 components/complete_preferences.moc.cpp \
85                 components/simple_preferences.moc.cpp \
86                 components/open.moc.cpp \
87                 components/interface_widgets.moc.cpp \
88                 components/playlist/panels.moc.cpp \
89                 components/playlist/selector.moc.cpp \
90                 util/input_slider.moc.cpp \
91                 util/customwidgets.moc.cpp \
92                 resources.cpp
93
94 if ENABLE_QT4
95 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
96 endif
97
98 resources.cpp: res.qrc
99         $(RCC) -name vlc -o $@ $<
100
101 $(MOCCPP): %.moc.cpp: %.hpp
102         @echo "$(MOC) $< -> $@"
103         $(MOC) -o $@ $<
104
105 $(UIH): %.h: %.ui
106         mkdir -p -- ui
107         @echo "$(UIC) $< -> $@"
108         rm -f $@
109         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.uih-tmp
110         $(UIC) -tr "Q_" $< >> $@.uih-tmp
111         sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.uih-tmp
112         mv $@.uih-tmp $@
113
114 SOURCES_qt4 =   qt4.cpp \
115                 menus.cpp \
116                 main_interface.cpp \
117                 dialogs_provider.cpp \
118                 input_manager.cpp \
119                 playlist_model.cpp \
120                 dialogs/playlist.cpp \
121                 dialogs/preferences.cpp \
122                 dialogs/mediainfo.cpp \
123                 dialogs/extended.cpp \
124                 dialogs/messages.cpp \
125                 dialogs/errors.cpp \
126                 dialogs/interaction.cpp \
127                 dialogs/sout.cpp \
128                 dialogs/help.cpp \
129                 dialogs/gototime.cpp \
130                 dialogs/open.cpp \
131                 components/extended_panels.cpp \
132                 components/infopanels.cpp \
133                 components/preferences_widgets.cpp \
134                 components/complete_preferences.cpp \
135                 components/simple_preferences.cpp \
136                 components/open.cpp \
137                 components/interface_widgets.cpp \
138                 components/playlist/standardpanel.cpp \
139                 components/playlist/selector.cpp \
140                 util/input_slider.cpp \
141                 util/customwidgets.cpp \
142                 $(NULL)
143
144 EXTRA_DIST += \
145         qt4.hpp \
146         menus.hpp \
147         main_interface.hpp \
148         dialogs_provider.hpp \
149         input_manager.hpp \
150         playlist_model.hpp \
151         res.qrc \
152         dialogs/playlist.hpp \
153         dialogs/mediainfo.hpp \
154         dialogs/extended.hpp \
155         dialogs/messages.hpp \
156         dialogs/errors.hpp \
157         dialogs/preferences.hpp \
158         dialogs/interaction.hpp \
159         dialogs/sout.hpp \
160         dialogs/help.hpp \
161         dialogs/gototime.hpp \
162         dialogs/open.hpp \
163         components/extended_panels.hpp \
164         components/infopanels.hpp \
165         components/preferences_widgets.hpp \
166         components/complete_preferences.hpp \
167         components/simple_preferences.hpp \
168         components/open.hpp \
169         components/interface_widgets.hpp \
170         components/playlist/panels.hpp \
171         components/playlist/selector.hpp \
172         util/input_slider.hpp \
173         util/directslider.hpp \
174         util/customwidgets.hpp \
175         util/qvlcframe.hpp \
176         ui/equalizer.ui \
177         ui/video_effects.ui \
178         ui/open_file.ui \
179         ui/open_disk.ui \
180         ui/open_net.ui \
181         ui/open_capture.ui \
182         ui/open.ui \
183         ui/main_interface.ui \
184         ui/sprefs_audio.ui \
185         ui/sprefs_input.ui \
186         ui/sprefs_interface.ui \
187         ui/sprefs_hotkeys.ui \
188         ui/sprefs_subtitles.ui \
189         ui/sprefs_video.ui \
190         ui/streampanel.ui \
191         ui/sout.ui \
192         pixmaps/advanced.xpm \
193         pixmaps/audio.xpm \
194         pixmaps/codec.xpm \
195         pixmaps/intf.xpm \
196         pixmaps/type_net.xpm \
197         pixmaps/type_playlist.xpm \
198         pixmaps/video.xpm \
199         pixmaps/hotkeys_50x50.xpm \
200         pixmaps/audio_50x50.xpm \
201         pixmaps/input_and_codecs_50x50.xpm \
202         pixmaps/interface_50x50.xpm \
203         pixmaps/playlist_50x50.xpm \
204         pixmaps/subtitles_50x50.xpm \
205         pixmaps/video_50x50.xpm