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