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