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