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 \
15 ui/logindialog ui/inputdialog ui/progressdialog ui/sprefs_trivial
18 TOMOC = main_interface \
24 dialogs/prefs_dialog \
28 components/infopanels \
29 components/preferences_widgets \
30 components/preferences \
31 components/simple_preferences \
33 components/video_widget \
34 components/playlist/panels \
35 components/playlist/selector \
39 MOCCPP = $(TOMOC:%=%.moc.cpp)
41 nodist_SOURCES_qt4 = \
42 main_interface.moc.cpp \
44 dialogs_provider.moc.cpp \
45 input_manager.moc.cpp \
46 playlist_model.moc.cpp \
47 dialogs/playlist.moc.cpp \
48 dialogs/streaminfo.moc.cpp \
49 dialogs/messages.moc.cpp \
50 dialogs/prefs_dialog.moc.cpp \
51 dialogs/interaction.moc.cpp \
52 components/infopanels.moc.cpp \
53 components/preferences_widgets.moc.cpp \
54 components/preferences.moc.cpp \
55 components/simple_preferences.moc.cpp \
56 components/open.moc.cpp \
57 components/video_widget.moc.cpp \
58 components/playlist/panels.moc.cpp \
59 components/playlist/selector.moc.cpp \
60 util/input_slider.moc.cpp \
62 util/customwidgets.moc.cpp \
66 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
69 resources.cpp: res.qrc
70 $(RCC) -name vlc -o $@ $<
72 $(MOCCPP): %.moc.cpp: %.hpp
73 @echo "$(MOC) $< -> $@"
78 @echo "$(UIC) $< -> $@"
80 echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
81 $(UIC) -tr "Q_" $< >> $@
82 sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
85 SOURCES_qt4 = qt4.cpp \
88 dialogs_provider.cpp \
91 dialogs/playlist.cpp \
92 dialogs/prefs_dialog.cpp \
93 dialogs/streaminfo.cpp \
94 dialogs/messages.cpp \
95 dialogs/interaction.cpp \
96 components/infopanels.cpp \
97 components/preferences_widgets.cpp \
98 components/preferences.cpp \
99 components/simple_preferences.cpp \
100 components/open.cpp \
101 components/video_widget.cpp \
102 components/playlist/standardpanel.cpp \
103 components/playlist/selector.cpp \
104 util/input_slider.cpp \
105 util/customwidgets.cpp \
112 dialogs_provider.hpp \
116 dialogs/playlist.hpp \
117 dialogs/streaminfo.hpp \
118 dialogs/messages.hpp \
119 dialogs/prefs_dialog.hpp \
120 dialogs/interaction.hpp \
121 components/infopanels.hpp \
122 components/preferences_widgets.hpp \
123 components/preferences.hpp \
124 components/simple_preferences.hpp \
125 components/open.hpp \
126 components/video_widget.hpp \
127 components/playlist/panels.hpp \
128 components/playlist/selector.hpp \
129 util/input_slider.hpp \
130 util/directslider.hpp \
132 util/customwidgets.hpp \
136 ui/main_interface.ui \
139 ui/progressdialog.ui \
140 ui/sprefs_trivial.ui \
141 pixmaps/advanced.xpm \
145 pixmaps/type_net.xpm \
146 pixmaps/type_playlist.xpm \