4 # - Add it without extension to TOMOC
5 # - Add the moc.cpp to BUILT_SOURCES and nodist_SOURCES_qt4
6 # - Add the cpp to SOURCES_qt4
7 # - Add the hpp to EXTRA_DIST
9 # - Add it without extension to TOUI
10 # - Add it to EXTRA_DIST
12 AUTOMAKE_OPTIONS = subdir-objects
14 TOUI = ui/input_stats ui/main_interface ui/file_open \
16 ui/sprefs_audio ui/sprefs_playlist ui/sprefs_subtitles \
17 ui/sprefs_video ui/sprefs_interface
20 TOMOC = main_interface \
26 dialogs/prefs_dialog \
31 components/infopanels \
32 components/preferences_widgets \
33 components/preferences \
34 components/simple_preferences \
36 components/video_widget \
37 components/playlist/panels \
38 components/playlist/selector \
41 MOCCPP = $(TOMOC:%=%.moc.cpp)
43 nodist_SOURCES_qt4 = \
44 main_interface.moc.cpp \
46 dialogs_provider.moc.cpp \
47 input_manager.moc.cpp \
48 playlist_model.moc.cpp \
49 dialogs/playlist.moc.cpp \
50 dialogs/streaminfo.moc.cpp \
51 dialogs/messages.moc.cpp \
52 dialogs/errors.moc.cpp \
53 dialogs/prefs_dialog.moc.cpp \
54 dialogs/interaction.moc.cpp \
55 components/infopanels.moc.cpp \
56 components/preferences_widgets.moc.cpp \
57 components/preferences.moc.cpp \
58 components/simple_preferences.moc.cpp \
59 components/open.moc.cpp \
60 components/video_widget.moc.cpp \
61 components/playlist/panels.moc.cpp \
62 components/playlist/selector.moc.cpp \
63 util/input_slider.moc.cpp \
64 util/customwidgets.moc.cpp \
68 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
71 resources.cpp: res.qrc
72 $(RCC) -name vlc -o $@ $<
74 $(MOCCPP): %.moc.cpp: %.hpp
75 @echo "$(MOC) $< -> $@"
80 @echo "$(UIC) $< -> $@"
82 echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
83 $(UIC) -tr "Q_" $< >> $@
84 sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
87 SOURCES_qt4 = qt4.cpp \
90 dialogs_provider.cpp \
93 dialogs/playlist.cpp \
94 dialogs/prefs_dialog.cpp \
95 dialogs/streaminfo.cpp \
96 dialogs/messages.cpp \
98 dialogs/interaction.cpp \
99 components/infopanels.cpp \
100 components/preferences_widgets.cpp \
101 components/preferences.cpp \
102 components/simple_preferences.cpp \
103 components/open.cpp \
104 components/video_widget.cpp \
105 components/playlist/standardpanel.cpp \
106 components/playlist/selector.cpp \
107 util/input_slider.cpp \
108 util/customwidgets.cpp \
115 dialogs_provider.hpp \
119 dialogs/playlist.hpp \
120 dialogs/streaminfo.hpp \
121 dialogs/messages.hpp \
123 dialogs/prefs_dialog.hpp \
124 dialogs/interaction.hpp \
125 components/infopanels.hpp \
126 components/preferences_widgets.hpp \
127 components/preferences.hpp \
128 components/simple_preferences.hpp \
129 components/open.hpp \
130 components/video_widget.hpp \
131 components/playlist/panels.hpp \
132 components/playlist/selector.hpp \
133 util/input_slider.hpp \
134 util/directslider.hpp \
135 util/customwidgets.hpp \
139 ui/main_interface.ui \
140 ui/sprefs_trivial.ui \
143 ui/sprefs_playlist.ui \
144 ui/sprefs_subtitles.ui \
145 pixmaps/advanced.xpm \
149 pixmaps/type_net.xpm \
150 pixmaps/type_playlist.xpm \
152 pixmaps/advanced_50x50.xpm \
153 pixmaps/audio_50x50.xpm \
154 pixmaps/input_and_codecs_50x50.xpm \
155 pixmaps/interface_50x50.xpm \
156 pixmaps/playlist_50x50.xpm \
157 pixmaps/subtitles_50x50.xpm \
158 pixmaps/video_50x50.xpm