* Qt4 stream output dialog
[vlc.git] / modules / gui / qt4 / Modules.am
1 # vim:syntax=make
2 ## Howto
3 # For each Q_OBJECT:
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
8 # For each UI
9 #   - Add it without extension to TOUI
10 #   - Add it to EXTRA_DIST
11
12 AUTOMAKE_OPTIONS = subdir-objects
13
14 TOUI =  \
15         ui/equalizer \
16         ui/file_open \
17         ui/input_stats \
18         ui/main_interface \
19         ui/sprefs_audio \
20         ui/sprefs_interface \
21         ui/sprefs_playlist \
22         ui/sprefs_subtitles \
23         ui/sprefs_video \
24         ui/streampanel \
25         ui/sout
26
27
28 UIH = $(TOUI:%=%.h)
29
30 TOMOC = main_interface \
31         menus \
32         dialogs_provider \
33         input_manager \
34         playlist_model \
35         dialogs/playlist \
36         dialogs/prefs_dialog \
37         dialogs/messages \
38         dialogs/errors \
39         dialogs/streaminfo \
40         dialogs/extended \
41         dialogs/interaction \
42         dialogs/sout \
43         components/extended_panels \
44         components/infopanels \
45         components/preferences_widgets \
46         components/preferences \
47         components/simple_preferences \
48         components/open \
49         components/interface_widgets \
50         components/playlist/panels \
51         components/playlist/selector \
52         util/input_slider \
53         util/customwidgets
54 MOCCPP = $(TOMOC:%=%.moc.cpp)
55
56 nodist_SOURCES_qt4 = \
57                 main_interface.moc.cpp \
58                 menus.moc.cpp \
59                 dialogs_provider.moc.cpp \
60                 input_manager.moc.cpp \
61                 playlist_model.moc.cpp \
62                 dialogs/playlist.moc.cpp \
63                 dialogs/streaminfo.moc.cpp \
64                 dialogs/extended.moc.cpp \
65                 dialogs/messages.moc.cpp \
66                 dialogs/errors.moc.cpp \
67                 dialogs/prefs_dialog.moc.cpp \
68                 dialogs/interaction.moc.cpp \
69                 dialogs/sout.moc.cpp \
70                 components/extended_panels.moc.cpp \
71                 components/infopanels.moc.cpp \
72                 components/preferences_widgets.moc.cpp \
73                 components/preferences.moc.cpp \
74                 components/simple_preferences.moc.cpp \
75                 components/open.moc.cpp \
76                 components/interface_widgets.moc.cpp \
77                 components/playlist/panels.moc.cpp \
78                 components/playlist/selector.moc.cpp \
79                 util/input_slider.moc.cpp \
80                 util/customwidgets.moc.cpp \
81                 resources.cpp
82
83 if ENABLE_QT4
84 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
85 endif
86
87 resources.cpp: res.qrc
88         $(RCC) -name vlc -o $@ $<
89
90 $(MOCCPP): %.moc.cpp: %.hpp
91         @echo "$(MOC) $< -> $@"
92         $(MOC) -o $@ $<
93
94 $(UIH): %.h: %.ui
95         $(install_sh) -d ui
96         @echo "$(UIC) $< -> $@"
97         rm -f $@
98         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
99         $(UIC) -tr "Q_" $< >> $@
100         sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
101
102
103 SOURCES_qt4 =   qt4.cpp \
104                 menus.cpp \
105                 main_interface.cpp \
106                 dialogs_provider.cpp \
107                 input_manager.cpp \
108                 playlist_model.cpp \
109                 dialogs/playlist.cpp \
110                 dialogs/prefs_dialog.cpp \
111                 dialogs/streaminfo.cpp \
112                 dialogs/extended.cpp \
113                 dialogs/messages.cpp \
114                 dialogs/errors.cpp \
115                 dialogs/interaction.cpp \
116                 dialogs/sout.cpp \
117                 components/extended_panels.cpp \
118                 components/infopanels.cpp \
119                 components/preferences_widgets.cpp \
120                 components/preferences.cpp \
121                 components/simple_preferences.cpp \
122                 components/open.cpp \
123                 components/interface_widgets.cpp \
124                 components/playlist/standardpanel.cpp \
125                 components/playlist/selector.cpp \
126                 util/input_slider.cpp \
127                 util/customwidgets.cpp \
128                 $(NULL)
129
130 EXTRA_DIST += \
131         qt4.hpp \
132         menus.hpp \
133         main_interface.hpp \
134         dialogs_provider.hpp \
135         input_manager.hpp \
136         playlist_model.hpp \
137         res.qrc \
138         dialogs/playlist.hpp \
139         dialogs/streaminfo.hpp \
140         dialogs/extended.hpp \
141         dialogs/messages.hpp \
142         dialogs/errors.hpp \
143         dialogs/prefs_dialog.hpp \
144         dialogs/interaction.hpp \
145         dialogs/sout.hpp \
146         components/extended_panels.hpp \
147         components/infopanels.hpp \
148         components/preferences_widgets.hpp \
149         components/preferences.hpp \
150         components/simple_preferences.hpp \
151         components/open.hpp \
152         components/interface_widgets.hpp \
153         components/playlist/panels.hpp \
154         components/playlist/selector.hpp \
155         util/input_slider.hpp \
156         util/directslider.hpp \
157         util/customwidgets.hpp \
158         util/qvlcframe.hpp \
159         ui/equalizer.ui \
160         ui/file_open.ui \
161         ui/input_stats.ui \
162         ui/main_interface.ui \
163         ui/sprefs_audio.ui \
164         ui/sprefs_interface.ui \
165         ui/sprefs_playlist.ui \
166         ui/sprefs_subtitles.ui \
167         ui/sprefs_video.ui \
168         ui/streampanel.ui \
169         ui/sout.ui \
170         pixmaps/advanced.xpm \
171         pixmaps/audio.xpm \
172         pixmaps/codec.xpm \
173         pixmaps/intf.xpm \
174         pixmaps/type_net.xpm \
175         pixmaps/type_playlist.xpm \
176         pixmaps/video.xpm \
177         pixmaps/advanced_50x50.xpm \
178         pixmaps/audio_50x50.xpm \
179         pixmaps/input_and_codecs_50x50.xpm \
180         pixmaps/interface_50x50.xpm \
181         pixmaps/playlist_50x50.xpm \
182         pixmaps/subtitles_50x50.xpm \
183         pixmaps/video_50x50.xpm