]> git.sesse.net Git - vlc/blob - modules/gui/qt4/Modules.am
cdd5e7fe071446440e72c1325540ccbc5902c415
[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 UIH = $(TOUI:%=%.h)
16
17 TOMOC = main_interface \
18         dialogs_provider \
19         input_manager \
20         dialogs/playlist \
21         dialogs/prefs_dialog \
22         dialogs/streaminfo \
23         components/infopanels \
24         components/preferences_widgets \
25         components/preferences \
26         components/open \
27         util/input_slider
28 MOCCPP = $(TOMOC:%=%.moc.cpp)
29
30 nodist_SOURCES_qt4 = \
31                 main_interface.moc.cpp \
32                 dialogs_provider.moc.cpp \
33                 input_manager.moc.cpp \
34                 dialogs/playlist.moc.cpp \
35                 dialogs/streaminfo.moc.cpp \
36                 dialogs/prefs_dialog.moc.cpp \
37                 components/infopanels.moc.cpp \
38                 components/preferences_widgets.moc.cpp \
39                 components/preferences.moc.cpp \
40                 components/open.moc.cpp \
41                 util/input_slider.moc.cpp
42
43 if ENABLE_QT4
44 BUILT_SOURCES += $(UIH) $(nodist_SOURCES_qt4)
45 endif
46
47
48 $(MOCCPP): %.moc.cpp: %.hpp
49         @echo "$(MOC) $< -> $@"
50         $(MOC) -o $@ $<
51
52 $(UIH): %.h: %.ui
53         $(install_sh) -d ui
54         @echo "$(UIC) $< -> $@"
55         rm -f $@
56         echo "#define Q_(a,b) _(a)" > $@
57         $(UIC) -tr "Q_" $< >> $@
58
59
60 SOURCES_qt4 =   qt4.cpp \
61                 main_interface.cpp \
62                 dialogs_provider.cpp \
63                 input_manager.cpp \
64                 dialogs/playlist.cpp \
65                 dialogs/prefs_dialog.cpp \
66                 dialogs/streaminfo.cpp \
67                 components/infopanels.cpp \
68                 components/preferences_widgets.cpp \
69                 components/preferences.cpp \
70                 components/open.cpp \
71                 util/input_slider.cpp
72                 $(NULL)
73
74 EXTRA_DIST += \
75         qt4.hpp \
76         main_interface.hpp \
77         dialogs_provider.hpp \
78         input_manager.hpp \
79         dialogs/playlist.hpp \
80         dialogs/streaminfo.hpp \
81         dialogs/prefs_dialog.hpp \
82         components/infopanels.hpp \
83         components/preferences_widgets.hpp \
84         components/preferences.hpp \
85         components/open.hpp \
86         util/input_slider.hpp \
87         ui/input_stats.ui \
88         pixmaps/advanced.xpm \
89         pixmaps/audio.xpm \
90         pixmaps/codec.xpm \
91         pixmaps/intf.xpm \
92         pixmaps/type_net.xpm \
93         pixmaps/type_playlist.xpm \
94         pixmaps/video.xpm