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