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