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
18 TOMOC = main_interface \
24 dialogs/prefs_dialog \
28 components/infopanels \
29 components/preferences_widgets \
30 components/preferences \
32 components/video_widget \
33 components/playlist/panels \
34 components/playlist/selector \
36 MOCCPP = $(TOMOC:%=%.moc.cpp)
38 nodist_SOURCES_qt4 = \
39 main_interface.moc.cpp \
41 dialogs_provider.moc.cpp \
42 input_manager.moc.cpp \
43 playlist_model.moc.cpp \
44 dialogs/playlist.moc.cpp \
45 dialogs/streaminfo.moc.cpp \
46 dialogs/messages.moc.cpp \
47 dialogs/prefs_dialog.moc.cpp \
48 dialogs/interaction.moc.cpp \
49 components/infopanels.moc.cpp \
50 components/preferences_widgets.moc.cpp \
51 components/preferences.moc.cpp \
52 components/open.moc.cpp \
53 components/video_widget.moc.cpp \
54 components/playlist/panels.moc.cpp \
55 components/playlist/selector.moc.cpp \
56 util/input_slider.moc.cpp \
60 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
63 resources.cpp: res.qrc
64 $(RCC) -name vlc -o $@ $<
66 $(MOCCPP): %.moc.cpp: %.hpp
67 @echo "$(MOC) $< -> $@"
72 @echo "$(UIC) $< -> $@"
74 echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
75 $(UIC) -tr "Q_" $< >> $@
76 sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
79 SOURCES_qt4 = qt4.cpp \
82 dialogs_provider.cpp \
85 dialogs/playlist.cpp \
86 dialogs/prefs_dialog.cpp \
87 dialogs/streaminfo.cpp \
88 dialogs/messages.cpp \
89 dialogs/interaction.cpp \
90 components/infopanels.cpp \
91 components/preferences_widgets.cpp \
92 components/preferences.cpp \
94 components/video_widget.cpp \
95 components/playlist/standardpanel.cpp \
96 components/playlist/selector.cpp \
97 util/input_slider.cpp \
104 dialogs_provider.hpp \
108 dialogs/playlist.hpp \
109 dialogs/streaminfo.hpp \
110 dialogs/messages.hpp \
111 dialogs/prefs_dialog.hpp \
112 dialogs/interaction.hpp \
113 components/infopanels.hpp \
114 components/preferences_widgets.hpp \
115 components/preferences.hpp \
116 components/open.hpp \
117 components/video_widget.hpp \
118 components/playlist/panels.hpp \
119 components/playlist/selector.hpp \
120 util/input_slider.hpp \
121 util/directslider.hpp \
125 ui/main_interface.ui \
128 ui/progressdialog.ui \
129 pixmaps/advanced.xpm \
133 pixmaps/type_net.xpm \
134 pixmaps/type_playlist.xpm \