Uses altglass' artwork for repeat/shuffle and add buttons.
[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 CLEANFILES += dialogs/about.hpp
14 SUFFIXES += .ui .h .hpp .moc.cpp
15
16 nodist_SOURCES_qt4 = \
17                 main_interface.moc.cpp \
18                 menus.moc.cpp \
19                 dialogs_provider.moc.cpp \
20                 input_manager.moc.cpp \
21                 playlist_model.moc.cpp \
22                 dialogs/playlist.moc.cpp \
23                 dialogs/mediainfo.moc.cpp \
24                 dialogs/extended.moc.cpp \
25                 dialogs/messages.moc.cpp \
26                 dialogs/errors.moc.cpp \
27                 dialogs/preferences.moc.cpp \
28                 dialogs/interaction.moc.cpp \
29                 dialogs/sout.moc.cpp \
30                 dialogs/help.moc.cpp \
31                 dialogs/gototime.moc.cpp \
32                 dialogs/open.moc.cpp \
33                 dialogs/podcast_configuration.moc.cpp \
34                 components/extended_panels.moc.cpp \
35                 components/infopanels.moc.cpp \
36                 components/preferences_widgets.moc.cpp \
37                 components/complete_preferences.moc.cpp \
38                 components/simple_preferences.moc.cpp \
39                 components/open.moc.cpp \
40                 components/interface_widgets.moc.cpp \
41                 components/playlist/panels.moc.cpp \
42                 components/playlist/selector.moc.cpp \
43                 util/input_slider.moc.cpp \
44                 util/customwidgets.moc.cpp \
45                 resources.cpp \
46                 ui/equalizer.h \
47                 ui/spatializer.h \
48                 ui/video_effects.h \
49                 ui/open_file.h \
50                 ui/open_disk.h \
51                 ui/open_net.h \
52                 ui/open_capture.h \
53                 ui/open.h \
54                 ui/podcast_configuration.h \
55                 ui/sprefs_audio.h \
56                 ui/sprefs_input.h \
57                 ui/sprefs_interface.h \
58                 ui/sprefs_subtitles.h \
59                 ui/sprefs_video.h \
60                 ui/sprefs_hotkeys.h \
61                 ui/streampanel.h \
62                 ui/vlm.h \
63                 ui/sout.h
64
65 if ENABLE_QT4
66 BUILT_SOURCES += $(nodist_SOURCES_qt4) dialogs/about.hpp
67 endif
68
69 resources.cpp: res.qrc
70         $(RCC) -name vlc -o $@ $<
71
72 .hpp.moc.cpp:
73         $(MOC) -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 -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp
81         mv -f $@.tmp $@
82
83 dialogs/help.cpp: dialogs/about.hpp
84
85 dialogs/about.hpp: Modules.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
86         mkdir -p -- dialogs
87         echo "/* Automatically generated file - DO NOT EDIT */" > dialogs/about.hpp.tmp
88         echo "static const char psz_license[] =" >> dialogs/about.hpp.tmp
89         cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\"" }' >> dialogs/about.hpp.tmp
90         echo ";" >> dialogs/about.hpp.tmp
91         echo "static const char psz_thanks[] =" >> dialogs/about.hpp.tmp
92         grep -v '$$Id:'  $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\"" }' >> dialogs/about.hpp.tmp
93         echo ";" >> dialogs/about.hpp.tmp
94         echo "static const char psz_authors[] =" >> dialogs/about.hpp.tmp
95         grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\"" }' >> dialogs/about.hpp.tmp
96         echo ";" >> dialogs/about.hpp.tmp
97         mv -f -- dialogs/about.hpp.tmp dialogs/about.hpp
98
99 SOURCES_qt4 =   qt4.cpp \
100                 menus.cpp \
101                 main_interface.cpp \
102                 dialogs_provider.cpp \
103                 input_manager.cpp \
104                 playlist_model.cpp \
105                 dialogs/playlist.cpp \
106                 dialogs/preferences.cpp \
107                 dialogs/mediainfo.cpp \
108                 dialogs/extended.cpp \
109                 dialogs/messages.cpp \
110                 dialogs/errors.cpp \
111                 dialogs/interaction.cpp \
112                 dialogs/sout.cpp \
113                 dialogs/help.cpp \
114                 dialogs/gototime.cpp \
115                 dialogs/open.cpp \
116                 dialogs/podcast_configuration.cpp \
117                 components/extended_panels.cpp \
118                 components/infopanels.cpp \
119                 components/preferences_widgets.cpp \
120                 components/complete_preferences.cpp \
121                 components/simple_preferences.cpp \
122                 components/open.cpp \
123                 components/interface_widgets.cpp \
124                 components/playlist/standardpanel.cpp \
125                 components/playlist/selector.cpp \
126                 util/input_slider.cpp \
127                 util/customwidgets.cpp
128
129 noinst_HEADERS = \
130         qt4.hpp \
131         menus.hpp \
132         main_interface.hpp \
133         dialogs_provider.hpp \
134         input_manager.hpp \
135         playlist_model.hpp \
136         dialogs/playlist.hpp \
137         dialogs/mediainfo.hpp \
138         dialogs/extended.hpp \
139         dialogs/messages.hpp \
140         dialogs/errors.hpp \
141         dialogs/preferences.hpp \
142         dialogs/interaction.hpp \
143         dialogs/sout.hpp \
144         dialogs/about.hpp \
145         dialogs/help.hpp \
146         dialogs/gototime.hpp \
147         dialogs/open.hpp \
148         dialogs/podcast_configuration.hpp \
149         components/extended_panels.hpp \
150         components/infopanels.hpp \
151         components/preferences_widgets.hpp \
152         components/complete_preferences.hpp \
153         components/simple_preferences.hpp \
154         components/open.hpp \
155         components/interface_widgets.hpp \
156         components/playlist/panels.hpp \
157         components/playlist/selector.hpp \
158         util/input_slider.hpp \
159         util/directslider.hpp \
160         util/customwidgets.hpp \
161         util/qvlcframe.hpp
162
163 EXTRA_DIST += \
164         res.qrc \
165         ui/equalizer.ui \
166         ui/spatializer.ui \
167         ui/video_effects.ui \
168         ui/open_file.ui \
169         ui/open_disk.ui \
170         ui/open_net.ui \
171         ui/open_capture.ui \
172         ui/open.ui \
173         ui/podcast_configuration.ui \
174         ui/sprefs_audio.ui \
175         ui/sprefs_input.ui \
176         ui/sprefs_interface.ui \
177         ui/sprefs_hotkeys.ui \
178         ui/sprefs_subtitles.ui \
179         ui/sprefs_video.ui \
180         ui/streampanel.ui \
181         ui/sout.ui \
182         ui/vlm.ui \
183         pixmaps/advanced.xpm \
184         pixmaps/audio.xpm \
185         pixmaps/codec.xpm \
186         pixmaps/intf.xpm \
187         pixmaps/type_net.xpm \
188         pixmaps/type_playlist.xpm \
189         pixmaps/video.xpm \
190         pixmaps/type_unknown.xpm \
191         pixmaps/type_file.xpm \
192         pixmaps/type_card.xpm \
193         pixmaps/type_disc.xpm \
194         pixmaps/type_cdda.xpm \
195         pixmaps/type_directory.xpm \
196         pixmaps/type_node.xpm \
197         pixmaps/go-next.png \
198         pixmaps/next.png \
199         pixmaps/noart.png \
200         pixmaps/playlist_icon.png \
201         pixmaps/play.png \
202         pixmaps/pause.png \
203         pixmaps/previous.png \
204         pixmaps/spref_cone_Audio_64.png \
205         pixmaps/spref_cone_Hotkeys_64.png \
206         pixmaps/spref_cone_Input_64.png \
207         pixmaps/spref_cone_Interface_64.png \
208         pixmaps/spref_cone_Subtitles_64.png \
209         pixmaps/spref_cone_Video_64.png \
210         pixmaps/stop.png \
211         pixmaps/volume-high.png \
212         pixmaps/volume-low.png \
213         pixmaps/volume-muted.png \
214         pixmaps/vlc_help_16px.png \
215         pixmaps/vlc_stop_16px.png \
216         pixmaps/vlc_play_16px.png \
217         pixmaps/vlc_pause_16px.png \
218         pixmaps/vlc_messages_16px.png \
219         pixmaps/vlc_network_16px.png \
220         pixmaps/vlc_stream_16px.png \
221         pixmaps/vlc_quit_16px.png \
222         pixmaps/vlc_disc_16px.png \
223         pixmaps/vlc_network_16px.png \
224         pixmaps/vlc_capture-card_16px.png \
225         pixmaps/vlc_preferences_16px.png \
226         pixmaps/vlc_settings_16px.png \
227         pixmaps/vlc_playlist_16px.png \
228         pixmaps/vlc_folder-grey_16px.png \
229         pixmaps/vlc_folder-blue_16px.png \
230         pixmaps/vlc_tape_16px.png \
231         pixmaps/vlc_file-asym_16px.png \
232         pixmaps/vlc_file-wide_16px.png \
233         pixmaps/vlc_info_16px.png \
234         pixmaps/vlc_previous_16px.png \
235         pixmaps/vlc_next_16px.png \
236         pixmaps/vlc_playlist_add.png \
237         pixmaps/vlc_playlist_repeat_off.png \
238         pixmaps/vlc_playlist_repeat_all.png \
239         pixmaps/vlc_playlist_repeat_one.png \
240         pixmaps/vlc_shuffle_on.png \
241         pixmaps/vlc_shuffle_off.png