7f556ca666163c5666fd52fb9ccec03e58cd9d1c
[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                 playlist_model.moc.cpp \
21                 dialogs/playlist.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/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/video_effects.h \
48                 ui/open_file.h \
49                 ui/open_disk.h \
50                 ui/open_net.h \
51                 ui/open_capture.h \
52                 ui/open.h \
53                 ui/vlm.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/streampanel.h \
61                 ui/sout.h
62
63 if ENABLE_QT4
64 BUILT_SOURCES += $(nodist_SOURCES_qt4)
65 endif
66
67 resources.cpp: res.qrc
68         $(RCC) -name vlc -o $@ $<
69
70 .hpp.moc.cpp:
71         $(MOC) -o $@ $<
72
73 .ui.h:
74         mkdir -p -- ui
75         rm -f $@ $@.tmp
76         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
77         $(UIC) -tr "Q_" $< >> $@.tmp
78         sed -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp >$@
79         rm -f $@.tmp
80
81 SOURCES_qt4 =   qt4.cpp \
82                 menus.cpp \
83                 main_interface.cpp \
84                 dialogs_provider.cpp \
85                 input_manager.cpp \
86                 playlist_model.cpp \
87                 dialogs/playlist.cpp \
88                 dialogs/preferences.cpp \
89                 dialogs/mediainfo.cpp \
90                 dialogs/extended.cpp \
91                 dialogs/messages.cpp \
92                 dialogs/errors.cpp \
93                 dialogs/interaction.cpp \
94                 dialogs/sout.cpp \
95                 dialogs/help.cpp \
96                 dialogs/gototime.cpp \
97                 dialogs/open.cpp \
98                 dialogs/vlm.cpp \
99                 dialogs/podcast_configuration.cpp \
100                 components/extended_panels.cpp \
101                 components/infopanels.cpp \
102                 components/preferences_widgets.cpp \
103                 components/complete_preferences.cpp \
104                 components/simple_preferences.cpp \
105                 components/open.cpp \
106                 components/interface_widgets.cpp \
107                 components/playlist/standardpanel.cpp \
108                 components/playlist/selector.cpp \
109                 util/input_slider.cpp \
110                 util/customwidgets.cpp
111
112 noinst_HEADERS = \
113         qt4.hpp \
114         menus.hpp \
115         main_interface.hpp \
116         dialogs_provider.hpp \
117         input_manager.hpp \
118         playlist_model.hpp \
119         dialogs/playlist.hpp \
120         dialogs/mediainfo.hpp \
121         dialogs/extended.hpp \
122         dialogs/messages.hpp \
123         dialogs/errors.hpp \
124         dialogs/preferences.hpp \
125         dialogs/interaction.hpp \
126         dialogs/sout.hpp \
127         dialogs/help.hpp \
128         dialogs/gototime.hpp \
129         dialogs/open.hpp \
130         dialogs/vlm.hpp \
131         dialogs/podcast_configuration.hpp \
132         components/extended_panels.hpp \
133         components/infopanels.hpp \
134         components/preferences_widgets.hpp \
135         components/complete_preferences.hpp \
136         components/simple_preferences.hpp \
137         components/open.hpp \
138         components/interface_widgets.hpp \
139         components/playlist/panels.hpp \
140         components/playlist/selector.hpp \
141         util/input_slider.hpp \
142         util/directslider.hpp \
143         util/customwidgets.hpp \
144         util/qvlcframe.hpp
145
146 EXTRA_DIST += \
147         res.qrc \
148         ui/equalizer.ui \
149         ui/video_effects.ui \
150         ui/open_file.ui \
151         ui/open_disk.ui \
152         ui/open_net.ui \
153         ui/open_capture.ui \
154         ui/open.ui \
155         ui/podcast_configuration.ui \
156         ui/sprefs_audio.ui \
157         ui/sprefs_input.ui \
158         ui/sprefs_interface.ui \
159         ui/sprefs_subtitles.ui \
160         ui/sprefs_video.ui \
161         ui/streampanel.ui \
162         ui/sout.ui \
163         ui/vlm.ui \
164         pixmaps/advprefs_audio.png \
165         pixmaps/advprefs_codec.png \
166         pixmaps/advprefs_extended.png \
167         pixmaps/advprefs_intf.png \
168         pixmaps/advprefs_playlist.png \
169         pixmaps/advprefs_sout.png \
170         pixmaps/advprefs_video.png \
171         pixmaps/capture-card_16px.png \
172         pixmaps/cdda_16px.png \
173         pixmaps/disc_16px.png \
174         pixmaps/file-asym_16px.png \
175         pixmaps/file-wide_16px.png \
176         pixmaps/folder-blue_16px.png \
177         pixmaps/folder-grey_16px.png \
178         pixmaps/go-next.png \
179 pixmaps/menus_help_16px.png \
180         pixmaps/menus_info_16px.png \
181         pixmaps/menus_messages_16px.png \
182         pixmaps/menus_preferences_16px.png \
183         pixmaps/menus_quit_16px.png \
184         pixmaps/menus_settings_16px.png \
185         pixmaps/menus_stream_16px.png \
186         pixmaps/network_16px.png \
187         pixmaps/next_16px.png \
188         pixmaps/next.png \
189         pixmaps/noart.png \
190         pixmaps/pause_16px.png \
191         pixmaps/pause.png \
192         pixmaps/play_16px.png \
193         pixmaps/playlist_16px.png \
194         pixmaps/playlist_add.png \
195         pixmaps/playlist.png \
196         pixmaps/playlist_repeat_all.png \
197         pixmaps/playlist_repeat_off.png \
198         pixmaps/playlist_repeat_one.png \
199         pixmaps/playlist_shuffle_off.png \
200         pixmaps/playlist_shuffle_on.png \
201         pixmaps/play.png \
202         pixmaps/previous_16px.png \
203         pixmaps/previous.png \
204         pixmaps/record_16px.png \
205         pixmaps/spref_cone_Audio_64.png \
206         pixmaps/spref_cone_Hotkeys_64.png \
207         pixmaps/spref_cone_Input_64.png \
208         pixmaps/spref_cone_Interface_64.png \
209         pixmaps/spref_cone_Subtitles_64.png \
210         pixmaps/spref_cone_Video_64.png \
211         pixmaps/stop_16px.png \
212         pixmaps/stop.png \
213         pixmaps/tape_16px.png \
214         pixmaps/type_directory.png \
215         pixmaps/type_file.png \
216         pixmaps/type_net.png \
217         pixmaps/type_node.png \
218         pixmaps/type_playlist.png \
219         pixmaps/type_unknown.xpm \
220         pixmaps/volume-high.png \
221         pixmaps/volume-low.png \
222         pixmaps/volume-muted.png