]> git.sesse.net Git - vlc/blob - modules/gui/qt4/Modules.am
Improve Qt interaction stuff
[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/logindialog ui/inputdialog ui/progressdialog
16 UIH = $(TOUI:%=%.h)
17
18 TOMOC = main_interface \
19         menus \
20         dialogs_provider \
21         input_manager \
22         playlist_model \
23         dialogs/playlist \
24         dialogs/prefs_dialog \
25         dialogs/streaminfo \
26         dialogs/interaction \
27         components/infopanels \
28         components/preferences_widgets \
29         components/preferences \
30         components/open \
31         components/video_widget \
32         components/playlist/panels \
33         components/playlist/selector \
34         util/input_slider
35 MOCCPP = $(TOMOC:%=%.moc.cpp)
36
37 nodist_SOURCES_qt4 = \
38                 main_interface.moc.cpp \
39                 menus.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 \
55                 resources.cpp
56
57 if ENABLE_QT4
58 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
59 endif
60
61 resources.cpp: res.qrc
62         $(RCC) -name vlc -o $@ $<
63
64 $(MOCCPP): %.moc.cpp: %.hpp
65         @echo "$(MOC) $< -> $@"
66         $(MOC) -o $@ $<
67
68 $(UIH): %.h: %.ui
69         $(install_sh) -d ui
70         @echo "$(UIC) $< -> $@"
71         rm -f $@
72         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
73         $(UIC) -tr "Q_" $< >> $@
74         sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
75
76
77 SOURCES_qt4 =   qt4.cpp \
78                 menus.cpp \
79                 main_interface.cpp \
80                 dialogs_provider.cpp \
81                 input_manager.cpp \
82                 playlist_model.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 \
90                 components/open.cpp \
91                 components/video_widget.cpp \
92                 components/playlist/standardpanel.cpp \
93                 components/playlist/selector.cpp \
94                 util/input_slider.cpp \
95                 $(NULL)
96
97 EXTRA_DIST += \
98         qt4.hpp \
99         menus.hpp \
100         main_interface.hpp \
101         dialogs_provider.hpp \
102         input_manager.hpp \
103         playlist_model.hpp \
104         res.qrc \
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 \
118         util/qvlcframe.hpp \
119         ui/input_stats.ui \
120         ui/file_open.ui \
121         ui/main_interface.ui \
122     ui/logindialog.ui \
123     ui/inputdialog.ui \
124     ui/progressdialog.ui \
125         pixmaps/advanced.xpm \
126         pixmaps/audio.xpm \
127         pixmaps/codec.xpm \
128         pixmaps/intf.xpm \
129         pixmaps/type_net.xpm \
130         pixmaps/type_playlist.xpm \
131         pixmaps/video.xpm