47dbbee8f36984f28daf51ec6d0d18665bf30d90
[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.moc.cpp \
43                 components/playlist/panels.moc.cpp \
44                 components/playlist/selector.moc.cpp \
45                 util/input_slider.moc.cpp \
46                 util/customwidgets.moc.cpp \
47                 resources.cpp \
48                 ui/equalizer.h \
49                 ui/v4l2.h \
50                 ui/video_effects.h \
51                 ui/open_file.h \
52                 ui/open_disk.h \
53                 ui/open_net.h \
54                 ui/open_capture.h \
55                 ui/open.h \
56                 ui/vlm.h \
57                 ui/podcast_configuration.h \
58                 ui/sprefs_audio.h \
59                 ui/sprefs_input.h \
60                 ui/sprefs_interface.h \
61                 ui/sprefs_subtitles.h \
62                 ui/sprefs_video.h \
63                 ui/streampanel.h \
64                 ui/sout.h
65
66 if ENABLE_QT4
67 BUILT_SOURCES += $(nodist_SOURCES_qt4)
68 endif
69
70 resources.cpp: res.qrc
71         $(RCC) -name vlc -o $@ $<
72
73 .hpp.moc.cpp:
74         $(MOC) $(DEFS) $(CPPFLAGS) -I$(top_builddir) `$(VLC_CONFIG) --cppflags plugin qt4` -o $@ $<
75
76 .ui.h:
77         mkdir -p -- ui
78         rm -f $@ $@.tmp
79         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
80         $(UIC) -tr "Q_" $< >> $@.tmp
81         sed -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp >$@
82         rm -f $@.tmp
83
84 SOURCES_qt4 =   qt4.cpp \
85                 menus.cpp \
86                 main_interface.cpp \
87                 dialogs_provider.cpp \
88                 input_manager.cpp \
89                 dialogs/playlist.cpp \
90                 dialogs/bookmarks.cpp \
91                 dialogs/preferences.cpp \
92                 dialogs/mediainfo.cpp \
93                 dialogs/extended.cpp \
94                 dialogs/messages.cpp \
95                 dialogs/errors.cpp \
96                 dialogs/interaction.cpp \
97                 dialogs/sout.cpp \
98                 dialogs/help.cpp \
99                 dialogs/gototime.cpp \
100                 dialogs/open.cpp \
101                 dialogs/vlm.cpp \
102                 dialogs/podcast_configuration.cpp \
103                 components/extended_panels.cpp \
104                 components/info_panels.cpp \
105                 components/preferences_widgets.cpp \
106                 components/complete_preferences.cpp \
107                 components/simple_preferences.cpp \
108                 components/open_panels.cpp \
109                 components/interface_widgets.cpp \
110                 components/playlist/playlist_model.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/panels.hpp \
147         components/playlist/playlist.hpp \
148         components/playlist/selector.hpp \
149         util/input_slider.hpp \
150         util/customwidgets.hpp \
151         util/qvlcframe.hpp \
152         util/registry.hpp
153
154 EXTRA_DIST += \
155         res.qrc \
156         ui/equalizer.ui \
157         ui/v4l2.ui \
158         ui/video_effects.ui \
159         ui/open_file.ui \
160         ui/open_disk.ui \
161         ui/open_net.ui \
162         ui/open_capture.ui \
163         ui/open.ui \
164         ui/podcast_configuration.ui \
165         ui/sprefs_audio.ui \
166         ui/sprefs_input.ui \
167         ui/sprefs_interface.ui \
168         ui/sprefs_subtitles.ui \
169         ui/sprefs_video.ui \
170         ui/streampanel.ui \
171         ui/sout.ui \
172         ui/vlm.ui \
173         pixmaps/advprefs_audio.png \
174         pixmaps/advprefs_codec.png \
175         pixmaps/advprefs_extended.png \
176         pixmaps/advprefs_intf.png \
177         pixmaps/advprefs_playlist.png \
178         pixmaps/advprefs_sout.png \
179         pixmaps/advprefs_video.png \
180         pixmaps/capture-card_16px.png \
181         pixmaps/cdda_16px.png \
182         pixmaps/disc_16px.png \
183         pixmaps/file-asym_16px.png \
184         pixmaps/file-wide_16px.png \
185         pixmaps/folder-blue_16px.png \
186         pixmaps/folder-grey_16px.png \
187         pixmaps/go-next.png \
188         pixmaps/harddisk_16px.png \
189         pixmaps/menus_help_16px.png \
190         pixmaps/menus_info_16px.png \
191         pixmaps/menus_messages_16px.png \
192         pixmaps/menus_preferences_16px.png \
193         pixmaps/menus_quit_16px.png \
194         pixmaps/menus_settings_16px.png \
195         pixmaps/menus_stream_16px.png \
196         pixmaps/network_16px.png \
197         pixmaps/next_16px.png \
198         pixmaps/next.png \
199         pixmaps/noart.png \
200         pixmaps/pause_16px.png \
201         pixmaps/pause.png \
202         pixmaps/play_16px.png \
203         pixmaps/playlist_16px.png \
204         pixmaps/playlist_add.png \
205         pixmaps/playlist.png \
206         pixmaps/playlist_repeat_all.png \
207         pixmaps/playlist_repeat_off.png \
208         pixmaps/playlist_repeat_one.png \
209         pixmaps/playlist_shuffle_off.png \
210         pixmaps/playlist_shuffle_on.png \
211         pixmaps/play.png \
212         pixmaps/previous_16px.png \
213         pixmaps/previous.png \
214         pixmaps/record_16px.png \
215         pixmaps/spref_cone_Audio_64.png \
216         pixmaps/spref_cone_Hotkeys_64.png \
217         pixmaps/spref_cone_Input_64.png \
218         pixmaps/spref_cone_Interface_64.png \
219         pixmaps/spref_cone_Subtitles_64.png \
220         pixmaps/spref_cone_Video_64.png \
221         pixmaps/stop_16px.png \
222         pixmaps/stop.png \
223         pixmaps/tape_16px.png \
224         pixmaps/type_directory.png \
225         pixmaps/type_file.png \
226         pixmaps/type_net.png \
227         pixmaps/type_node.png \
228         pixmaps/type_playlist.png \
229         pixmaps/type_unknown.xpm \
230         pixmaps/volume-high.png \
231         pixmaps/volume-medium.png \
232         pixmaps/volume-low.png \
233         pixmaps/volume-muted.png \
234         pixmaps/volume-slider.svg \
235         pixmaps/volume-slider-inside.png \
236         pixmaps/volume-slider-outside.png