9adcc1ba7b8be97dd9c7e75fab94ac4231abcfbd
[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                 components/extended_panels.moc.cpp \
33                 components/infopanels.moc.cpp \
34                 components/preferences_widgets.moc.cpp \
35                 components/complete_preferences.moc.cpp \
36                 components/simple_preferences.moc.cpp \
37                 components/open.moc.cpp \
38                 components/interface_widgets.moc.cpp \
39                 components/playlist/panels.moc.cpp \
40                 components/playlist/selector.moc.cpp \
41                 util/input_slider.moc.cpp \
42                 util/customwidgets.moc.cpp \
43                 resources.cpp \
44                 ui/equalizer.h \
45                 ui/video_effects.h \
46                 ui/open_file.h \
47                 ui/open_disk.h \
48                 ui/open_net.h \
49                 ui/open_capture.h \
50                 ui/open.h \
51                 ui/sprefs_audio.h \
52                 ui/sprefs_input.h \
53                 ui/sprefs_interface.h \
54                 ui/sprefs_subtitles.h \
55                 ui/sprefs_video.h \
56                 ui/sprefs_hotkeys.h \
57                 ui/streampanel.h \
58                 ui/sout.h
59
60 if ENABLE_QT4
61 BUILT_SOURCES += $(nodist_SOURCES_qt4)
62 endif
63
64 resources.cpp: res.qrc
65         $(RCC) -name vlc -o $@ $<
66
67 .hpp.moc.cpp:
68         $(MOC) -o $@ $<
69
70 .ui.h:
71         mkdir -p -- ui
72         rm -f $@ $@.tmp
73         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
74         $(UIC) -tr "Q_" $< >> $@.tmp
75         sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp
76         mv -f $@.tmp $@
77
78 dialogs/help.cpp: dialogs/about.hpp
79
80 dialogs/about.hpp:
81         echo "char *psz_licence = { \\" > dialogs/about.hpp
82         cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
83         echo "};" >> dialogs/about.hpp
84         echo "char *psz_thanks = { \\" >> dialogs/about.hpp
85         cat $(top_srcdir)/THANKS | grep -v '$$Id:' | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\" \\" }' >> dialogs/about.hpp
86         echo "};" >> dialogs/about.hpp
87
88
89 SOURCES_qt4 =   qt4.cpp \
90                 menus.cpp \
91                 main_interface.cpp \
92                 dialogs_provider.cpp \
93                 input_manager.cpp \
94                 playlist_model.cpp \
95                 dialogs/playlist.cpp \
96                 dialogs/preferences.cpp \
97                 dialogs/mediainfo.cpp \
98                 dialogs/extended.cpp \
99                 dialogs/messages.cpp \
100                 dialogs/errors.cpp \
101                 dialogs/interaction.cpp \
102                 dialogs/sout.cpp \
103                 dialogs/help.cpp \
104                 dialogs/gototime.cpp \
105                 dialogs/open.cpp \
106                 components/extended_panels.cpp \
107                 components/infopanels.cpp \
108                 components/preferences_widgets.cpp \
109                 components/complete_preferences.cpp \
110                 components/simple_preferences.cpp \
111                 components/open.cpp \
112                 components/interface_widgets.cpp \
113                 components/playlist/standardpanel.cpp \
114                 components/playlist/selector.cpp \
115                 util/input_slider.cpp \
116                 util/customwidgets.cpp
117
118 noinst_HEADERS = \
119         qt4.hpp \
120         menus.hpp \
121         main_interface.hpp \
122         dialogs_provider.hpp \
123         input_manager.hpp \
124         playlist_model.hpp \
125         dialogs/playlist.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/about.hpp \
134         dialogs/help.hpp \
135         dialogs/gototime.hpp \
136         dialogs/open.hpp \
137         components/extended_panels.hpp \
138         components/infopanels.hpp \
139         components/preferences_widgets.hpp \
140         components/complete_preferences.hpp \
141         components/simple_preferences.hpp \
142         components/open.hpp \
143         components/interface_widgets.hpp \
144         components/playlist/panels.hpp \
145         components/playlist/selector.hpp \
146         util/input_slider.hpp \
147         util/directslider.hpp \
148         util/customwidgets.hpp \
149         util/qvlcframe.hpp
150
151 EXTRA_DIST += \
152         res.qrc \
153         ui/equalizer.ui \
154         ui/video_effects.ui \
155         ui/open_file.ui \
156         ui/open_disk.ui \
157         ui/open_net.ui \
158         ui/open_capture.ui \
159         ui/open.ui \
160         ui/sprefs_audio.ui \
161         ui/sprefs_input.ui \
162         ui/sprefs_interface.ui \
163         ui/sprefs_hotkeys.ui \
164         ui/sprefs_subtitles.ui \
165         ui/sprefs_video.ui \
166         ui/streampanel.ui \
167         ui/sout.ui \
168         pixmaps/advanced.xpm \
169         pixmaps/audio.xpm \
170         pixmaps/codec.xpm \
171         pixmaps/intf.xpm \
172         pixmaps/type_net.xpm \
173         pixmaps/type_playlist.xpm \
174         pixmaps/video.xpm \
175         pixmaps/type_unknown.xpm \
176         pixmaps/type_file.xpm \
177         pixmaps/type_card.xpm \
178         pixmaps/type_disc.xpm \
179         pixmaps/type_cdda.xpm \
180         pixmaps/type_directory.xpm \
181         pixmaps/type_node.xpm \
182         pixmaps/go-next.png \
183         pixmaps/next.png \
184         pixmaps/noart.png \
185         pixmaps/playlist_icon.png \
186         pixmaps/play.png \
187         pixmaps/previous.png \
188         pixmaps/spref_cone_Audio_64.png \
189         pixmaps/spref_cone_Hotkeys_64.png \
190         pixmaps/spref_cone_Input_64.png \
191         pixmaps/spref_cone_Interface_64.png \
192         pixmaps/spref_cone_Subtitles_64.png \
193         pixmaps/spref_cone_Video_64.png \
194         pixmaps/stop.png \
195         pixmaps/volume-high.png \
196         pixmaps/volume-low.png \
197         pixmaps/vlc_help_16px.png \
198         pixmaps/vlc_stop_16px.png \
199         pixmaps/vlc_play_16px.png \
200         pixmaps/vlc_pause_16px.png \
201         pixmaps/vlc_messages_16px.png \
202         pixmaps/vlc_network_16px.png \
203         pixmaps/vlc_stream_16px.png \
204         pixmaps/vlc_quit_16px.png \
205         pixmaps/vlc_disc_16px.png \
206         pixmaps/vlc_network_16px.png \
207         pixmaps/vlc_capture-card_16px.png \
208         pixmaps/vlc_preferences_16px.png \
209         pixmaps/vlc_settings_16px.png \
210         pixmaps/vlc_playlist_16px.png \
211         pixmaps/vlc_folder-grey_16px.png \
212         pixmaps/vlc_folder-blue_16px.png \
213         pixmaps/vlc_tape_16px.png \
214         pixmaps/vlc_file-asym_16px.png \
215         pixmaps/vlc_file-wide_16px.png \
216         pixmaps/vlc_info_16px.png \
217         pixmaps/vlc_previous_16px.png \
218         pixmaps/vlc_next_16px.png