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