]> git.sesse.net Git - vlc/blob - modules/gui/qt4/Modules.am
5e401e1a91c6eba2434e9e361e1386b59568e978
[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/messages \
26         dialogs/streaminfo \
27         dialogs/interaction \
28         components/infopanels \
29         components/preferences_widgets \
30         components/preferences \
31         components/open \
32         components/video_widget \
33         components/playlist/panels \
34         components/playlist/selector \
35         util/input_slider
36 MOCCPP = $(TOMOC:%=%.moc.cpp)
37
38 nodist_SOURCES_qt4 = \
39                 main_interface.moc.cpp \
40                 menus.moc.cpp \
41                 dialogs_provider.moc.cpp \
42                 input_manager.moc.cpp \
43                 playlist_model.moc.cpp \
44                 dialogs/playlist.moc.cpp \
45                 dialogs/streaminfo.moc.cpp \
46                 dialogs/messages.moc.cpp \
47                 dialogs/prefs_dialog.moc.cpp \
48                 dialogs/interaction.moc.cpp \
49                 components/infopanels.moc.cpp \
50                 components/preferences_widgets.moc.cpp \
51                 components/preferences.moc.cpp \
52                 components/open.moc.cpp \
53                 components/video_widget.moc.cpp \
54                 components/playlist/panels.moc.cpp \
55                 components/playlist/selector.moc.cpp \
56                 util/input_slider.moc.cpp \
57                 resources.cpp
58
59 if ENABLE_QT4
60 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
61 endif
62
63 resources.cpp: res.qrc
64         $(RCC) -name vlc -o $@ $<
65
66 $(MOCCPP): %.moc.cpp: %.hpp
67         @echo "$(MOC) $< -> $@"
68         $(MOC) -o $@ $<
69
70 $(UIH): %.h: %.ui
71         $(install_sh) -d ui
72         @echo "$(UIC) $< -> $@"
73         rm -f $@
74         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
75         $(UIC) -tr "Q_" $< >> $@
76         sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@
77
78
79 SOURCES_qt4 =   qt4.cpp \
80                 menus.cpp \
81                 main_interface.cpp \
82                 dialogs_provider.cpp \
83                 input_manager.cpp \
84                 playlist_model.cpp \
85                 dialogs/playlist.cpp \
86                 dialogs/prefs_dialog.cpp \
87                 dialogs/streaminfo.cpp \
88                 dialogs/messages.cpp \
89                 dialogs/interaction.cpp \
90                 components/infopanels.cpp \
91                 components/preferences_widgets.cpp \
92                 components/preferences.cpp \
93                 components/open.cpp \
94                 components/video_widget.cpp \
95                 components/playlist/standardpanel.cpp \
96                 components/playlist/selector.cpp \
97                 util/input_slider.cpp \
98                 $(NULL)
99
100 EXTRA_DIST += \
101         qt4.hpp \
102         menus.hpp \
103         main_interface.hpp \
104         dialogs_provider.hpp \
105         input_manager.hpp \
106         playlist_model.hpp \
107         res.qrc \
108         dialogs/playlist.hpp \
109         dialogs/streaminfo.hpp \
110         dialogs/messages.hpp \
111         dialogs/prefs_dialog.hpp \
112         dialogs/interaction.hpp \
113         components/infopanels.hpp \
114         components/preferences_widgets.hpp \
115         components/preferences.hpp \
116         components/open.hpp \
117         components/video_widget.hpp \
118         components/playlist/panels.hpp \
119     components/playlist/selector.hpp \
120         util/input_slider.hpp \
121         util/directslider.hpp \
122         util/qvlcframe.hpp \
123         ui/input_stats.ui \
124         ui/file_open.ui \
125         ui/main_interface.ui \
126     ui/logindialog.ui \
127     ui/inputdialog.ui \
128     ui/progressdialog.ui \
129         pixmaps/advanced.xpm \
130         pixmaps/audio.xpm \
131         pixmaps/codec.xpm \
132         pixmaps/intf.xpm \
133         pixmaps/type_net.xpm \
134         pixmaps/type_playlist.xpm \
135         pixmaps/video.xpm