modules: use different directory prefixes for each plugins subdirectory
[vlc.git] / modules / video_chroma / Makefile.am
1 include $(top_srcdir)/modules/common.am
2 chromadir = $(pluginsdir)/video_chroma
3
4 libchain_plugin_la_SOURCES = chain.c
5 libchain_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
6
7 libchroma_omx_plugin_la_SOURCES = omxdl.c
8 libchroma_omx_plugin_la_CFLAGS = $(AM_CFLAGS) $(OMXIP_CFLAGS)
9 libchroma_omx_plugin_la_LIBADD = $(AM_LIBADD) $(OMXIP_LIBS)
10
11 libswscale_plugin_la_SOURCES = swscale.c ../codec/avcodec/chroma.c
12 libswscale_plugin_la_CFLAGS = $(AM_CFLAGS) $(SWSCALE_CFLAGS)
13 libswscale_plugin_la_LIBADD = $(AM_LIBADD) $(SWSCALE_LIBS)
14 libswscale_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(chromadir)'
15
16 libgrey_yuv_plugin_la_SOURCES = grey_yuv.c
17 libgrey_yuv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
18
19 libi420_rgb_plugin_la_SOURCES = i420_rgb.c i420_rgb.h \
20         i420_rgb8.c i420_rgb16.c i420_rgb_c.h
21 libi420_rgb_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
22 libi420_rgb_plugin_la_LIBADD = $(AM_LIBADD) $(LIBM)
23
24 libi420_yuy2_plugin_la_SOURCES = i420_yuy2.c i420_yuy2.h
25 libi420_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
26
27 libi422_i420_plugin_la_SOURCES = i422_i420.c
28 libi422_i420_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
29
30 libi422_yuy2_plugin_la_SOURCES = i422_yuy2.c i422_yuy2.h
31 libi422_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
32
33 librv32_plugin_la_SOURCES = rv32.c
34 librv32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
35
36 libyuy2_i420_plugin_la_SOURCES = yuy2_i420.c
37 libyuy2_i420_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
38
39 libyuy2_i422_plugin_la_SOURCES = yuy2_i422.c
40 libyuy2_i422_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
41
42 chroma_LTLIBRARIES = \
43         libi420_rgb_plugin.la \
44         libi420_yuy2_plugin.la \
45         libi422_i420_plugin.la \
46         libi422_yuy2_plugin.la \
47         libgrey_yuv_plugin.la \
48         libyuy2_i420_plugin.la \
49         libyuy2_i422_plugin.la \
50         librv32_plugin.la \
51         libchain_plugin.la \
52         $(LTLIBswscale)
53
54 EXTRA_LTLIBRARIES = libswscale_plugin.la libchroma_omx_plugin.la
55
56 # AltiVec
57 libi420_yuy2_altivec_plugin_la_SOURCES = i420_yuy2.c i420_yuy2.h
58 libi420_yuy2_altivec_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALTIVEC_CFLAGS)
59
60 if HAVE_ALTIVEC
61 chroma_LTLIBRARIES += \
62         libi420_yuy2_altivec_plugin.la
63 endif
64
65 # MMX
66 libi420_rgb_mmx_plugin_la_SOURCES = i420_rgb.c i420_rgb.h \
67         i420_rgb16_x86.c i420_rgb_mmx.h
68 libi420_rgb_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMMX
69
70 libi420_yuy2_mmx_plugin_la_SOURCES = i420_yuy2.c i420_yuy2.h
71 libi420_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
72
73 libi422_yuy2_mmx_plugin_la_SOURCES = i422_yuy2.c i422_yuy2.h
74 libi422_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
75
76 if HAVE_MMX
77 chroma_LTLIBRARIES += \
78         libi420_rgb_mmx_plugin.la \
79         libi420_yuy2_mmx_plugin.la \
80         libi422_yuy2_mmx_plugin.la
81 endif
82
83 # SSE2
84 libi420_rgb_sse2_plugin_la_SOURCES = i420_rgb.c i420_rgb.h \
85         i420_rgb16_x86.c i420_rgb_sse2.h
86 libi420_rgb_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DSSE2
87
88 libi420_yuy2_sse2_plugin_la_SOURCES = i420_yuy2.c i420_yuy2.h
89 libi420_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
90
91 libi422_yuy2_sse2_plugin_la_SOURCES = i422_yuy2.c i422_yuy2.h
92 libi422_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
93
94 if HAVE_SSE2
95 chroma_LTLIBRARIES += \
96         libi420_rgb_sse2_plugin.la \
97         libi420_yuy2_sse2_plugin.la \
98         libi422_yuy2_sse2_plugin.la
99 endif