]> git.sesse.net Git - vlc/blob - modules/gui/qt4/Modules.am
a9fe9d8eff0aea6bf370b43bc2f886811876f4b6
[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/okcanceldialog ui/yesnocanceldialog ui/logindialog ui/inputdialog \
16     ui/progressdialog
17 UIH = $(TOUI:%=%.h)
18
19 TOMOC = main_interface \
20         menus \
21         dialogs_provider \
22         input_manager \
23         playlist_model \
24         dialogs/playlist \
25         dialogs/prefs_dialog \
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/prefs_dialog.moc.cpp \
47                 dialogs/interaction.moc.cpp \
48                 components/infopanels.moc.cpp \
49                 components/preferences_widgets.moc.cpp \
50                 components/preferences.moc.cpp \
51                 components/open.moc.cpp \
52                 components/video_widget.moc.cpp \
53                 components/playlist/panels.moc.cpp \
54                 components/playlist/selector.moc.cpp \
55                 util/input_slider.moc.cpp \
56                 resources.cpp
57
58 if ENABLE_QT4
59 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
60 endif
61
62 resources.cpp: res.qrc
63         $(RCC) -name vlc -o $@ $<
64
65 $(MOCCPP): %.moc.cpp: %.hpp
66         @echo "$(MOC) $< -> $@"
67         $(MOC) -o $@ $<
68
69 $(UIH): %.h: %.ui
70         $(install_sh) -d ui
71         @echo "$(UIC) $< -> $@"
72         rm -f $@
73         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@
74         $(UIC) -tr "Q_" $< >> $@
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/okcanceldialog.ui \
123     ui/yesnocanceldialog.ui \
124     ui/logindialog.ui \
125     ui/inputdialog.ui \
126     ui/progressdialog.ui \
127         pixmaps/advanced.xpm \
128         pixmaps/audio.xpm \
129         pixmaps/codec.xpm \
130         pixmaps/intf.xpm \
131         pixmaps/type_net.xpm \
132         pixmaps/type_playlist.xpm \
133         pixmaps/video.xpm