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 \
27 components/infopanels \
28 components/preferences_widgets \
29 components/preferences \
31 components/video_widget \
32 components/playlist/panels \
33 components/playlist/selector \
35 MOCCPP = $(TOMOC:%=%.moc.cpp)
37 nodist_SOURCES_qt4 = \
38 main_interface.moc.cpp \
40 dialogs_provider.moc.cpp \
41 input_manager.moc.cpp \
42 playlist_model.moc.cpp \
43 dialogs/playlist.moc.cpp \
44 dialogs/streaminfo.moc.cpp \
45 dialogs/prefs_dialog.moc.cpp \
46 dialogs/interaction.moc.cpp \
47 components/infopanels.moc.cpp \
48 components/preferences_widgets.moc.cpp \
49 components/preferences.moc.cpp \
50 components/open.moc.cpp \
51 components/video_widget.moc.cpp \
52 components/playlist/panels.moc.cpp \
53 components/playlist/selector.moc.cpp \
54 util/input_slider.moc.cpp \
58 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
61 resources.cpp: res.qrc
62 $(RCC) -name vlc -o $@ $<
64 $(MOCCPP): %.moc.cpp: %.hpp
65 @echo "$(MOC) $< -> $@"
70 @echo "$(UIC) $< -> $@"
72 echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
73 $(UIC) -tr "Q_" $< >> $@
74 sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
77 SOURCES_qt4 = qt4.cpp \
80 dialogs_provider.cpp \
83 dialogs/playlist.cpp \
84 dialogs/prefs_dialog.cpp \
85 dialogs/streaminfo.cpp \
86 dialogs/interaction.cpp \
87 components/infopanels.cpp \
88 components/preferences_widgets.cpp \
89 components/preferences.cpp \
91 components/video_widget.cpp \
92 components/playlist/standardpanel.cpp \
93 components/playlist/selector.cpp \
94 util/input_slider.cpp \
101 dialogs_provider.hpp \
105 dialogs/playlist.hpp \
106 dialogs/streaminfo.hpp \
107 dialogs/prefs_dialog.hpp \
108 dialogs/interaction.hpp \
109 components/infopanels.hpp \
110 components/preferences_widgets.hpp \
111 components/preferences.hpp \
112 components/open.hpp \
113 components/video_widget.hpp \
114 components/playlist/panels.hpp \
115 components/playlist/selector.hpp \
116 util/input_slider.hpp \
117 util/directslider.hpp \
121 ui/main_interface.ui \
124 ui/progressdialog.ui \
125 pixmaps/advanced.xpm \
129 pixmaps/type_net.xpm \
130 pixmaps/type_playlist.xpm \