modules: use different directory prefixes for each plugins subdirectory
[vlc.git] / modules / audio_output / Modules.am
1 aoutdir = $(pluginsdir)/audio_output
2 aout_LTLIBRARIES =
3
4 SOURCES_waveout = waveout.c windows_audio_common.h
5 SOURCES_auhal = TPCircularBuffer.h TPCircularBuffer.c auhal.c
6 SOURCES_audiounit_ios = TPCircularBuffer.h TPCircularBuffer.c audiounit_ios.c
7 SOURCES_audioqueue = audioqueue.c
8
9 libopensles_android_plugin_la_SOURCES = opensles_android.c
10 libopensles_android_plugin_la_CFLAGS = $(AM_CFLAGS)
11 libopensles_android_plugin_la_LIBADD = $(AM_LIBADD) -ldl -lm
12
13 libandroid_audiotrack_plugin_la_SOURCES = audiotrack.c
14 libandroid_audiotrack_plugin_la_CFLAGS = $(AM_CFLAGS)
15 libandroid_audiotrack_plugin_la_LIBADD = $(AM_LIBADD) -ldl
16
17 if HAVE_ANDROID
18 aout_LTLIBRARIES += libandroid_audiotrack_plugin.la libopensles_android_plugin.la
19 endif
20
21 libadummy_plugin_la_SOURCES = adummy.c
22 libadummy_plugin_la_CFLAGS = $(AM_CFLAGS)
23 libadummy_plugin_la_LIBADD = $(AM_LIBADD)
24 if HAVE_WIN32
25 libadummy_plugin_la_DEPENDENCIES = libadummy_plugin.rc.o
26 endif
27
28 libafile_plugin_la_SOURCES = file.c
29 libafile_plugin_la_CFLAGS = $(AM_CFLAGS)
30 libafile_plugin_la_LIBADD = $(AM_LIBADD)
31 if HAVE_WIN32
32 libafile_plugin_la_DEPENDENCIES = libafile_plugin.rc.o
33 endif
34
35 libamem_plugin_la_SOURCES = amem.c
36 libamem_plugin_la_CFLAGS = $(AM_CFLAGS)
37 libamem_plugin_la_LIBADD = $(AM_LIBADD)
38 if HAVE_WIN32
39 libamem_plugin_la_DEPENDENCIES = libamem_plugin.rc.o
40 endif
41
42 aout_LTLIBRARIES += \
43         libadummy_plugin.la \
44         libafile_plugin.la \
45         libamem_plugin.la
46
47 liboss_plugin_la_SOURCES = oss.c volume.h
48 liboss_plugin_la_CFLAGS = $(AM_CFLAGS)
49 liboss_plugin_la_LIBADD = $(AM_LIBADD) $(OSS_LIBS) $(LIBM)
50 if HAVE_OSS
51 aout_LTLIBRARIES += liboss_plugin.la
52 endif
53
54 libalsa_plugin_la_SOURCES = alsa.c volume.h
55 libalsa_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALSA_CFLAGS)
56 libalsa_plugin_la_LIBADD = $(AM_LIBADD) $(ALSA_LIBS) $(LIBM)
57 if HAVE_ALSA
58 aout_LTLIBRARIES += libalsa_plugin.la
59 endif
60
61 libpulse_plugin_la_SOURCES = pulse.c
62 libpulse_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
63 libpulse_plugin_la_LIBADD = ../libvlc_pulse.la \
64         $(AM_LIBADD) $(PULSE_LIBS) $(LIBM)
65 if HAVE_PULSE
66 aout_LTLIBRARIES += libpulse_plugin.la
67 endif
68
69 libjack_plugin_la_SOURCES = jack.c volume.h
70 libjack_plugin_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
71 libjack_plugin_la_LIBADD = $(AM_LIBADD) $(JACK_LIBS) $(LIBM)
72 if HAVE_JACK
73 aout_LTLIBRARIES += libjack_plugin.la
74 endif
75
76 libmmdevice_plugin_la_SOURCES = mmdevice.c mmdevice.h wasapi.c
77 libmmdevice_plugin_la_CFLAGS = $(AM_CFLAGS)
78 libmmdevice_plugin_la_LIBADD = $(AM_LIBADD) -lole32 -lksuser
79 if HAVE_WIN32
80 libmmdevice_plugin_la_DEPENDENCIES = libmmdevice_plugin.rc.o
81 endif
82 if HAVE_WASAPI
83 aout_LTLIBRARIES += libmmdevice_plugin.la
84 endif
85
86 libdirectsound_plugin_la_SOURCES = directx.c windows_audio_common.h
87 libdirectsound_plugin_la_CFLAGS = $(AM_CFLAGS)
88 libdirectsound_plugin_la_LIBADD = $(AM_LIBADD) -lole32
89 if HAVE_WIN32
90 libdirectsound_plugin_la_DEPENDENCIES = libdirectsound_plugin.rc.o
91 endif
92 if HAVE_DIRECTX
93 aout_LTLIBRARIES += libdirectsound_plugin.la
94 endif
95
96 libkai_plugin_la_SOURCES = kai.c
97 libkai_plugin_la_CFLAGS = $(AM_CFLAGS)
98 libkai_plugin_la_LIBADD = $(AM_LIBADD) $(KAI_LIBS)
99 if HAVE_KAI
100 aout_LTLIBRARIES += libkai_plugin.la
101 endif
102
103 libsndio_plugin_la_SOURCES = sndio.c
104 libsndio_plugin_la_CFLAGS = $(AM_CFLAGS)
105 libsndio_plugin_la_LIBADD = $(AM_LIBADD) -lsndio
106 if HAVE_SNDIO
107 aout_LTLIBRARIES += libsndio_plugin.la
108 endif