modules: use different directory prefixes for each plugins subdirectory
[vlc.git] / modules / hw / vdpau / Makefile.am
1 include $(top_srcdir)/modules/common.am
2 vdpaudir = $(pluginsdir)/vdpau
3
4 AM_CFLAGS += $(VDPAU_CFLAGS)
5 AM_LIBADD += libvlc_vdpau.la
6
7 libvlc_vdpau_la_SOURCES = vlc_vdpau.c vlc_vdpau.h instance.c
8 libvlc_vdpau_la_CPPFLAGS =
9 libvlc_vdpau_la_LIBADD = $(X_LIBS) $(X_PRE_LIBS) -lX11 \
10         $(LIBDL) $(LIBPTHREAD)
11 libvlc_vdpau_la_LDFLAGS = \
12         -no-undefined \
13         -export-symbols-regex ^vdp_ \
14         -version-info 0:0:0
15 pkglib_LTLIBRARIES = libvlc_vdpau.la
16
17 vdpau_LTLIBRARIES =
18
19 libvdpau_avcodec_plugin_la_SOURCES = avcodec.c picture.c
20 libvdpau_avcodec_plugin_la_CFLAGS = $(AM_CFLAGS) \
21         $(X_CFLAGS) $(AVCODEC_CFLAGS)
22 libvdpau_avcodec_plugin_la_LIBADD = $(AM_LIBADD) \
23         $(X_LIBS) $(X_PRE_LIBS) -lX11 $(AVCODEC_LIBS)
24 # FIXME: hwdummy only needs libavutil, and only if avcodec < 55.13.0
25 if HAVE_AVCODEC_VDPAU
26 vdpau_LTLIBRARIES += libvdpau_avcodec_plugin.la
27 endif
28
29 libvdpau_deinterlace_plugin_la_SOURCES = deinterlace.c picture.c
30 libvdpau_deinterlace_plugin_la_CFLAGS = $(AM_CFLAGS) # dummy
31 libvdpau_deinterlace_plugin_la_LIBADD = $(AM_LIBADD)
32 vdpau_LTLIBRARIES += libvdpau_deinterlace_plugin.la
33
34 libvdpau_adjust_plugin_la_SOURCES = adjust.c picture.c
35 libvdpau_adjust_plugin_la_CFLAGS = $(AM_CFLAGS) # dummy
36 libvdpau_adjust_plugin_la_LIBADD = $(AM_LIBADD)
37 vdpau_LTLIBRARIES += libvdpau_adjust_plugin.la
38
39 libvdpau_sharpen_plugin_la_SOURCES = sharpen.c picture.c
40 libvdpau_sharpen_plugin_la_CFLAGS = $(AM_CFLAGS) # dummy
41 libvdpau_sharpen_plugin_la_LIBADD = $(AM_LIBADD)
42 vdpau_LTLIBRARIES += libvdpau_sharpen_plugin.la
43
44 libvdpau_chroma_plugin_la_SOURCES = chroma.c picture.c
45 libvdpau_chroma_plugin_la_CFLAGS = $(AM_CFLAGS) # dummy
46 libvdpau_chroma_plugin_la_LIBADD = $(AM_LIBADD)
47 vdpau_LTLIBRARIES += libvdpau_chroma_plugin.la
48
49 libvdpau_display_plugin_la_SOURCES = display.c
50 libvdpau_display_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
51         -I$(srcdir)/../../video_output/xcb
52 libvdpau_display_plugin_la_CFLAGS = $(AM_CFLAGS) \
53         $(XCB_CFLAGS)
54 libvdpau_display_plugin_la_LIBADD = \
55         ../../video_output/libvlc_xcb_events.la \
56         $(AM_LIBADD) $(X_LIBS) $(X_PRE_LIBS) -lX11 $(XCB_LIBS)
57 vdpau_LTLIBRARIES += libvdpau_display_plugin.la