]> git.sesse.net Git - vlc/blob - share/Makefile.am
Provide luac compilation script. See vlc -I lua --lua-intf luac to get usage.
[vlc] / share / Makefile.am
1 CLEANFILES = skins2/default.vlt
2 MOSTLYCLEANFILES =
3
4 appdatadir = $(datadir)/applications/
5
6 iconsdatadir = $(datadir)/icons/hicolor/
7 icons16dir = $(iconsdatadir)/16x16/apps/
8 icons32dir = $(iconsdatadir)/32x32/apps/
9 icons48dir = $(iconsdatadir)/48x48/apps/
10 icons128dir = $(iconsdatadir)/128x128/apps/
11 icons256dir = $(iconsdatadir)/256x256/apps/
12
13 dist_appdata_DATA = vlc.desktop
14
15 dist_vlcdata_DATA = vlc.ico
16 dist_icons16_DATA = vlc16x16.png vlc16x16.xpm
17 dist_icons32_DATA = vlc32x32.png vlc32x32.xpm vlc32x32-christmas.xpm
18 dist_icons48_DATA = vlc48x48.png vlc48x48-christmas.png
19 dist_icons128_DATA = vlc128x128.png vlc128x128-christmas.png
20 dist_icons256_DATA = vlc256x256.png
21
22 nobase_dist_vlcdata_SCRIPTS = \
23         utils/gnome-vlc-default.sh \
24         utils/audio-vlc-default.sh \
25         utils/video-vlc-default.sh \
26         $(NULL)
27
28 EXTRA_DIST = \
29         $(skins2_default_vlt_FILES) \
30         $(DIST_rsrc) \
31         $(DIST_skins2) \
32         $(DIST_http) \
33         $(DIST_http_lua) \
34         $(DIST_lua) \
35         $(DIST_osdmenu_default) \
36         $(DIST_mozilla) \
37         $(DIST_maemo)
38
39 nobase_vlcdata_DATA =
40 if BUILD_SKINS
41 nobase_vlcdata_DATA += skins2/default.vlt
42 nobase_vlcdata_DATA += $(DIST_skins2)
43 endif
44 if BUILD_HTTPD
45 nobase_vlcdata_DATA += $(DIST_http)
46 endif
47 if BUILD_OSDMENU
48 nobase_vlcdata_DATA += \
49         $(DIST_osdmenu_default)
50 endif
51 if BUILD_MOZILLA
52 # TODO: move to the mozilla directory
53 nobase_vlcdata_DATA += $(DIST_mozilla)
54 endif
55 if BUILD_HILDON
56 nobase_vlcdata_DATA += $(DIST_maemo) $(maemo_FILES)
57 endif
58
59 DIST_rsrc = \
60         newres.h \
61         resource.h \
62         vlc_wince_rc.rc \
63         vlc_beos.rsrc
64
65 DIST_skins2 = \
66         skins2/fonts/FreeSans.ttf \
67         skins2/fonts/FreeSansBold.ttf \
68         skins2/skin.dtd \
69         skins2/skin.catalog \
70         skins2/winamp2.xml
71
72 skins2_default_vlt_FILES = \
73         skins2/default/theme.xml \
74         skins2/default/subX/about.png \
75         skins2/default/subX/eq.png \
76         skins2/default/subX/font.otf \
77         skins2/default/subX/main.png \
78         skins2/default/subX/playtreeglyphs.png \
79         skins2/default/subX/pl.png \
80         skins2/default/subX/sysbuttons.png \
81         skins2/default/subX/vol_anim.png \
82         skins2/default/subX/vol_slider.png
83
84 skins2/default.vlt: $(skins2_default_vlt_FILES)
85         mkdir -p skins2
86         tar cvvzf skins2/default.vlt --exclude .svn -C $(srcdir)/skins2 default/
87
88 DIST_http = \
89         http/.hosts \
90         http/dialogs/.hosts \
91         http/dialogs/browse \
92         http/dialogs/footer \
93         http/dialogs/input \
94         http/dialogs/main \
95         http/dialogs/mosaic \
96         http/dialogs/playlist \
97         http/dialogs/sout \
98         http/dialogs/vlm \
99         http/favicon.ico \
100         http/images/delete.png \
101         http/images/delete_small.png \
102         http/images/eject.png \
103         http/images/empty.png \
104         http/images/fullscreen.png \
105         http/images/help.png \
106         http/images/info.png \
107         http/images/loop.png \
108         http/images/minus.png \
109         http/images/next.png \
110         http/images/pause.png \
111         http/images/play.png \
112         http/images/playlist.png \
113         http/images/playlist_small.png \
114         http/images/plus.png \
115         http/images/prev.png \
116         http/images/refresh.png \
117         http/images/repeat.png \
118         http/images/sd.png \
119         http/images/shuffle.png \
120         http/images/slider_bar.png \
121         http/images/slider_left.png \
122         http/images/slider_point.png \
123         http/images/slider_right.png \
124         http/images/snapshot.png \
125         http/images/slow.png \
126         http/images/sort.png \
127         http/images/sout.png \
128         http/images/speaker.png \
129         http/images/speaker_mute.png \
130         http/images/stop.png \
131         http/images/vlc16x16.png \
132         http/images/volume_down.png \
133         http/images/volume_up.png \
134         http/images/white.png \
135         http/images/white_cross_small.png \
136         http/index.html \
137         http/js/functions.js \
138         http/js/mosaic.js \
139         http/js/vlm.js \
140         http/mosaic.html \
141         http/requests/browse.xml \
142         http/requests/playlist.xml \
143         http/requests/status.xml \
144         http/requests/vlm.xml \
145         http/requests/vlm_cmd.xml \
146         http/requests/readme \
147         http/style.css \
148         http/iehacks.css \
149         http/vlm.html \
150         http/vlm_export.html \
151         http/flash.html
152
153 DIST_osdmenu_default = \
154         osdmenu/default.cfg \
155         osdmenu/default/unselected.png \
156         osdmenu/default/selection/bw.png \
157         osdmenu/default/selection/esc.png \
158         osdmenu/default/selection/fw.png \
159         osdmenu/default/selection/volume.png \
160         osdmenu/default/selection/next.png \
161         osdmenu/default/selection/play_pause.png \
162         osdmenu/default/selection/previous.png \
163         osdmenu/default/selection/stop.png \
164         osdmenu/default/selected/bw.png \
165         osdmenu/default/selected/next.png \
166         osdmenu/default/selected/play_pause.png \
167         osdmenu/default/selected/fw.png \
168         osdmenu/default/selected/stop.png \
169         osdmenu/default/selected/previous.png \
170         osdmenu/default/selected/esc.png \
171         osdmenu/default/selected/volume.png \
172         osdmenu/default/volume/volume_00.png \
173         osdmenu/default/volume/volume_01.png \
174         osdmenu/default/volume/volume_02.png \
175         osdmenu/default/volume/volume_03.png \
176         osdmenu/default/volume/volume_04.png \
177         osdmenu/default/volume/volume_05.png \
178         osdmenu/default/volume/volume_06.png \
179         osdmenu/default/volume/volume_07.png \
180         osdmenu/default/volume/volume_08.png \
181         osdmenu/default/volume/volume_09.png \
182         osdmenu/default/volume/volume_10.png
183
184 #
185 # LUA
186 #
187 luac_verbose = $(luac_verbose_$(V))
188 luac_verbose_ = $(luac_verbose_$(AM_DEFAULT_VERBOSITY))
189 luac_verbose_0 = @echo "  LUAC   $@";
190
191 .lua.luac:
192         $(AM_V_at)for f in $(EXTRA_DIST); do \
193                 test "$(srcdir)" = . || f="$(srcdir)/$$f"; \
194                 if test $$f = $<; then \
195                         exit 0; \
196                 fi; \
197         done; \
198         echo "Attempt to byte-compile unknown file: $(<)!"; \
199         exit 1
200         $(AM_V_at)mkdir -p "$$(dirname '$@')"
201         $(luac_verbose)$(LUAC) -o $@ $<
202
203 if BUILD_LUA
204 nobase_vlclib_DATA = \
205         lua/intf/luac.luac \
206         lua/intf/rc.luac \
207         lua/intf/hotkeys.luac \
208         lua/intf/modules/common.luac \
209         lua/intf/modules/host.luac \
210         lua/intf/telnet.luac \
211         lua/intf/dummy.luac \
212         lua/intf/dumpmeta.luac \
213         lua/meta/art/01_musicbrainz.luac \
214         lua/meta/art/02_frenchtv.luac \
215         lua/meta/art/10_googleimage.luac \
216         lua/meta/fetcher/tvrage.luac \
217         lua/meta/reader/filename.luac \
218         lua/modules/sandbox.luac \
219         lua/modules/simplexml.luac \
220         lua/playlist/anevia_streams.luac \
221         lua/playlist/appletrailers.luac \
222         lua/playlist/break.luac \
223         lua/playlist/cue.luac \
224         lua/playlist/dailymotion.luac \
225         lua/playlist/france2.luac \
226         lua/playlist/googlevideo.luac \
227         lua/playlist/jamendo.luac \
228         lua/playlist/joox.luac \
229         lua/playlist/katsomo.luac \
230         lua/playlist/lelombrik.luac \
231         lua/playlist/megavideo.luac \
232         lua/playlist/metacafe.luac \
233         lua/playlist/mpora.luac \
234         lua/playlist/vimeo.luac \
235         lua/playlist/youtube.luac \
236         lua/playlist/youtube_homepage.luac \
237         lua/sd/fmc.luac \
238         lua/sd/freebox.luac \
239         lua/sd/frenchtv.luac \
240         lua/sd/icecast.luac \
241         lua/sd/jamendo.luac \
242         $(NULL)
243 if BUILD_HTTPD
244 nobase_vlclib_DATA += \
245         lua/intf/http.luac \
246         $(NULL)
247 nobase_vlcdata_DATA += $(DIST_http_lua)
248 endif
249 endif
250 MOSTLYCLEANFILES += $(nobase_vlclib_DATA)
251
252 EXTRA_DIST += \
253         lua/README.txt \
254         lua/meta/art/README.txt \
255         lua/meta/art/01_musicbrainz.lua \
256         lua/meta/art/02_frenchtv.lua \
257         lua/meta/art/10_googleimage.lua \
258         lua/meta/fetcher/README.txt \
259         lua/meta/fetcher/tvrage.lua \
260         lua/meta/reader/README.txt \
261         lua/meta/reader/filename.lua \
262         lua/playlist/README.txt \
263         lua/playlist/anevia_streams.lua \
264         lua/playlist/appletrailers.lua \
265         lua/playlist/break.lua \
266         lua/playlist/cue.lua \
267         lua/playlist/dailymotion.lua \
268         lua/playlist/france2.lua \
269         lua/playlist/jamendo.lua \
270         lua/playlist/joox.lua \
271         lua/playlist/katsomo.lua \
272         lua/playlist/lelombrik.lua \
273         lua/playlist/youtube.lua \
274         lua/playlist/youtube_homepage.lua \
275         lua/playlist/megavideo.lua \
276         lua/playlist/metacafe.lua \
277         lua/playlist/googlevideo.lua \
278         lua/playlist/mpora.lua \
279         lua/playlist/vimeo.lua \
280         lua/intf/README.txt \
281         lua/intf/http.lua \
282         lua/intf/rc.lua \
283         lua/intf/luac.lua \
284         lua/intf/hotkeys.lua \
285         lua/intf/modules/common.lua \
286         lua/intf/modules/host.lua \
287         lua/intf/telnet.lua \
288         lua/intf/dummy.lua \
289         lua/intf/dumpmeta.lua \
290         lua/modules/sandbox.lua \
291         lua/modules/simplexml.lua \
292         lua/sd/README.txt \
293         lua/sd/fmc.lua \
294         lua/sd/freebox.lua \
295         lua/sd/frenchtv.lua \
296         lua/sd/icecast.lua \
297         lua/sd/jamendo.lua
298
299 DIST_http_lua = \
300         lua/http/.hosts \
301         lua/http/custom.lua \
302         lua/http/dialogs/.hosts \
303         lua/http/dialogs/browse \
304         lua/http/dialogs/footer \
305         lua/http/dialogs/input \
306         lua/http/dialogs/main \
307         lua/http/dialogs/mosaic \
308         lua/http/dialogs/playlist \
309         lua/http/dialogs/sout \
310         lua/http/dialogs/vlm \
311         lua/http/favicon.ico \
312         lua/http/images/delete.png \
313         lua/http/images/delete_small.png \
314         lua/http/images/eject.png \
315         lua/http/images/empty.png \
316         lua/http/images/fullscreen.png \
317         lua/http/images/help.png \
318         lua/http/images/info.png \
319         lua/http/images/loop.png \
320         lua/http/images/minus.png \
321         lua/http/images/next.png \
322         lua/http/images/pause.png \
323         lua/http/images/play.png \
324         lua/http/images/playlist.png \
325         lua/http/images/playlist_small.png \
326         lua/http/images/plus.png \
327         lua/http/images/prev.png \
328         lua/http/images/refresh.png \
329         lua/http/images/repeat.png \
330         lua/http/images/reset.png \
331         lua/http/images/sd.png \
332         lua/http/images/shuffle.png \
333         lua/http/images/slider_bar.png \
334         lua/http/images/slider_left.png \
335         lua/http/images/slider_point.png \
336         lua/http/images/slider_right.png \
337         lua/http/images/snapshot.png \
338         lua/http/images/slow.png \
339         lua/http/images/sort.png \
340         lua/http/images/sout.png \
341         lua/http/images/speaker.png \
342         lua/http/images/speaker_mute.png \
343         lua/http/images/stop.png \
344         lua/http/images/vlc16x16.png \
345         lua/http/images/volume_down.png \
346         lua/http/images/volume_up.png \
347         lua/http/images/white.png \
348         lua/http/images/white_cross_small.png \
349         lua/http/index.html \
350         lua/http/js/functions.js \
351         lua/http/js/mosaic.js \
352         lua/http/js/vlm.js \
353         lua/http/mosaic.html \
354         lua/http/requests/browse.xml \
355         lua/http/requests/playlist.xml \
356         lua/http/requests/status.xml \
357         lua/http/requests/vlm.xml \
358         lua/http/requests/vlm_cmd.xml \
359         lua/http/requests/readme \
360         lua/http/style.css \
361         lua/http/iehacks.css \
362         lua/http/vlm.html \
363         lua/http/vlm_export.html \
364         lua/http/flash.html
365
366 DIST_mozilla = \
367         mozilla/fullscreen.xpm \
368         mozilla/pause.xpm \
369         mozilla/play.xpm \
370         mozilla/skip_next.xpm \
371         mozilla/skip_previous.xpm \
372         mozilla/stop.xpm \
373         mozilla/time_icon.xpm \
374         mozilla/time_line.xpm \
375         mozilla/volume_knob.xpm \
376         mozilla/volume_max.xpm \
377         mozilla/volume_mute.xpm \
378         mozilla/volume_slider_bar.xpm
379
380 DIST_maemo = \
381         maemo/vlc_intf.rc \
382         maemo/vlc_left_tab_active.png \
383         maemo/vlc_left_tab_passive.png \
384         maemo/playlist.png \
385         maemo/play.png \
386         maemo/pause.png \
387         maemo/stop.png \
388         maemo/previous.png \
389         maemo/next.png
390
391 maemo_FILES = \
392         vlc32x32.png