]> git.sesse.net Git - vlc/blob - modules/Makefile.am
Try to generate the plugins cache from make
[vlc] / modules / Makefile.am
1 NULL =
2 BASE_SUBDIRS = \
3         access \
4         audio_filter \
5         audio_mixer \
6         audio_output \
7         codec \
8         control \
9         demux \
10         gui \
11         meta_engine \
12         misc \
13         packetizer \
14         services_discovery \
15         stream_filter \
16         video_chroma \
17         video_filter \
18         video_output \
19         visualization
20 EXTRA_SUBDIRS = \
21         access_output \
22         mux \
23         stream_out \
24         mmx \
25         mmxext \
26         sse2 \
27         3dnow \
28         altivec \
29         arm_neon \
30         $(NULL)
31
32 SUBDIRS = $(BASE_SUBDIRS)
33 DIST_SUBDIRS = $(BASE_SUBDIRS) $(EXTRA_SUBDIRS) .
34 if ENABLE_SOUT
35 SUBDIRS += access_output mux stream_out
36 endif
37 if HAVE_MMX
38 SUBDIRS += mmx
39 endif
40 if HAVE_MMXEXT
41 SUBDIRS += mmxext
42 endif
43 if HAVE_SSE2
44 SUBDIRS += sse2
45 endif
46 if HAVE_3DNOW
47 SUBDIRS += 3dnow
48 endif
49 if HAVE_ALTIVEC
50 SUBDIRS += altivec
51 endif
52 if HAVE_ARM_NEON
53 SUBDIRS += arm_neon
54 endif
55 SUBDIRS += .
56
57 dist_noinst_SCRIPTS = genmf list.sh
58 dist_noinst_DATA = LIST
59 noinst_DATA = stamp-cache
60 MOSTLYCLEANFILES = stamp-cache plugins-*-*.dat
61
62 .PHONY: stamp-cache
63
64 stamp-cache:
65         $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
66                 ../bin/vlc-cache-gen$(EXEEXT) . ; \
67         else \
68                 echo "Cross-compilation: cache generation skipped!" ; \
69         fi
70         $(AM_V_at)touch stamp-cache
71
72 install-exec-hook:
73         if test -z "$(DESTDIR)"; then \
74                 cd "$(vlclibdir)" && ./vlc-cache-gen . ; \
75         else \
76                 echo "Staged installation: cache generation skipped!" ; \
77         fi