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