efb44800329d089ec7ac015156d6c4d4dd2b3cfa
[vlc.git] / modules / gui / qt4 / Modules.am
1 # vim:syntax=automake
2 ## Howto
3 # For each Q_OBJECT:
4 #   - Add the .moc.cpp to BUILT_SOURCES and nodist_SOURCES_qt4
5 #   - Add the .cpp to SOURCES_qt4
6 #   - Add the .hpp to EXTRA_DIST
7 # For each UI
8 #   - Add it to EXTRA_DIST
9 #   - Add the .h to nodist_SOURCES_qt4
10
11 AUTOMAKE_OPTIONS = subdir-objects
12 MOSTLYCLEANFILES = $(UIH)
13 SUFFIXES += .ui .h .hpp .moc.cpp
14
15 nodist_SOURCES_qt4 = \
16                 main_interface.moc.cpp \
17                 menus.moc.cpp \
18                 dialogs_provider.moc.cpp \
19                 input_manager.moc.cpp \
20                 playlist_model.moc.cpp \
21                 dialogs/playlist.moc.cpp \
22                 dialogs/mediainfo.moc.cpp \
23                 dialogs/extended.moc.cpp \
24                 dialogs/messages.moc.cpp \
25                 dialogs/errors.moc.cpp \
26                 dialogs/preferences.moc.cpp \
27                 dialogs/interaction.moc.cpp \
28                 dialogs/sout.moc.cpp \
29                 dialogs/help.moc.cpp \
30                 dialogs/gototime.moc.cpp \
31                 dialogs/open.moc.cpp \
32                 components/extended_panels.moc.cpp \
33                 components/infopanels.moc.cpp \
34                 components/preferences_widgets.moc.cpp \
35                 components/complete_preferences.moc.cpp \
36                 components/simple_preferences.moc.cpp \
37                 components/open.moc.cpp \
38                 components/interface_widgets.moc.cpp \
39                 components/playlist/panels.moc.cpp \
40                 components/playlist/selector.moc.cpp \
41                 util/input_slider.moc.cpp \
42                 util/customwidgets.moc.cpp \
43                 resources.cpp \
44                 ui/equalizer.h \
45                 ui/video_effects.h \
46                 ui/open_file.h \
47                 ui/open_disk.h \
48                 ui/open_net.h \
49                 ui/open_capture.h \
50                 ui/open.h \
51                 ui/main_interface.h \
52                 ui/sprefs_audio.h \
53                 ui/sprefs_input.h \
54                 ui/sprefs_interface.h \
55                 ui/sprefs_subtitles.h \
56                 ui/sprefs_video.h \
57                 ui/sprefs_hotkeys.h \
58                 ui/streampanel.h \
59                 ui/sout.h
60
61 if ENABLE_QT4
62 BUILT_SOURCES += $(nodist_SOURCES_qt4)
63 endif
64
65 resources.cpp: res.qrc
66         $(RCC) -name vlc -o $@ $<
67
68 .hpp.moc.cpp:
69         $(MOC) -o $@ $<
70
71 .ui.h:
72         mkdir -p -- ui
73         rm -f $@ $@.tmp
74         echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
75         $(UIC) -tr "Q_" $< >> $@.tmp
76         sed -i -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp
77         mv -f $@.tmp $@
78
79 SOURCES_qt4 =   qt4.cpp \
80                 menus.cpp \
81                 main_interface.cpp \
82                 dialogs_provider.cpp \
83                 input_manager.cpp \
84                 playlist_model.cpp \
85                 dialogs/playlist.cpp \
86                 dialogs/preferences.cpp \
87                 dialogs/mediainfo.cpp \
88                 dialogs/extended.cpp \
89                 dialogs/messages.cpp \
90                 dialogs/errors.cpp \
91                 dialogs/interaction.cpp \
92                 dialogs/sout.cpp \
93                 dialogs/help.cpp \
94                 dialogs/gototime.cpp \
95                 dialogs/open.cpp \
96                 components/extended_panels.cpp \
97                 components/infopanels.cpp \
98                 components/preferences_widgets.cpp \
99                 components/complete_preferences.cpp \
100                 components/simple_preferences.cpp \
101                 components/open.cpp \
102                 components/interface_widgets.cpp \
103                 components/playlist/standardpanel.cpp \
104                 components/playlist/selector.cpp \
105                 util/input_slider.cpp \
106                 util/customwidgets.cpp
107
108 noinst_HEADERS = \
109         qt4.hpp \
110         menus.hpp \
111         main_interface.hpp \
112         dialogs_provider.hpp \
113         input_manager.hpp \
114         playlist_model.hpp \
115         dialogs/playlist.hpp \
116         dialogs/mediainfo.hpp \
117         dialogs/extended.hpp \
118         dialogs/messages.hpp \
119         dialogs/errors.hpp \
120         dialogs/preferences.hpp \
121         dialogs/interaction.hpp \
122         dialogs/sout.hpp \
123         dialogs/help.hpp \
124         dialogs/gototime.hpp \
125         dialogs/open.hpp \
126         components/extended_panels.hpp \
127         components/infopanels.hpp \
128         components/preferences_widgets.hpp \
129         components/complete_preferences.hpp \
130         components/simple_preferences.hpp \
131         components/open.hpp \
132         components/interface_widgets.hpp \
133         components/playlist/panels.hpp \
134         components/playlist/selector.hpp \
135         util/input_slider.hpp \
136         util/directslider.hpp \
137         util/customwidgets.hpp \
138         util/qvlcframe.hpp
139
140 EXTRA_DIST += \
141         res.qrc \
142         ui/equalizer.ui \
143         ui/video_effects.ui \
144         ui/open_file.ui \
145         ui/open_disk.ui \
146         ui/open_net.ui \
147         ui/open_capture.ui \
148         ui/open.ui \
149         ui/main_interface.ui \
150         ui/sprefs_audio.ui \
151         ui/sprefs_input.ui \
152         ui/sprefs_interface.ui \
153         ui/sprefs_hotkeys.ui \
154         ui/sprefs_subtitles.ui \
155         ui/sprefs_video.ui \
156         ui/streampanel.ui \
157         ui/sout.ui \
158         pixmaps/advanced.xpm \
159         pixmaps/audio.xpm \
160         pixmaps/codec.xpm \
161         pixmaps/intf.xpm \
162         pixmaps/type_net.xpm \
163         pixmaps/type_playlist.xpm \
164         pixmaps/video.xpm \
165         pixmaps/hotkeys_50x50.xpm \
166         pixmaps/audio_50x50.xpm \
167         pixmaps/input_and_codecs_50x50.xpm \
168         pixmaps/interface_50x50.xpm \
169         pixmaps/playlist_50x50.xpm \
170         pixmaps/subtitles_50x50.xpm \
171         pixmaps/video_50x50.xpm \
172         pixmaps/type_unknown.xpm \
173         pixmaps/type_afile.xpm \
174         pixmaps/type_vfile.xpm \
175         pixmaps/type_card.xpm \
176         pixmaps/type_disc.xpm \
177         pixmaps/type_cdda.xpm \
178         pixmaps/type_directory.xpm \
179         pixmaps/type_node.xpm \
180         pixmaps/go-next.png \
181         pixmaps/next.png \
182         pixmaps/noart.png \
183         pixmaps/playlist_icon.png \
184         pixmaps/play.png \
185         pixmaps/previous.png \
186         pixmaps/spref_cone_Audio_64.png \
187         pixmaps/spref_cone_Hotkeys_64.png \
188         pixmaps/spref_cone_Input_64.png \
189         pixmaps/spref_cone_Interface_64.png \
190         pixmaps/spref_cone_Subtitles_64.png \
191         pixmaps/spref_cone_Video_64.png \
192         pixmaps/stop.png \
193         pixmaps/volume-high.png \
194         pixmaps/volume-low.png