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 \
21 TOMOC = main_interface \
27 dialogs/prefs_dialog \
33 components/equalizer \
34 components/infopanels \
35 components/preferences_widgets \
36 components/preferences \
37 components/simple_preferences \
39 components/video_widget \
40 components/playlist/panels \
41 components/playlist/selector \
44 MOCCPP = $(TOMOC:%=%.moc.cpp)
46 nodist_SOURCES_qt4 = \
47 main_interface.moc.cpp \
49 dialogs_provider.moc.cpp \
50 input_manager.moc.cpp \
51 playlist_model.moc.cpp \
52 dialogs/playlist.moc.cpp \
53 dialogs/streaminfo.moc.cpp \
54 dialogs/extended.moc.cpp \
55 dialogs/messages.moc.cpp \
56 dialogs/errors.moc.cpp \
57 dialogs/prefs_dialog.moc.cpp \
58 dialogs/interaction.moc.cpp \
59 components/equalizer.moc.cpp \
60 components/infopanels.moc.cpp \
61 components/preferences_widgets.moc.cpp \
62 components/preferences.moc.cpp \
63 components/simple_preferences.moc.cpp \
64 components/open.moc.cpp \
65 components/video_widget.moc.cpp \
66 components/playlist/panels.moc.cpp \
67 components/playlist/selector.moc.cpp \
68 util/input_slider.moc.cpp \
69 util/customwidgets.moc.cpp \
73 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
76 resources.cpp: res.qrc
77 $(RCC) -name vlc -o $@ $<
79 $(MOCCPP): %.moc.cpp: %.hpp
80 @echo "$(MOC) $< -> $@"
85 @echo "$(UIC) $< -> $@"
87 echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
88 $(UIC) -tr "Q_" $< >> $@
89 sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
92 SOURCES_qt4 = qt4.cpp \
95 dialogs_provider.cpp \
98 dialogs/playlist.cpp \
99 dialogs/prefs_dialog.cpp \
100 dialogs/streaminfo.cpp \
101 dialogs/extended.cpp \
102 dialogs/messages.cpp \
104 dialogs/interaction.cpp \
105 components/equalizer.cpp \
106 components/infopanels.cpp \
107 components/preferences_widgets.cpp \
108 components/preferences.cpp \
109 components/simple_preferences.cpp \
110 components/open.cpp \
111 components/video_widget.cpp \
112 components/playlist/standardpanel.cpp \
113 components/playlist/selector.cpp \
114 util/input_slider.cpp \
115 util/customwidgets.cpp \
122 dialogs_provider.hpp \
126 dialogs/playlist.hpp \
127 dialogs/streaminfo.hpp \
128 dialogs/extended.hpp \
129 dialogs/messages.hpp \
131 dialogs/prefs_dialog.hpp \
132 dialogs/interaction.hpp \
133 components/equalizer.hpp \
134 components/infopanels.hpp \
135 components/preferences_widgets.hpp \
136 components/preferences.hpp \
137 components/simple_preferences.hpp \
138 components/open.hpp \
139 components/video_widget.hpp \
140 components/playlist/panels.hpp \
141 components/playlist/selector.hpp \
142 util/input_slider.hpp \
143 util/directslider.hpp \
144 util/customwidgets.hpp \
148 ui/main_interface.ui \
149 ui/sprefs_trivial.ui \
152 ui/sprefs_playlist.ui \
153 ui/sprefs_subtitles.ui \
155 pixmaps/advanced.xpm \
159 pixmaps/type_net.xpm \
160 pixmaps/type_playlist.xpm \
162 pixmaps/advanced_50x50.xpm \
163 pixmaps/audio_50x50.xpm \
164 pixmaps/input_and_codecs_50x50.xpm \
165 pixmaps/interface_50x50.xpm \
166 pixmaps/playlist_50x50.xpm \
167 pixmaps/subtitles_50x50.xpm \
168 pixmaps/video_50x50.xpm