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