Fix automake warning
[vlc.git] / modules / gui / qt4 / Modules.am
1 # vim:syntax=automake
2 ## Howto
3 # For each Q_OBJECT:
4 #   - Add the .moc.cpp to BUILT_SOURCES and nodist_SOURCES_qt4
5 #   - Add the .cpp to SOURCES_qt4
6 #   - Add the .hpp to EXTRA_DIST
7 # For each UI
8 #   - Add it to EXTRA_DIST
9 #   - Add the .h to nodist_SOURCES_qt4
10
11 AUTOMAKE_OPTIONS = subdir-objects
12 MOSTLYCLEANFILES = $(UIH)
13 SUFFIXES += .ui .h .hpp .moc.cpp
14
15 nodist_SOURCES_qt4 = \
16                 main_interface.moc.cpp \
17                 menus.moc.cpp \
18                 dialogs_provider.moc.cpp \
19                 input_manager.moc.cpp \
20                 dialogs/playlist.moc.cpp \
21                 dialogs/bookmarks.moc.cpp \
22                 dialogs/mediainfo.moc.cpp \
23                 dialogs/extended.moc.cpp \
24                 dialogs/messages.moc.cpp \
25                 dialogs/errors.moc.cpp \
26                 dialogs/preferences.moc.cpp \
27                 dialogs/interaction.moc.cpp \
28                 dialogs/sout.moc.cpp \
29                 dialogs/help.moc.cpp \
30                 dialogs/gototime.moc.cpp \
31                 dialogs/open.moc.cpp \
32                 dialogs/podcast_configuration.moc.cpp \
33                 dialogs/vlm.moc.cpp \
34                 components/extended_panels.moc.cpp \
35                 components/info_panels.moc.cpp \
36                 components/preferences_widgets.moc.cpp \
37                 components/complete_preferences.moc.cpp \
38                 components/simple_preferences.moc.cpp \
39                 components/open_panels.moc.cpp \
40                 components/interface_widgets.moc.cpp \
41                 components/controller.moc.cpp \
42                 components/playlist/playlist_model.moc.cpp \
43                 components/playlist/playlist_item.moc.cpp \
44                 components/playlist/playlist.moc.cpp \
45                 components/playlist/panels.moc.cpp \
46                 components/playlist/selector.moc.cpp \
47                 util/input_slider.moc.cpp \
48                 util/customwidgets.moc.cpp \
49                 resources.cpp \
50                 ui/equalizer.h \
51                 ui/v4l2.h \
52                 ui/video_effects.h \
53                 ui/open_file.h \
54                 ui/open_disk.h \
55                 ui/open_net.h \
56                 ui/open_capture.h \
57                 ui/open.h \
58                 ui/vlm.h \
59                 ui/podcast_configuration.h \
60                 ui/sprefs_audio.h \
61                 ui/sprefs_input.h \
62                 ui/sprefs_interface.h \
63                 ui/sprefs_subtitles.h \
64                 ui/sprefs_video.h \
65                 ui/streampanel.h \
66                 ui/sout.h
67
68 DEPS_res = \
69         pixmaps/prefs/advprefs_audio.png \
70         pixmaps/prefs/advprefs_codec.png \
71         pixmaps/prefs/advprefs_extended.png \
72         pixmaps/prefs/advprefs_intf.png \
73         pixmaps/prefs/advprefs_playlist.png \
74         pixmaps/prefs/advprefs_sout.png \
75         pixmaps/prefs/advprefs_video.png \
76         pixmaps/prefs/spref_cone_Audio_64.png \
77         pixmaps/prefs/spref_cone_Hotkeys_64.png \
78         pixmaps/prefs/spref_cone_Input_64.png \
79         pixmaps/prefs/spref_cone_Interface_64.png \
80         pixmaps/prefs/spref_cone_Subtitles_64.png \
81         pixmaps/prefs/spref_cone_Video_64.png \
82         pixmaps/types/capture-card_16px.png \
83         pixmaps/types/cdda_16px.png \
84         pixmaps/types/disc_16px.png \
85         pixmaps/types/file-asym_16px.png \
86         pixmaps/types/file-wide_16px.png \
87         pixmaps/types/folder-blue_16px.png \
88         pixmaps/types/folder-grey_16px.png \
89         pixmaps/types/harddisk_16px.png \
90         pixmaps/types/network_16px.png \
91         pixmaps/menus/help_16px.png \
92         pixmaps/menus/info_16px.png \
93         pixmaps/menus/messages_16px.png \
94         pixmaps/menus/preferences_16px.png \
95         pixmaps/menus/quit_16px.png \
96         pixmaps/menus/settings_16px.png \
97         pixmaps/menus/stream_16px.png \
98         pixmaps/menus/playlist_16px.png \
99         pixmaps/go-next.png \
100         pixmaps/next_16px.png \
101         pixmaps/next.png \
102         pixmaps/noart.png \
103         pixmaps/pause_16px.png \
104         pixmaps/pause.png \
105         pixmaps/faster.png \
106         pixmaps/slower.png \
107         pixmaps/play_16px.png \
108         pixmaps/playlist/add.png \
109         pixmaps/playlist/playlist.png \
110         pixmaps/playlist/repeat_all.png \
111         pixmaps/playlist/repeat_off.png \
112         pixmaps/playlist/repeat_one.png \
113         pixmaps/playlist/shuffle_off.png \
114         pixmaps/playlist/shuffle_on.png \
115         pixmaps/playlist/jumpto.png \
116         pixmaps/play.png \
117         pixmaps/previous_16px.png \
118         pixmaps/previous.png \
119         pixmaps/stop_16px.png \
120         pixmaps/stop.png \
121         pixmaps/eject.png \
122         pixmaps/update.png \
123         pixmaps/clear.png \
124         pixmaps/arrow_down_dark.png \
125         pixmaps/types/tape_16px.png \
126         pixmaps/types/type_directory.png \
127         pixmaps/types/type_file.png \
128         pixmaps/types/type_net.png \
129         pixmaps/types/type_node.png \
130         pixmaps/types/type_playlist.png \
131         pixmaps/types/type_unknown.xpm \
132         pixmaps/toolbar/extended_16px.png \
133         pixmaps/toolbar/record_16px.png \
134         pixmaps/toolbar/snapshot.png \
135         pixmaps/toolbar/atob.png \
136         pixmaps/toolbar/atob_noa.png \
137         pixmaps/toolbar/atob_nob.png \
138         pixmaps/toolbar/dvd_menu.png \
139         pixmaps/toolbar/dvd_next.png \
140         pixmaps/toolbar/dvd_prev.png \
141         pixmaps/toolbar/tv.png \
142         pixmaps/toolbar/fullscreen.png \
143         pixmaps/toolbar/defullscreen.png \
144         pixmaps/toolbar/tvtelx.png \
145         pixmaps/toolbar/tvtelx-transparent.png \
146         pixmaps/toolbar/volume-high.png \
147         pixmaps/toolbar/volume-medium.png \
148         pixmaps/toolbar/volume-low.png \
149         pixmaps/toolbar/volume-muted.png \
150         pixmaps/toolbar/volume-slider-inside.png \
151         pixmaps/toolbar/volume-slider-outside.png
152
153 BUILT_SOURCES += $(nodist_SOURCES_qt4)
154
155 resources.cpp: vlc.qrc $(DEPS_res)
156         $(RCC) -name vlc -o $@ $<
157
158 .hpp.moc.cpp:
159         $(MOC) $(DEFS) $(CPPFLAGS) -I$(top_builddir) `$(VLC_CONFIG) --cppflags plugin qt4` -o $@ $<
160
161 .ui.h:
162         mkdir -p -- ui
163         rm -f $@ $@.tmp
164         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
165         $(UIC) -tr "Q_" $< >> $@.tmp
166         sed -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp >$@
167         rm -f $@.tmp
168
169 SOURCES_qt4 =   qt4.cpp \
170                 menus.cpp \
171                 main_interface.cpp \
172                 dialogs_provider.cpp \
173                 input_manager.cpp \
174                 dialogs/playlist.cpp \
175                 dialogs/bookmarks.cpp \
176                 dialogs/preferences.cpp \
177                 dialogs/mediainfo.cpp \
178                 dialogs/extended.cpp \
179                 dialogs/messages.cpp \
180                 dialogs/errors.cpp \
181                 dialogs/interaction.cpp \
182                 dialogs/sout.cpp \
183                 dialogs/help.cpp \
184                 dialogs/gototime.cpp \
185                 dialogs/open.cpp \
186                 dialogs/vlm.cpp \
187                 dialogs/podcast_configuration.cpp \
188                 components/extended_panels.cpp \
189                 components/info_panels.cpp \
190                 components/preferences_widgets.cpp \
191                 components/complete_preferences.cpp \
192                 components/simple_preferences.cpp \
193                 components/open_panels.cpp \
194                 components/interface_widgets.cpp \
195                 components/controller.cpp \
196                 components/playlist/playlist_model.cpp \
197                 components/playlist/playlist_item.cpp \
198                 components/playlist/standardpanel.cpp \
199                 components/playlist/playlist.cpp \
200                 components/playlist/selector.cpp \
201                 util/input_slider.cpp \
202                 util/customwidgets.cpp \
203                 util/registry.cpp
204
205 noinst_HEADERS = \
206         qt4.hpp \
207         menus.hpp \
208         main_interface.hpp \
209         dialogs_provider.hpp \
210         input_manager.hpp \
211         dialogs/playlist.hpp \
212         dialogs/bookmarks.hpp \
213         dialogs/mediainfo.hpp \
214         dialogs/extended.hpp \
215         dialogs/messages.hpp \
216         dialogs/errors.hpp \
217         dialogs/preferences.hpp \
218         dialogs/interaction.hpp \
219         dialogs/sout.hpp \
220         dialogs/help.hpp \
221         dialogs/gototime.hpp \
222         dialogs/open.hpp \
223         dialogs/vlm.hpp \
224         dialogs/podcast_configuration.hpp \
225         components/extended_panels.hpp \
226         components/info_panels.hpp \
227         components/preferences_widgets.hpp \
228         components/complete_preferences.hpp \
229         components/simple_preferences.hpp \
230         components/open_panels.hpp \
231         components/interface_widgets.hpp \
232         components/controller.hpp \
233         components/playlist/playlist_model.hpp \
234         components/playlist/playlist_item.hpp \
235         components/playlist/panels.hpp \
236         components/playlist/playlist.hpp \
237         components/playlist/selector.hpp \
238         components/playlist/sorting.h \
239         util/input_slider.hpp \
240         util/customwidgets.hpp \
241         util/qvlcframe.hpp \
242         util/registry.hpp
243
244 EXTRA_DIST += \
245         vlc.qrc \
246         ui/equalizer.ui \
247         ui/v4l2.ui \
248         ui/video_effects.ui \
249         ui/open_file.ui \
250         ui/open_disk.ui \
251         ui/open_net.ui \
252         ui/open_capture.ui \
253         ui/open.ui \
254         ui/podcast_configuration.ui \
255         ui/sprefs_audio.ui \
256         ui/sprefs_input.ui \
257         ui/sprefs_interface.ui \
258         ui/sprefs_subtitles.ui \
259         ui/sprefs_video.ui \
260         ui/streampanel.ui \
261         ui/sout.ui \
262         ui/vlm.ui \
263         $(DEPS_res)
264