PulseAudio: use the helpers
[vlc.git] / 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         media_library \
14         packetizer \
15         services_discovery \
16         stream_filter \
17         video_chroma \
18         video_filter \
19         video_output \
20         visualization
21 EXTRA_SUBDIRS = \
22         access_output \
23         mux \
24         stream_out \
25         mmx \
26         mmxext \
27         sse2 \
28         3dnow \
29         altivec \
30         arm_neon \
31         lua \
32         $(NULL)
33
34 SUBDIRS = $(BASE_SUBDIRS)
35 DIST_SUBDIRS = $(BASE_SUBDIRS) $(EXTRA_SUBDIRS) .
36 if ENABLE_SOUT
37 SUBDIRS += access_output mux stream_out
38 endif
39 if HAVE_MMX
40 SUBDIRS += mmx
41 endif
42 if HAVE_MMXEXT
43 SUBDIRS += mmxext
44 endif
45 if HAVE_SSE2
46 SUBDIRS += sse2
47 endif
48 if HAVE_3DNOW
49 SUBDIRS += 3dnow
50 endif
51 if HAVE_ALTIVEC
52 SUBDIRS += altivec
53 endif
54 if HAVE_NEON
55 SUBDIRS += arm_neon
56 endif
57 if BUILD_LUA
58 SUBDIRS += lua
59 endif
60 SUBDIRS += .
61
62 dist_noinst_SCRIPTS = genmf list.sh
63 dist_noinst_DATA = LIST
64 MOSTLYCLEANFILES = plugins.dat*
65
66 .PHONY: stamp-cache
67
68 stamp-cache:
69         $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
70                 ../bin/vlc-cache-gen$(EXEEXT) . ; \
71         else \
72                 echo "Cross-compilation: cache generation skipped!" ; \
73         fi
74
75 install-exec-hook:
76         if test -z "$(DESTDIR)" -a "$(build)" = "$(host)"; then \
77                 LD_LIBRARY_PATH="$(libdir)" \
78                 "$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
79                          "$(vlclibdir)/plugins" ; \
80         else \
81                 echo "Staged installation: cache generation skipped!" ; \
82         fi