-# vim:syntax=make
+# vim:syntax=automake
## Howto
# For each Q_OBJECT:
-# - Add it without extension to TOMOC
-# - Add the moc.cpp to BUILT_SOURCES and nodist_SOURCES_qt4
-# - Add the cpp to SOURCES_qt4
-# - Add the hpp to EXTRA_DIST
+# - Add the .moc.cpp to BUILT_SOURCES and nodist_SOURCES_qt4
+# - Add the .cpp to SOURCES_qt4
+# - Add the .hpp to EXTRA_DIST
# For each UI
-# - Add it without extension to TOUI
# - Add it to EXTRA_DIST
+# - Add the .h to nodist_SOURCES_qt4
+# For each ressource (icon, png, ...)
+# - Add it to DEPS_res
AUTOMAKE_OPTIONS = subdir-objects
-
-TOUI = \
- ui/equalizer \
- ui/file_open \
- ui/input_stats \
- ui/main_interface \
- ui/sprefs_audio \
- ui/sprefs_interface \
- ui/sprefs_playlist \
- ui/sprefs_subtitles \
- ui/sprefs_trivial \
- ui/sprefs_video \
- ui/streampanel
-
-
-UIH = $(TOUI:%=%.h)
-
-TOMOC = main_interface \
- menus \
- dialogs_provider \
- input_manager \
- playlist_model \
- dialogs/playlist \
- dialogs/prefs_dialog \
- dialogs/messages \
- dialogs/errors \
- dialogs/streaminfo \
- dialogs/extended \
- dialogs/interaction \
- components/extended_panels \
- components/infopanels \
- components/preferences_widgets \
- components/preferences \
- components/simple_preferences \
- components/open \
- components/interface_widgets \
- components/playlist/panels \
- components/playlist/selector \
- util/input_slider \
- util/customwidgets
-MOCCPP = $(TOMOC:%=%.moc.cpp)
+MOSTLYCLEANFILES = $(UIH)
+SUFFIXES = .ui .h .hpp .moc.cpp
nodist_SOURCES_qt4 = \
main_interface.moc.cpp \
menus.moc.cpp \
dialogs_provider.moc.cpp \
input_manager.moc.cpp \
- playlist_model.moc.cpp \
+ actions_manager.moc.cpp \
+ extensions_manager.moc.cpp \
+ recents.moc.cpp \
+ variables.moc.cpp \
dialogs/playlist.moc.cpp \
- dialogs/streaminfo.moc.cpp \
+ dialogs/bookmarks.moc.cpp \
+ dialogs/mediainfo.moc.cpp \
dialogs/extended.moc.cpp \
dialogs/messages.moc.cpp \
+ dialogs/epg.moc.cpp \
dialogs/errors.moc.cpp \
- dialogs/prefs_dialog.moc.cpp \
- dialogs/interaction.moc.cpp \
+ dialogs/external.moc.cpp \
+ dialogs/plugins.moc.cpp \
+ dialogs/preferences.moc.cpp \
+ dialogs/sout.moc.cpp \
+ dialogs/convert.moc.cpp \
+ dialogs/help.moc.cpp \
+ dialogs/gototime.moc.cpp \
+ dialogs/toolbar.moc.cpp \
+ dialogs/open.moc.cpp \
+ dialogs/openurl.moc.cpp \
+ dialogs/podcast_configuration.moc.cpp \
+ dialogs/vlm.moc.cpp \
+ dialogs/firstrun.moc.cpp \
+ dialogs/extensions.moc.cpp \
components/extended_panels.moc.cpp \
- components/infopanels.moc.cpp \
- components/preferences_widgets.moc.cpp \
- components/preferences.moc.cpp \
+ components/info_panels.moc.cpp \
+ components/preferences_widgets.moc.cpp \
+ components/complete_preferences.moc.cpp \
components/simple_preferences.moc.cpp \
- components/open.moc.cpp \
+ components/open_panels.moc.cpp \
components/interface_widgets.moc.cpp \
- components/playlist/panels.moc.cpp \
+ components/controller.moc.cpp \
+ components/controller_widget.moc.cpp \
+ components/epg/EPGChannels.moc.cpp \
+ components/epg/EPGRuler.moc.cpp \
+ components/epg/EPGView.moc.cpp \
+ components/epg/EPGWidget.moc.cpp \
+ components/playlist/icon_view.moc.cpp \
+ components/playlist/playlist_model.moc.cpp \
+ components/playlist/playlist.moc.cpp \
+ components/playlist/standardpanel.moc.cpp \
components/playlist/selector.moc.cpp \
+ components/sout/profile_selector.moc.cpp \
+ components/sout/sout_widgets.moc.cpp \
util/input_slider.moc.cpp \
util/customwidgets.moc.cpp \
- resources.cpp
+ util/qvlcapp.moc.cpp \
+ resources.cpp \
+ ui/equalizer.h \
+ ui/v4l2.h \
+ ui/video_effects.h \
+ ui/open_file.h \
+ ui/open_disk.h \
+ ui/open_net.h \
+ ui/open_capture.h \
+ ui/open.h \
+ ui/vlm.h \
+ ui/podcast_configuration.h \
+ ui/profiles.h \
+ ui/sprefs_audio.h \
+ ui/sprefs_input.h \
+ ui/sprefs_interface.h \
+ ui/sprefs_subtitles.h \
+ ui/sprefs_video.h \
+ ui/streampanel.h \
+ ui/messages_panel.h \
+ ui/sout.h
+
+DEPS_res = \
+ pixmaps/arrow_down_dark.png \
+ pixmaps/clear.png \
+ pixmaps/eject.png \
+ pixmaps/faster.png \
+ pixmaps/go-next.png \
+ pixmaps/menus/help_16px.png \
+ pixmaps/menus/info_16px.png \
+ pixmaps/menus/messages_16px.png \
+ pixmaps/menus/playlist_16px.png \
+ pixmaps/menus/preferences_16px.png \
+ pixmaps/menus/quit_16px.png \
+ pixmaps/menus/settings_16px.png \
+ pixmaps/menus/stream_16px.png \
+ pixmaps/next.png \
+ pixmaps/next_16px.png \
+ pixmaps/noart-64.png \
+ pixmaps/noart.png \
+ pixmaps/pause.png \
+ pixmaps/pause_16px.png \
+ pixmaps/play.png \
+ pixmaps/play_16px.png \
+ pixmaps/playlist/add.png \
+ pixmaps/playlist/jumpto.png \
+ pixmaps/playlist/playlist.png \
+ pixmaps/playlist/remove.png \
+ pixmaps/playlist/repeat_all.png \
+ pixmaps/playlist/repeat_off.png \
+ pixmaps/playlist/repeat_one.png \
+ pixmaps/playlist/shuffle_off.png \
+ pixmaps/playlist/shuffle_on.png \
+ pixmaps/prefs/advprefs_audio.png \
+ pixmaps/prefs/advprefs_codec.png \
+ pixmaps/prefs/advprefs_extended.png \
+ pixmaps/prefs/advprefs_intf.png \
+ pixmaps/prefs/advprefs_playlist.png \
+ pixmaps/prefs/advprefs_sout.png \
+ pixmaps/prefs/advprefs_video.png \
+ pixmaps/prefs/spref_cone_Audio_64.png \
+ pixmaps/prefs/spref_cone_Hotkeys_64.png \
+ pixmaps/prefs/spref_cone_Input_64.png \
+ pixmaps/prefs/spref_cone_Interface_64.png \
+ pixmaps/prefs/spref_cone_Subtitles_64.png \
+ pixmaps/prefs/spref_cone_Video_64.png \
+ pixmaps/previous.png \
+ pixmaps/previous_16px.png \
+ pixmaps/profile_new.png \
+ pixmaps/sample_complete.png \
+ pixmaps/sample_minimal.png \
+ pixmaps/sample_skins.png \
+ pixmaps/slower.png \
+ pixmaps/space.png \
+ pixmaps/stop.png \
+ pixmaps/stop_16px.png \
+ pixmaps/toolbar/arrows.png \
+ pixmaps/toolbar/aspect-ratio.png \
+ pixmaps/toolbar/atob.png \
+ pixmaps/toolbar/atob_noa.png \
+ pixmaps/toolbar/atob_nob.png \
+ pixmaps/toolbar/defullscreen.png \
+ pixmaps/toolbar/dvd_menu.png \
+ pixmaps/toolbar/dvd_next.png \
+ pixmaps/toolbar/dvd_prev.png \
+ pixmaps/toolbar/extended_16px.png \
+ pixmaps/toolbar/frame-by-frame.png \
+ pixmaps/toolbar/fullscreen.png \
+ pixmaps/toolbar/play_reverse.png \
+ pixmaps/toolbar/record_16px.png \
+ pixmaps/toolbar/snapshot.png \
+ pixmaps/toolbar/skip_for.png \
+ pixmaps/toolbar/skip_back.png \
+ pixmaps/toolbar/tv.png \
+ pixmaps/toolbar/tvtelx.png \
+ pixmaps/toolbar/visu.png \
+ pixmaps/toolbar/volume-high.png \
+ pixmaps/toolbar/volume-low.png \
+ pixmaps/toolbar/volume-medium.png \
+ pixmaps/toolbar/volume-muted.png \
+ pixmaps/toolbar/volume-slider-inside.png \
+ pixmaps/toolbar/volume-slider-outside.png \
+ pixmaps/types/capture-card_16px.png \
+ pixmaps/types/cdda_16px.png \
+ pixmaps/types/disc_16px.png \
+ pixmaps/types/file-asym_16px.png \
+ pixmaps/types/file-wide_16px.png \
+ pixmaps/types/folder-blue_16px.png \
+ pixmaps/types/folder-grey_16px.png \
+ pixmaps/types/harddisk_16px.png \
+ pixmaps/types/network_16px.png \
+ pixmaps/types/tape_16px.png \
+ pixmaps/types/type_directory.png \
+ pixmaps/types/type_file.png \
+ pixmaps/types/type_net.png \
+ pixmaps/types/type_node.png \
+ pixmaps/types/type_playlist.png \
+ pixmaps/types/type_unknown.xpm \
+ pixmaps/win7/win7thumbnail_pause.png \
+ pixmaps/win7/win7thumbnail_prev.png \
+ pixmaps/win7/win7thumbnail_next.png \
+ pixmaps/win7/win7thumbnail_play.png \
+ pixmaps/update.png \
+ pixmaps/lock.png
+
+BUILT_SOURCES += $(nodist_SOURCES_qt4)
-if ENABLE_QT4
-BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
-endif
+moc_verbose = $(moc_verbose_$(V))
+moc_verbose_ = $(moc_verbose__$(AM_DEFAULT_VERBOSITY))
+moc_verbose_0 = @echo " MOC " $@;
+moc_verbose__0 = $(moc_verbose_0)
-resources.cpp: res.qrc
- $(RCC) -name vlc -o $@ $<
+uic_verbose = $(uic_verbose_$(V))
+uic_verbose_ = $(uic_verbose__$(AM_DEFAULT_VERBOSITY))
+uic_verbose_0 = @echo " UIC " $@;
+uic_verbose__0 = $(uic_verbose_0)
-$(MOCCPP): %.moc.cpp: %.hpp
- @echo "$(MOC) $< -> $@"
- $(MOC) -o $@ $<
+resources.cpp: vlc.qrc $(DEPS_res)
+ $(AM_V_GEN)$(RCC) -name vlc -o $@ $<
-$(UIH): %.h: %.ui
- $(install_sh) -d ui
- @echo "$(UIC) $< -> $@"
- rm -f $@
- echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
- $(UIC) -tr "Q_" $< >> $@
- sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
+.hpp.moc.cpp:
+ $(moc_verbose)$(MOC) $(DEFS) -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir) `$(VLC_CONFIG) --cppflags plugin qt4` -o $@ $<
+.ui.h:
+ $(AM_V_at)mkdir -p -- ui
+ $(AM_V_at)rm -f $@ $@.tmp
+ $(AM_V_at)echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
+ $(uic_verbose)$(UIC) -tr "Q_" $< >> $@.tmp
+ $(AM_V_at)sed -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp >$@
+ $(AM_V_at)rm -f $@.tmp
SOURCES_qt4 = qt4.cpp \
menus.cpp \
main_interface.cpp \
+ main_interface_win32.cpp \
dialogs_provider.cpp \
input_manager.cpp \
- playlist_model.cpp \
+ actions_manager.cpp \
+ extensions_manager.cpp \
+ recents.cpp \
+ variables.cpp \
dialogs/playlist.cpp \
- dialogs/prefs_dialog.cpp \
- dialogs/streaminfo.cpp \
+ dialogs/bookmarks.cpp \
+ dialogs/preferences.cpp \
+ dialogs/mediainfo.cpp \
+ dialogs/epg.cpp \
dialogs/extended.cpp \
dialogs/messages.cpp \
dialogs/errors.cpp \
- dialogs/interaction.cpp \
+ dialogs/external.cpp \
+ dialogs/plugins.cpp \
+ dialogs/sout.cpp \
+ dialogs/convert.cpp \
+ dialogs/help.cpp \
+ dialogs/gototime.cpp \
+ dialogs/toolbar.cpp \
+ dialogs/open.cpp \
+ dialogs/openurl.cpp \
+ dialogs/vlm.cpp \
+ dialogs/firstrun.cpp \
+ dialogs/podcast_configuration.cpp \
+ dialogs/extensions.cpp \
components/extended_panels.cpp \
- components/infopanels.cpp \
+ components/info_panels.cpp \
components/preferences_widgets.cpp \
- components/preferences.cpp \
+ components/complete_preferences.cpp \
components/simple_preferences.cpp \
- components/open.cpp \
+ components/open_panels.cpp \
components/interface_widgets.cpp \
+ components/controller.cpp \
+ components/controller_widget.cpp \
+ components/epg/EPGChannels.cpp \
+ components/epg/EPGItem.cpp \
+ components/epg/EPGRuler.cpp \
+ components/epg/EPGView.cpp \
+ components/epg/EPGWidget.cpp \
+ components/playlist/icon_view.cpp \
+ components/playlist/playlist_model.cpp \
+ components/playlist/playlist_item.cpp \
components/playlist/standardpanel.cpp \
+ components/playlist/playlist.cpp \
components/playlist/selector.cpp \
+ components/sout/profile_selector.cpp \
+ components/sout/sout_widgets.cpp \
util/input_slider.cpp \
util/customwidgets.cpp \
- $(NULL)
+ util/registry.cpp
-EXTRA_DIST += \
+noinst_HEADERS = \
qt4.hpp \
menus.hpp \
main_interface.hpp \
dialogs_provider.hpp \
input_manager.hpp \
- playlist_model.hpp \
- res.qrc \
+ actions_manager.hpp \
+ extensions_manager.hpp \
+ recents.hpp \
+ variables.hpp \
dialogs/playlist.hpp \
- dialogs/streaminfo.hpp \
+ dialogs/bookmarks.hpp \
+ dialogs/mediainfo.hpp \
dialogs/extended.hpp \
dialogs/messages.hpp \
+ dialogs/epg.hpp \
dialogs/errors.hpp \
- dialogs/prefs_dialog.hpp \
- dialogs/interaction.hpp \
+ dialogs/external.hpp \
+ dialogs/plugins.hpp \
+ dialogs/preferences.hpp \
+ dialogs/sout.hpp \
+ dialogs/convert.hpp \
+ dialogs/help.hpp \
+ dialogs/gototime.hpp \
+ dialogs/toolbar.hpp \
+ dialogs/open.hpp \
+ dialogs/openurl.hpp \
+ dialogs/vlm.hpp \
+ dialogs/firstrun.hpp \
+ dialogs/podcast_configuration.hpp \
+ dialogs/extensions.hpp \
components/extended_panels.hpp \
- components/infopanels.hpp \
+ components/info_panels.hpp \
components/preferences_widgets.hpp \
- components/preferences.hpp \
+ components/complete_preferences.hpp \
components/simple_preferences.hpp \
- components/open.hpp \
+ components/open_panels.hpp \
components/interface_widgets.hpp \
- components/playlist/panels.hpp \
+ components/controller.hpp \
+ components/controller_widget.hpp \
+ components/epg/EPGChannels.hpp \
+ components/epg/EPGEvent.hpp \
+ components/epg/EPGItem.hpp \
+ components/epg/EPGRuler.hpp \
+ components/epg/EPGView.hpp \
+ components/epg/EPGWidget.hpp \
+ components/playlist/icon_view.hpp \
+ components/playlist/playlist_model.hpp \
+ components/playlist/playlist_item.hpp \
+ components/playlist/standardpanel.hpp \
+ components/playlist/playlist.hpp \
components/playlist/selector.hpp \
+ components/playlist/sorting.h \
+ components/sout/profile_selector.hpp \
+ components/sout/sout_widgets.hpp \
+ components/sout/profiles.hpp \
util/input_slider.hpp \
- util/directslider.hpp \
util/customwidgets.hpp \
util/qvlcframe.hpp \
+ util/qvlcapp.hpp \
+ util/qt_dirs.hpp \
+ util/registry.hpp \
+ util/singleton.hpp
+
+
+EXTRA_DIST += \
+ vlc.qrc \
ui/equalizer.ui \
- ui/file_open.ui \
- ui/input_stats.ui \
- ui/main_interface.ui \
+ ui/v4l2.ui \
+ ui/video_effects.ui \
+ ui/open_file.ui \
+ ui/open_disk.ui \
+ ui/open_net.ui \
+ ui/open_capture.ui \
+ ui/open.ui \
+ ui/podcast_configuration.ui \
+ ui/profiles.ui \
ui/sprefs_audio.ui \
+ ui/sprefs_input.ui \
ui/sprefs_interface.ui \
- ui/sprefs_playlist.ui \
ui/sprefs_subtitles.ui \
ui/sprefs_video.ui \
ui/streampanel.ui \
- pixmaps/advanced.xpm \
- pixmaps/audio.xpm \
- pixmaps/codec.xpm \
- pixmaps/intf.xpm \
- pixmaps/type_net.xpm \
- pixmaps/type_playlist.xpm \
- pixmaps/video.xpm \
- pixmaps/advanced_50x50.xpm \
- pixmaps/audio_50x50.xpm \
- pixmaps/input_and_codecs_50x50.xpm \
- pixmaps/interface_50x50.xpm \
- pixmaps/playlist_50x50.xpm \
- pixmaps/subtitles_50x50.xpm \
- pixmaps/video_50x50.xpm
+ ui/messages_panel.ui \
+ ui/sout.ui \
+ ui/vlm.ui \
+ $(DEPS_res)
+