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 \
32 components/equalizer \
33 components/infopanels \
34 components/preferences_widgets \
35 components/preferences \
36 components/simple_preferences \
38 components/video_widget \
39 components/playlist/panels \
40 components/playlist/selector \
43 MOCCPP = $(TOMOC:%=%.moc.cpp)
45 nodist_SOURCES_qt4 = \
46 main_interface.moc.cpp \
48 dialogs_provider.moc.cpp \
49 input_manager.moc.cpp \
50 playlist_model.moc.cpp \
51 dialogs/playlist.moc.cpp \
52 dialogs/streaminfo.moc.cpp \
53 dialogs/messages.moc.cpp \
54 dialogs/errors.moc.cpp \
55 dialogs/prefs_dialog.moc.cpp \
56 dialogs/interaction.moc.cpp \
57 components/equalizer.moc.cpp \
58 components/infopanels.moc.cpp \
59 components/preferences_widgets.moc.cpp \
60 components/preferences.moc.cpp \
61 components/simple_preferences.moc.cpp \
62 components/open.moc.cpp \
63 components/video_widget.moc.cpp \
64 components/playlist/panels.moc.cpp \
65 components/playlist/selector.moc.cpp \
66 util/input_slider.moc.cpp \
67 util/customwidgets.moc.cpp \
71 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
74 resources.cpp: res.qrc
75 $(RCC) -name vlc -o $@ $<
77 $(MOCCPP): %.moc.cpp: %.hpp
78 @echo "$(MOC) $< -> $@"
83 @echo "$(UIC) $< -> $@"
85 echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
86 $(UIC) -tr "Q_" $< >> $@
87 sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
90 SOURCES_qt4 = qt4.cpp \
93 dialogs_provider.cpp \
96 dialogs/playlist.cpp \
97 dialogs/prefs_dialog.cpp \
98 dialogs/streaminfo.cpp \
99 dialogs/messages.cpp \
101 dialogs/interaction.cpp \
102 components/equalizer.cpp \
103 components/infopanels.cpp \
104 components/preferences_widgets.cpp \
105 components/preferences.cpp \
106 components/simple_preferences.cpp \
107 components/open.cpp \
108 components/video_widget.cpp \
109 components/playlist/standardpanel.cpp \
110 components/playlist/selector.cpp \
111 util/input_slider.cpp \
112 util/customwidgets.cpp \
119 dialogs_provider.hpp \
123 dialogs/playlist.hpp \
124 dialogs/streaminfo.hpp \
125 dialogs/messages.hpp \
127 dialogs/prefs_dialog.hpp \
128 dialogs/interaction.hpp \
129 components/equalizer.hpp \
130 components/infopanels.hpp \
131 components/preferences_widgets.hpp \
132 components/preferences.hpp \
133 components/simple_preferences.hpp \
134 components/open.hpp \
135 components/video_widget.hpp \
136 components/playlist/panels.hpp \
137 components/playlist/selector.hpp \
138 util/input_slider.hpp \
139 util/directslider.hpp \
140 util/customwidgets.hpp \
144 ui/main_interface.ui \
145 ui/sprefs_trivial.ui \
148 ui/sprefs_playlist.ui \
149 ui/sprefs_subtitles.ui \
151 pixmaps/advanced.xpm \
155 pixmaps/type_net.xpm \
156 pixmaps/type_playlist.xpm \
158 pixmaps/advanced_50x50.xpm \
159 pixmaps/audio_50x50.xpm \
160 pixmaps/input_and_codecs_50x50.xpm \
161 pixmaps/interface_50x50.xpm \
162 pixmaps/playlist_50x50.xpm \
163 pixmaps/subtitles_50x50.xpm \
164 pixmaps/video_50x50.xpm