]> git.sesse.net Git - vlc/blob - modules/gui/qt4/Modules.am
* modules/gui/qt4/Modules.am: fixed a warning at bootstrap time
[vlc] / 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_trivial \
24         ui/sprefs_video \
25         ui/streampanel
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         components/extended_panels \
43         components/infopanels \
44         components/preferences_widgets \
45         components/preferences \
46         components/simple_preferences \
47         components/open \
48         components/interface_widgets \
49         components/playlist/panels \
50         components/playlist/selector \
51         util/input_slider \
52         util/customwidgets
53 MOCCPP = $(TOMOC:%=%.moc.cpp)
54
55 nodist_SOURCES_qt4 = \
56                 main_interface.moc.cpp \
57                 menus.moc.cpp \
58                 dialogs_provider.moc.cpp \
59                 input_manager.moc.cpp \
60                 playlist_model.moc.cpp \
61                 dialogs/playlist.moc.cpp \
62                 dialogs/streaminfo.moc.cpp \
63                 dialogs/extended.moc.cpp \
64                 dialogs/messages.moc.cpp \
65                 dialogs/errors.moc.cpp \
66                 dialogs/prefs_dialog.moc.cpp \
67                 dialogs/interaction.moc.cpp \
68                 components/extended_panels.moc.cpp \
69                 components/infopanels.moc.cpp \
70                 components/preferences_widgets.moc.cpp \
71                 components/preferences.moc.cpp \
72                 components/simple_preferences.moc.cpp \
73                 components/open.moc.cpp \
74                 components/interface_widgets.moc.cpp \
75                 components/playlist/panels.moc.cpp \
76                 components/playlist/selector.moc.cpp \
77                 util/input_slider.moc.cpp \
78                 util/customwidgets.moc.cpp \
79                 resources.cpp
80
81 if ENABLE_QT4
82 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
83 endif
84
85 resources.cpp: res.qrc
86         $(RCC) -name vlc -o $@ $<
87
88 $(MOCCPP): %.moc.cpp: %.hpp
89         @echo "$(MOC) $< -> $@"
90         $(MOC) -o $@ $<
91
92 $(UIH): %.h: %.ui
93         $(install_sh) -d ui
94         @echo "$(UIC) $< -> $@"
95         rm -f $@
96         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
97         $(UIC) -tr "Q_" $< >> $@
98         sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
99
100
101 SOURCES_qt4 =   qt4.cpp \
102                 menus.cpp \
103                 main_interface.cpp \
104                 dialogs_provider.cpp \
105                 input_manager.cpp \
106                 playlist_model.cpp \
107                 dialogs/playlist.cpp \
108                 dialogs/prefs_dialog.cpp \
109                 dialogs/streaminfo.cpp \
110                 dialogs/extended.cpp \
111                 dialogs/messages.cpp \
112                 dialogs/errors.cpp \
113                 dialogs/interaction.cpp \
114                 components/extended_panels.cpp \
115                 components/infopanels.cpp \
116                 components/preferences_widgets.cpp \
117                 components/preferences.cpp \
118                 components/simple_preferences.cpp \
119                 components/open.cpp \
120                 components/interface_widgets.cpp \
121                 components/playlist/standardpanel.cpp \
122                 components/playlist/selector.cpp \
123                 util/input_slider.cpp \
124                 util/customwidgets.cpp \
125                 $(NULL)
126
127 EXTRA_DIST += \
128         qt4.hpp \
129         menus.hpp \
130         main_interface.hpp \
131         dialogs_provider.hpp \
132         input_manager.hpp \
133         playlist_model.hpp \
134         res.qrc \
135         dialogs/playlist.hpp \
136         dialogs/streaminfo.hpp \
137         dialogs/extended.hpp \
138         dialogs/messages.hpp \
139         dialogs/errors.hpp \
140         dialogs/prefs_dialog.hpp \
141         dialogs/interaction.hpp \
142         components/extended_panels.hpp \
143         components/infopanels.hpp \
144         components/preferences_widgets.hpp \
145         components/preferences.hpp \
146         components/simple_preferences.hpp \
147         components/open.hpp \
148         components/interface_widgets.hpp \
149         components/playlist/panels.hpp \
150         components/playlist/selector.hpp \
151         util/input_slider.hpp \
152         util/directslider.hpp \
153         util/customwidgets.hpp \
154         util/qvlcframe.hpp \
155         ui/equalizer.ui \
156         ui/file_open.ui \
157         ui/input_stats.ui \
158         ui/main_interface.ui \
159         ui/sprefs_audio.ui \
160         ui/sprefs_interface.ui \
161         ui/sprefs_playlist.ui \
162         ui/sprefs_subtitles.ui \
163         ui/sprefs_trivial.ui \
164         ui/sprefs_video.ui \
165         ui/streampanel.ui \
166         pixmaps/advanced.xpm \
167         pixmaps/audio.xpm \
168         pixmaps/codec.xpm \
169         pixmaps/intf.xpm \
170         pixmaps/type_net.xpm \
171         pixmaps/type_playlist.xpm \
172         pixmaps/video.xpm \
173         pixmaps/advanced_50x50.xpm \
174         pixmaps/audio_50x50.xpm \
175         pixmaps/input_and_codecs_50x50.xpm \
176         pixmaps/interface_50x50.xpm \
177         pixmaps/playlist_50x50.xpm \
178         pixmaps/subtitles_50x50.xpm \
179         pixmaps/video_50x50.xpm