Modules.am 6.31 KB
Newer Older
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
1
# vim:syntax=automake
zorglub's avatar
zorglub committed
2
3
## Howto
# For each Q_OBJECT:
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
4
5
6
#   - Add the .moc.cpp to BUILT_SOURCES and nodist_SOURCES_qt4
#   - Add the .cpp to SOURCES_qt4
#   - Add the .hpp to EXTRA_DIST
zorglub's avatar
zorglub committed
7
8
# For each UI
#   - Add it to EXTRA_DIST
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
9
#   - Add the .h to nodist_SOURCES_qt4
zorglub's avatar
zorglub committed
10

11
AUTOMAKE_OPTIONS = subdir-objects
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
12
13
MOSTLYCLEANFILES = $(UIH)
SUFFIXES += .ui .h .hpp .moc.cpp
zorglub's avatar
zorglub committed
14

15
nodist_SOURCES_qt4 = \
zorglub's avatar
zorglub committed
16
		main_interface.moc.cpp \
17
		menus.moc.cpp \
zorglub's avatar
zorglub committed
18
19
20
		dialogs_provider.moc.cpp \
		input_manager.moc.cpp \
		dialogs/playlist.moc.cpp \
Rémi Denis-Courmont's avatar
Tabs!    
Rémi Denis-Courmont committed
21
		dialogs/bookmarks.moc.cpp \
22
		dialogs/mediainfo.moc.cpp \
zorglub's avatar
zorglub committed
23
		dialogs/extended.moc.cpp \
24
		dialogs/messages.moc.cpp \
zorglub's avatar
zorglub committed
25
		dialogs/errors.moc.cpp \
26
		dialogs/preferences.moc.cpp \
zorglub's avatar
zorglub committed
27
		dialogs/interaction.moc.cpp \
zorglub's avatar
zorglub committed
28
		dialogs/sout.moc.cpp \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
29
		dialogs/help.moc.cpp \
30
		dialogs/gototime.moc.cpp \
31
		dialogs/open.moc.cpp \
32
		dialogs/podcast_configuration.moc.cpp \
33
		dialogs/vlm.moc.cpp \
zorglub's avatar
zorglub committed
34
		components/extended_panels.moc.cpp \
35
		components/info_panels.moc.cpp \
36
37
		components/preferences_widgets.moc.cpp \
		components/complete_preferences.moc.cpp \
zorglub's avatar
zorglub committed
38
		components/simple_preferences.moc.cpp \
39
		components/open_panels.moc.cpp \
40
		components/interface_widgets.moc.cpp \
41
		components/playlist/playlist_model.moc.cpp \
42
		components/playlist/playlist_item.moc.cpp \
43
		components/playlist/playlist.moc.cpp \
zorglub's avatar
zorglub committed
44
		components/playlist/panels.moc.cpp \
45
		components/playlist/selector.moc.cpp \
zorglub's avatar
Icons    
zorglub committed
46
		util/input_slider.moc.cpp \
zorglub's avatar
zorglub committed
47
		util/customwidgets.moc.cpp \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
48
49
		resources.cpp \
		ui/equalizer.h \
50
		ui/v4l2.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
51
52
53
54
55
56
		ui/video_effects.h \
		ui/open_file.h \
		ui/open_disk.h \
		ui/open_net.h \
		ui/open_capture.h \
		ui/open.h \
57
		ui/vlm.h \
58
		ui/podcast_configuration.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
59
60
61
62
63
64
65
		ui/sprefs_audio.h \
		ui/sprefs_input.h \
		ui/sprefs_interface.h \
		ui/sprefs_subtitles.h \
		ui/sprefs_video.h \
		ui/streampanel.h \
		ui/sout.h
zorglub's avatar
zorglub committed
66

67
BUILT_SOURCES += $(nodist_SOURCES_qt4)
68

69
resources.cpp: vlc.qrc
zorglub's avatar
zorglub committed
70
	$(RCC) -name vlc -o $@ $<
71

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
72
.hpp.moc.cpp:
73
	$(MOC) $(DEFS) $(CPPFLAGS) -I$(top_builddir) `$(VLC_CONFIG) --cppflags plugin qt4` -o $@ $<
zorglub's avatar
zorglub committed
74

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
75
.ui.h:
76
	mkdir -p -- ui
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
77
78
	rm -f $@ $@.tmp
	echo "#define Q_(a,b) QString::fromUtf8(_(a))" > $@.tmp
79
	$(UIC) -tr "Q_" $< >> $@.tmp
80
81
	sed -e 's/Q_(\"_(\\\"\(.*\)\\\")"/Q_("\1"/' $@.tmp >$@
	rm -f $@.tmp
zorglub's avatar
zorglub committed
82
83

SOURCES_qt4 = 	qt4.cpp \
84
		menus.cpp \
zorglub's avatar
zorglub committed
85
86
		main_interface.cpp \
		dialogs_provider.cpp \
zorglub's avatar
zorglub committed
87
		input_manager.cpp \
zorglub's avatar
zorglub committed
88
		dialogs/playlist.cpp \
Rémi Denis-Courmont's avatar
Tabs!    
Rémi Denis-Courmont committed
89
		dialogs/bookmarks.cpp \
90
		dialogs/preferences.cpp \
91
		dialogs/mediainfo.cpp \
zorglub's avatar
zorglub committed
92
		dialogs/extended.cpp \
93
		dialogs/messages.cpp \
zorglub's avatar
zorglub committed
94
		dialogs/errors.cpp \
zorglub's avatar
zorglub committed
95
		dialogs/interaction.cpp \
zorglub's avatar
zorglub committed
96
		dialogs/sout.cpp \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
97
		dialogs/help.cpp \
98
		dialogs/gototime.cpp \
99
		dialogs/open.cpp \
100
		dialogs/vlm.cpp \
101
		dialogs/podcast_configuration.cpp \
zorglub's avatar
zorglub committed
102
		components/extended_panels.cpp \
103
		components/info_panels.cpp \
zorglub's avatar
zorglub committed
104
		components/preferences_widgets.cpp \
105
		components/complete_preferences.cpp \
zorglub's avatar
zorglub committed
106
		components/simple_preferences.cpp \
107
		components/open_panels.cpp \
108
		components/interface_widgets.cpp \
109
		components/playlist/playlist_model.cpp \
110
		components/playlist/playlist_item.cpp \
zorglub's avatar
zorglub committed
111
		components/playlist/standardpanel.cpp \
112
		components/playlist/playlist.cpp \
113
		components/playlist/selector.cpp \
114
		util/input_slider.cpp \
115
116
		util/customwidgets.cpp \
		util/registry.cpp
zorglub's avatar
zorglub committed
117

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
118
noinst_HEADERS = \
zorglub's avatar
zorglub committed
119
	qt4.hpp \
120
	menus.hpp \
zorglub's avatar
zorglub committed
121
	main_interface.hpp \
zorglub's avatar
zorglub committed
122
123
124
	dialogs_provider.hpp \
	input_manager.hpp \
	dialogs/playlist.hpp \
Rémi Denis-Courmont's avatar
Tabs!    
Rémi Denis-Courmont committed
125
	dialogs/bookmarks.hpp \
126
	dialogs/mediainfo.hpp \
zorglub's avatar
zorglub committed
127
	dialogs/extended.hpp \
128
	dialogs/messages.hpp \
zorglub's avatar
zorglub committed
129
	dialogs/errors.hpp \
130
	dialogs/preferences.hpp \
Christophe Mutricy's avatar
Christophe Mutricy committed
131
	dialogs/interaction.hpp \
zorglub's avatar
zorglub committed
132
	dialogs/sout.hpp \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
133
	dialogs/help.hpp \
134
	dialogs/gototime.hpp \
135
	dialogs/open.hpp \
136
	dialogs/vlm.hpp \
137
	dialogs/podcast_configuration.hpp \
zorglub's avatar
zorglub committed
138
	components/extended_panels.hpp \
139
	components/info_panels.hpp \
zorglub's avatar
zorglub committed
140
	components/preferences_widgets.hpp \
141
	components/complete_preferences.hpp \
zorglub's avatar
zorglub committed
142
	components/simple_preferences.hpp \
143
	components/open_panels.hpp \
144
	components/interface_widgets.hpp \
145
	components/playlist/playlist_model.hpp \
146
	components/playlist/playlist_item.hpp \
zorglub's avatar
zorglub committed
147
	components/playlist/panels.hpp \
148
	components/playlist/playlist.hpp \
zorglub's avatar
zorglub committed
149
	components/playlist/selector.hpp \
Rafaël Carré's avatar
Rafaël Carré committed
150
	components/playlist/sorting.h \
zorglub's avatar
zorglub committed
151
	util/input_slider.hpp \
zorglub's avatar
zorglub committed
152
	util/customwidgets.hpp \
153
	util/qvlcframe.hpp \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
154
	util/registry.hpp
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
155
156

EXTRA_DIST += \
157
	vlc.qrc \
Christophe Mutricy's avatar
Christophe Mutricy committed
158
	ui/equalizer.ui \
159
	ui/v4l2.ui \
zorglub's avatar
zorglub committed
160
	ui/video_effects.ui \
161
162
163
	ui/open_file.ui \
	ui/open_disk.ui \
	ui/open_net.ui \
164
	ui/open_capture.ui \
165
	ui/open.ui \
166
	ui/podcast_configuration.ui \
167
	ui/sprefs_audio.ui \
168
	ui/sprefs_input.ui \
Christophe Mutricy's avatar
Christophe Mutricy committed
169
	ui/sprefs_interface.ui \
170
	ui/sprefs_subtitles.ui \
Christophe Mutricy's avatar
Christophe Mutricy committed
171
172
	ui/sprefs_video.ui \
	ui/streampanel.ui \
zorglub's avatar
zorglub committed
173
	ui/sout.ui \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
174
	ui/vlm.ui \
175
176
177
178
179
180
181
182
	pixmaps/advprefs_audio.png \
	pixmaps/advprefs_codec.png \
	pixmaps/advprefs_extended.png \
	pixmaps/advprefs_intf.png \
	pixmaps/advprefs_playlist.png \
	pixmaps/advprefs_sout.png \
	pixmaps/advprefs_video.png \
	pixmaps/capture-card_16px.png \
183
	pixmaps/cdda_16px.png \
184
185
186
187
188
	pixmaps/disc_16px.png \
	pixmaps/file-asym_16px.png \
	pixmaps/file-wide_16px.png \
	pixmaps/folder-blue_16px.png \
	pixmaps/folder-grey_16px.png \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
189
	pixmaps/go-next.png \
190
191
	pixmaps/harddisk_16px.png \
	pixmaps/menus_help_16px.png \
192
193
194
195
196
197
198
199
	pixmaps/menus_info_16px.png \
	pixmaps/menus_messages_16px.png \
	pixmaps/menus_preferences_16px.png \
	pixmaps/menus_quit_16px.png \
	pixmaps/menus_settings_16px.png \
	pixmaps/menus_stream_16px.png \
	pixmaps/network_16px.png \
	pixmaps/next_16px.png \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
200
201
	pixmaps/next.png \
	pixmaps/noart.png \
202
203
204
205
206
	pixmaps/pause_16px.png \
	pixmaps/pause.png \
	pixmaps/play_16px.png \
	pixmaps/playlist_16px.png \
	pixmaps/playlist_add.png \
Christophe Mutricy's avatar
Christophe Mutricy committed
207
	pixmaps/playlist.png \
208
209
210
211
212
	pixmaps/playlist_repeat_all.png \
	pixmaps/playlist_repeat_off.png \
	pixmaps/playlist_repeat_one.png \
	pixmaps/playlist_shuffle_off.png \
	pixmaps/playlist_shuffle_on.png \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
213
	pixmaps/play.png \
214
	pixmaps/previous_16px.png \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
215
	pixmaps/previous.png \
216
	pixmaps/record_16px.png \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
217
218
219
220
221
222
	pixmaps/spref_cone_Audio_64.png \
	pixmaps/spref_cone_Hotkeys_64.png \
	pixmaps/spref_cone_Input_64.png \
	pixmaps/spref_cone_Interface_64.png \
	pixmaps/spref_cone_Subtitles_64.png \
	pixmaps/spref_cone_Video_64.png \
223
	pixmaps/stop_16px.png \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
224
	pixmaps/stop.png \
225
226
227
228
229
230
231
	pixmaps/tape_16px.png \
	pixmaps/type_directory.png \
	pixmaps/type_file.png \
	pixmaps/type_net.png \
	pixmaps/type_node.png \
	pixmaps/type_playlist.png \
	pixmaps/type_unknown.xpm \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
232
	pixmaps/volume-high.png \
233
	pixmaps/volume-medium.png \
234
	pixmaps/volume-low.png \
235
236
237
238
	pixmaps/volume-muted.png \
	pixmaps/volume-slider.svg \
	pixmaps/volume-slider-inside.png \
	pixmaps/volume-slider-outside.png