306acd9e48bc5acc69735580bd9f48791e54e017
[vlc.git] / modules / gui / qt4 / Makefile.am
1 basedir = gui
2
3 include $(top_srcdir)/modules/common.am
4
5 ## Howto
6 # For each Q_OBJECT:
7 #   - Add *.moc.cpp to nodist_..._SOURCES
8 #   - Add *.cpp to ..._SOURCES
9 #   - Add *.hpp to ..._SOURCES
10 # For each UI
11 #   - Add *.ui to ..._UI
12 #   - Add *.h to nodist_..._SOURCES
13 # For each ressource (icon, png, ...)
14 #   - Add it to DEPS_res
15
16 SUFFIXES = .ui .h .hpp .moc.cpp
17
18 libqt4_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(QT_CFLAGS)
19 libqt4_plugin_la_LIBADD = $(AM_LIBADD) $(QT_LIBS)
20 libqt4_plugin_la_LDFLAGS = $(AM_LDFLAGS)
21 if HAVE_OS2
22 else
23 if HAVE_WIN32
24 libqt4_plugin_la_LIBADD += -lole32
25 libqt4_plugin_la_DEPENDENCIES = libqt4_plugin.rc.o
26 else
27 libqt4_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIB) -lX11
28 endif
29 endif
30 if HAVE_DARWIN
31 libqt4_plugin_la_LDFLAGS += -Wl,-framework,Cocoa
32 endif
33
34 libvlc_LTLIBRARIES =  $(LTLIBqt4)
35 EXTRA_LTLIBRARIES = libqt4_plugin.la
36
37 libqt4_plugin_la_SOURCES = \
38         qt4.cpp qt4.hpp \
39         menus.cpp menus.hpp \
40         main_interface.cpp main_interface.hpp \
41         dialogs_provider.cpp dialogs_provider.hpp \
42         input_manager.cpp input_manager.hpp \
43         actions_manager.cpp actions_manager.hpp \
44         extensions_manager.cpp extensions_manager.hpp \
45         recents.cpp recents.hpp \
46         adapters/seekpoints.cpp adapters/seekpoints.hpp \
47         adapters/chromaprint.cpp adapters/chromaprint.hpp \
48         adapters/variables.cpp adapters/variables.hpp \
49         dialogs/playlist.cpp dialogs/playlist.hpp \
50         dialogs/bookmarks.cpp dialogs/bookmarks.hpp \
51         dialogs/preferences.cpp dialogs/preferences.hpp \
52         dialogs/mediainfo.cpp dialogs/mediainfo.hpp \
53         dialogs/ml_configuration.cpp dialogs/ml_configuration.hpp \
54         dialogs/epg.cpp dialogs/epg.hpp \
55         dialogs/extended.cpp dialogs/extended.hpp \
56         dialogs/messages.cpp dialogs/messages.hpp \
57         dialogs/errors.cpp dialogs/errors.hpp \
58         dialogs/external.cpp dialogs/external.hpp \
59         dialogs/plugins.cpp dialogs/plugins.hpp \
60         dialogs/sout.cpp dialogs/sout.hpp \
61         dialogs/convert.cpp dialogs/convert.hpp \
62         dialogs/help.cpp dialogs/help.hpp \
63         dialogs/gototime.cpp dialogs/gototime.hpp \
64         dialogs/toolbar.cpp dialogs/toolbar.hpp \
65         dialogs/open.cpp dialogs/open.hpp \
66         dialogs/openurl.cpp dialogs/openurl.hpp \
67         dialogs/vlm.cpp dialogs/vlm.hpp \
68         dialogs/firstrun.cpp dialogs/firstrun.hpp \
69         dialogs/podcast_configuration.cpp dialogs/podcast_configuration.hpp \
70         dialogs/extensions.cpp dialogs/extensions.hpp \
71         dialogs/fingerprintdialog.cpp dialogs/fingerprintdialog.hpp \
72         components/extended_panels.cpp components/extended_panels.hpp \
73         components/info_panels.cpp components/info_panels.hpp \
74         components/info_widgets.cpp components/info_widgets.hpp \
75         components/preferences_widgets.cpp components/preferences_widgets.hpp \
76         components/complete_preferences.cpp \
77                 components/complete_preferences.hpp \
78         components/simple_preferences.cpp components/simple_preferences.hpp \
79         components/open_panels.cpp components/open_panels.hpp \
80         components/interface_widgets.cpp components/interface_widgets.hpp \
81         components/controller.cpp components/controller.hpp \
82         components/controller_widget.cpp components/controller_widget.hpp \
83         components/epg/EPGChannels.cpp components/epg/EPGChannels.hpp \
84         components/epg/EPGItem.cpp components/epg/EPGItem.hpp \
85         components/epg/EPGRuler.cpp components/epg/EPGRuler.hpp \
86         components/epg/EPGView.cpp components/epg/EPGView.hpp \
87         components/epg/EPGWidget.cpp components/epg/EPGWidget.hpp \
88         components/playlist/views.cpp components/playlist/views.hpp \
89         components/playlist/ml_item.cpp components/playlist/ml_item.hpp \
90         components/playlist/ml_model.cpp components/playlist/ml_model.hpp \
91         components/playlist/vlc_model.cpp components/playlist/vlc_model.hpp \
92         components/playlist/playlist_model.cpp \
93                 components/playlist/playlist_model.hpp \
94         components/playlist/playlist_item.cpp \
95                 components/playlist/playlist_item.hpp \
96         components/playlist/standardpanel.cpp \
97                 components/playlist/standardpanel.hpp \
98         components/playlist/playlist.cpp components/playlist/playlist.hpp \
99         components/playlist/selector.cpp components/playlist/selector.hpp \
100                 components/playlist/sorting.h \
101         components/sout/profile_selector.cpp \
102                 components/sout/profile_selector.hpp \
103         components/sout/sout_widgets.cpp components/sout/sout_widgets.hpp \
104                 components/sout/profiles.hpp \
105         util/input_slider.cpp util/input_slider.hpp \
106         util/timetooltip.cpp util/timetooltip.hpp \
107         util/customwidgets.cpp util/customwidgets.hpp \
108         util/searchlineedit.cpp util/searchlineedit.hpp \
109         util/registry.cpp util/registry.hpp \
110         util/qmenuview.cpp util/qmenuview.hpp \
111         util/qt_dirs.cpp util/qt_dirs.hpp \
112         util/pictureflow.cpp util/pictureflow.hpp \
113         util/validators.cpp util/validators.hpp \
114         util/buttons/BrowseButton.cpp util/buttons/BrowseButton.hpp \
115         util/buttons/DeckButtonsLayout.cpp util/buttons/DeckButtonsLayout.hpp \
116         util/buttons/RoundButton.cpp util/buttons/RoundButton.hpp \
117                 util/qvlcframe.hpp \
118                 util/qvlcapp.hpp \
119                 util/singleton.hpp \
120         styles/seekstyle.cpp styles/seekstyle.hpp
121 if HAVE_WIN32
122 libqt4_plugin_la_SOURCES += main_interface_win32.cpp
123 endif
124
125 # Meta-object compilation
126
127 moc_verbose = $(moc_verbose_$(V))
128 moc_verbose_ = $(moc_verbose__$(AM_DEFAULT_VERBOSITY))
129 moc_verbose_0 = @echo "  MOC   " $@;
130 moc_verbose__0 = $(moc_verbose_0)
131
132 .hpp.moc.cpp:
133         $(moc_verbose)$(MOC) $(MOC_CPPFLAGS) -o $@ $<
134
135 # These MOC files depend on the configure settings:
136 dialogs_provider.moc.cpp dialogs/vlm.moc.cpp: $(top_builddir)/config.h
137
138 nodist_libqt4_plugin_la_SOURCES = \
139         main_interface.moc.cpp \
140         menus.moc.cpp \
141         dialogs_provider.moc.cpp \
142         input_manager.moc.cpp \
143         actions_manager.moc.cpp \
144         extensions_manager.moc.cpp \
145         recents.moc.cpp \
146         adapters/seekpoints.moc.cpp \
147         adapters/chromaprint.moc.cpp \
148         adapters/variables.moc.cpp \
149         dialogs/playlist.moc.cpp \
150         dialogs/bookmarks.moc.cpp \
151         dialogs/mediainfo.moc.cpp \
152         dialogs/extended.moc.cpp \
153         dialogs/messages.moc.cpp \
154         dialogs/epg.moc.cpp \
155         dialogs/errors.moc.cpp \
156         dialogs/external.moc.cpp \
157         dialogs/plugins.moc.cpp \
158         dialogs/preferences.moc.cpp \
159         dialogs/sout.moc.cpp \
160         dialogs/convert.moc.cpp \
161         dialogs/help.moc.cpp \
162         dialogs/gototime.moc.cpp \
163         dialogs/toolbar.moc.cpp \
164         dialogs/open.moc.cpp \
165         dialogs/openurl.moc.cpp \
166         dialogs/podcast_configuration.moc.cpp \
167         dialogs/vlm.moc.cpp \
168         dialogs/firstrun.moc.cpp \
169         dialogs/extensions.moc.cpp \
170         dialogs/fingerprintdialog.moc.cpp \
171         dialogs/ml_configuration.moc.cpp \
172         components/extended_panels.moc.cpp \
173         components/info_panels.moc.cpp \
174         components/info_widgets.moc.cpp \
175         components/preferences_widgets.moc.cpp \
176         components/complete_preferences.moc.cpp \
177         components/simple_preferences.moc.cpp \
178         components/open_panels.moc.cpp \
179         components/interface_widgets.moc.cpp \
180         components/controller.moc.cpp \
181         components/controller_widget.moc.cpp \
182         components/epg/EPGChannels.moc.cpp \
183         components/epg/EPGRuler.moc.cpp \
184         components/epg/EPGView.moc.cpp \
185         components/epg/EPGWidget.moc.cpp \
186         components/playlist/views.moc.cpp \
187         components/playlist/vlc_model.moc.cpp \
188         components/playlist/playlist_model.moc.cpp \
189         components/playlist/playlist.moc.cpp \
190         components/playlist/standardpanel.moc.cpp \
191         components/playlist/selector.moc.cpp \
192         components/playlist/ml_model.moc.cpp \
193         components/sout/profile_selector.moc.cpp \
194         components/sout/sout_widgets.moc.cpp \
195         util/input_slider.moc.cpp \
196         util/timetooltip.moc.cpp \
197         util/customwidgets.moc.cpp \
198         util/searchlineedit.moc.cpp \
199         util/qmenuview.moc.cpp \
200         util/qvlcapp.moc.cpp \
201         util/pictureflow.moc.cpp \
202         util/validators.moc.cpp \
203         util/buttons/RoundButton.moc.cpp \
204         util/buttons/DeckButtonsLayout.moc.cpp \
205         util/buttons/BrowseButton.moc.cpp \
206         styles/seekstyle.moc.cpp
207
208 nodist_libqt4_plugin_la_SOURCES += \
209         ui/equalizer.h \
210         ui/video_effects.h \
211         ui/open_file.h \
212         ui/open_disk.h \
213         ui/open_net.h \
214         ui/open_capture.h \
215         ui/open.h \
216         ui/vlm.h \
217         ui/podcast_configuration.h \
218         ui/profiles.h \
219         ui/sprefs_audio.h \
220         ui/sprefs_input.h \
221         ui/sprefs_interface.h \
222         ui/sprefs_subtitles.h \
223         ui/sprefs_video.h \
224         ui/streampanel.h \
225         ui/messages_panel.h \
226         ui/about.h \
227         ui/update.h \
228         ui/fingerprintdialog.h \
229         ui/sout.h
230
231 # User interface compilation
232
233 uic_verbose = $(uic_verbose_$(V))
234 uic_verbose_ = $(uic_verbose__$(AM_DEFAULT_VERBOSITY))
235 uic_verbose_0 = @echo "  UIC   " $@;
236 uic_verbose__0 = $(uic_verbose_0)
237
238 MOC_CPPFLAGS = $(DEFS) \
239         -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) \
240         $(libqt4_plugin_la_CPPFLAGS)
241 if HAVE_DARWIN
242 MOC_CPPFLAGS += -DQ_OS_MAC
243 endif
244 if HAVE_WIN32
245 MOC_CPPFLAGS += -D_WIN32
246 endif
247
248 libqt4_plugin_la_UI = \
249         ui/equalizer.ui \
250         ui/video_effects.ui \
251         ui/open_file.ui \
252         ui/open_disk.ui \
253         ui/open_net.ui \
254         ui/open_capture.ui \
255         ui/open.ui \
256         ui/podcast_configuration.ui \
257         ui/profiles.ui \
258         ui/sprefs_audio.ui \
259         ui/sprefs_input.ui \
260         ui/sprefs_interface.ui \
261         ui/sprefs_subtitles.ui \
262         ui/sprefs_video.ui \
263         ui/streampanel.ui \
264         ui/messages_panel.ui \
265         ui/about.ui \
266         ui/update.ui \
267         ui/sout.ui \
268         ui/vlm.ui \
269         ui/fingerprintdialog.ui
270 EXTRA_DIST = $(libqt4_plugin_la_UI)
271
272 .ui.h:
273         $(AM_V_at)mkdir -p -- ui
274         $(AM_V_at)rm -f $@ $@.tmp
275         $(AM_V_at)echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
276         $(uic_verbose)$(UIC) -tr "Q_" $< >> $@.tmp
277         $(AM_V_at)sed -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp >$@
278         $(AM_V_at)rm -f $@.tmp
279
280 # Resources
281
282 DEPS_res = \
283         pixmaps/arrow_down_dark.png \
284         pixmaps/clear.png \
285         pixmaps/eject.png \
286         pixmaps/faster.png \
287         pixmaps/faster2.png \
288         pixmaps/go-next.png \
289         pixmaps/menus/exit_16px.png \
290         pixmaps/menus/help_16px.png \
291         pixmaps/menus/info_16px.png \
292         pixmaps/menus/messages_16px.png \
293         pixmaps/menus/playlist_16px.png \
294         pixmaps/menus/preferences_16px.png \
295         pixmaps/menus/quit_16px.png \
296         pixmaps/menus/settings_16px.png \
297         pixmaps/menus/stream_16px.png \
298         pixmaps/next.png \
299         pixmaps/next_16px.png \
300         pixmaps/noart-64.png \
301         pixmaps/noart.png \
302         pixmaps/pause.png \
303         pixmaps/pause_16px.png \
304         pixmaps/play.png \
305         pixmaps/play_16px.png \
306         pixmaps/playlist/add.png \
307         pixmaps/playlist/jumpto.png \
308         pixmaps/playlist/playlist.png \
309         pixmaps/playlist/remove.png \
310         pixmaps/playlist/repeat_all.png \
311         pixmaps/playlist/repeat_off.png \
312         pixmaps/playlist/repeat_one.png \
313         pixmaps/playlist/shuffle_off.png \
314         pixmaps/playlist/shuffle_on.png \
315         pixmaps/playlist/dropzone.png \
316         pixmaps/playlist/sidebar-icons/capture.png \
317         pixmaps/playlist/sidebar-icons/pictures.png \
318         pixmaps/playlist/sidebar-icons/disc.png \
319         pixmaps/playlist/sidebar-icons/playlist.png \
320         pixmaps/playlist/sidebar-icons/lan.png \
321         pixmaps/playlist/sidebar-icons/podcast.png \
322         pixmaps/playlist/sidebar-icons/library.png \
323         pixmaps/playlist/sidebar-icons/screen.png \
324         pixmaps/playlist/sidebar-icons/movie.png \
325         pixmaps/playlist/sidebar-icons/mtp.png \
326         pixmaps/playlist/sidebar-icons/music.png \
327         pixmaps/playlist/sidebar-icons/network.png \
328         pixmaps/playlist/sidebar-icons/sd/appletrailers.png \
329         pixmaps/playlist/sidebar-icons/sd/icecast.png \
330         pixmaps/playlist/sidebar-icons/sd/metachannels.png \
331         pixmaps/playlist/sidebar-icons/sd/katsomo.png \
332         pixmaps/playlist/sidebar-icons/sd/fmc.png \
333         pixmaps/playlist/sidebar-icons/sd/frenchtv.png \
334         pixmaps/playlist/sidebar-icons/sd/jamendo.png \
335         pixmaps/playlist/sidebar-icons/sd/assembleenationale.png \
336         pixmaps/prefs/advprefs_audio.png \
337         pixmaps/prefs/advprefs_codec.png \
338         pixmaps/prefs/advprefs_extended.png \
339         pixmaps/prefs/advprefs_intf.png \
340         pixmaps/prefs/advprefs_playlist.png \
341         pixmaps/prefs/advprefs_sout.png \
342         pixmaps/prefs/advprefs_video.png \
343         pixmaps/prefs/spref_cone_Audio_64.png \
344         pixmaps/prefs/spref_cone_Hotkeys_64.png \
345         pixmaps/prefs/spref_cone_Input_64.png \
346         pixmaps/prefs/spref_cone_Interface_64.png \
347         pixmaps/prefs/spref_cone_Subtitles_64.png \
348         pixmaps/prefs/spref_cone_Video_64.png \
349         pixmaps/previous.png \
350         pixmaps/previous_16px.png \
351         pixmaps/profile_new.png \
352         pixmaps/sample_complete.png \
353         pixmaps/sample_minimal.png \
354         pixmaps/sample_skins.png \
355         pixmaps/slower.png \
356         pixmaps/slower2.png \
357         pixmaps/space.png \
358         pixmaps/stop.png \
359         pixmaps/stop_16px.png \
360         pixmaps/toolbar/arrows.png \
361         pixmaps/toolbar/aspect-ratio.png \
362         pixmaps/toolbar/atob.png \
363         pixmaps/toolbar/atob_noa.png \
364         pixmaps/toolbar/atob_nob.png \
365         pixmaps/toolbar/defullscreen.png \
366         pixmaps/toolbar/dvd_menu.png \
367         pixmaps/toolbar/dvd_next.png \
368         pixmaps/toolbar/dvd_prev.png \
369         pixmaps/toolbar/extended_16px.png \
370         pixmaps/toolbar/frame-by-frame.png \
371         pixmaps/toolbar/fullscreen.png \
372         pixmaps/toolbar/play_reverse.png \
373         pixmaps/toolbar/record_16px.png \
374         pixmaps/toolbar/snapshot.png \
375         pixmaps/toolbar/skip_for.png \
376         pixmaps/toolbar/skip_back.png \
377         pixmaps/toolbar/tv.png \
378         pixmaps/toolbar/tvtelx.png \
379         pixmaps/toolbar/visu.png \
380         pixmaps/toolbar/volume-high.png \
381         pixmaps/toolbar/volume-low.png \
382         pixmaps/toolbar/volume-medium.png \
383         pixmaps/toolbar/volume-muted.png \
384         pixmaps/toolbar/volume-slider-inside.png \
385         pixmaps/toolbar/volume-slider-outside.png \
386         pixmaps/types/capture-card_16px.png \
387         pixmaps/types/cdda_16px.png \
388         pixmaps/types/disc_16px.png \
389         pixmaps/types/file-asym_16px.png \
390         pixmaps/types/file-wide_16px.png \
391         pixmaps/types/folder-blue_16px.png \
392         pixmaps/types/folder-grey_16px.png \
393         pixmaps/types/harddisk_16px.png \
394         pixmaps/types/network_16px.png \
395         pixmaps/types/tape_16px.png \
396         pixmaps/types/type_directory.png \
397         pixmaps/types/type_file.png \
398         pixmaps/types/type_net.png \
399         pixmaps/types/type_node.png \
400         pixmaps/types/type_playlist.png \
401         pixmaps/types/type_unknown.xpm \
402         pixmaps/util/wait0.png \
403         pixmaps/util/wait1.png \
404         pixmaps/util/wait2.png \
405         pixmaps/util/wait3.png \
406         pixmaps/util/wait4.png \
407         pixmaps/win7/win7thumbnail_pause.png \
408         pixmaps/win7/win7thumbnail_prev.png \
409         pixmaps/win7/win7thumbnail_next.png \
410         pixmaps/win7/win7thumbnail_play.png \
411         pixmaps/update.png \
412         pixmaps/valid.png \
413         pixmaps/search_clear.png \
414         pixmaps/lock.png
415 EXTRA_DIST += vlc.qrc $(DEPS_res)
416
417 nodist_libqt4_plugin_la_SOURCES += resources.cpp
418
419 resources.cpp: vlc.qrc $(DEPS_res)
420         $(AM_V_GEN)$(RCC) -name vlc -o $@ $<
421
422
423 BUILT_SOURCES += $(nodist_libqt4_plugin_la_SOURCES)