Makefile.am 3.27 KB
Newer Older
1
include $(top_srcdir)/modules/common.am
2
chromadir = $(pluginsdir)/video_chroma
3 4 5 6 7 8 9 10 11 12 13

libchain_plugin_la_SOURCES = chain.c
libchain_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)

libchroma_omx_plugin_la_SOURCES = omxdl.c
libchroma_omx_plugin_la_CFLAGS = $(AM_CFLAGS) $(OMXIP_CFLAGS)
libchroma_omx_plugin_la_LIBADD = $(AM_LIBADD) $(OMXIP_LIBS)

libswscale_plugin_la_SOURCES = swscale.c ../codec/avcodec/chroma.c
libswscale_plugin_la_CFLAGS = $(AM_CFLAGS) $(SWSCALE_CFLAGS)
libswscale_plugin_la_LIBADD = $(AM_LIBADD) $(SWSCALE_LIBS)
14
libswscale_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(chromadir)'
15 16 17 18 19 20 21 22 23 24

libgrey_yuv_plugin_la_SOURCES = grey_yuv.c
libgrey_yuv_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)

libi420_rgb_plugin_la_SOURCES = i420_rgb.c i420_rgb.h \
	i420_rgb8.c i420_rgb16.c i420_rgb_c.h
libi420_rgb_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libi420_rgb_plugin_la_LIBADD = $(AM_LIBADD) $(LIBM)

libi420_yuy2_plugin_la_SOURCES = i420_yuy2.c i420_yuy2.h
25 26
libi420_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_yuy2
27 28 29 30 31

libi422_i420_plugin_la_SOURCES = i422_i420.c
libi422_i420_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)

libi422_yuy2_plugin_la_SOURCES = i422_yuy2.c i422_yuy2.h
32 33
libi422_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i422_yuy2
34 35 36 37 38 39 40 41 42 43

librv32_plugin_la_SOURCES = rv32.c
librv32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)

libyuy2_i420_plugin_la_SOURCES = yuy2_i420.c
libyuy2_i420_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)

libyuy2_i422_plugin_la_SOURCES = yuy2_i422.c
libyuy2_i422_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)

44
chroma_LTLIBRARIES = \
45 46 47 48 49 50 51 52 53 54 55 56
	libi420_rgb_plugin.la \
	libi420_yuy2_plugin.la \
	libi422_i420_plugin.la \
	libi422_yuy2_plugin.la \
	libgrey_yuv_plugin.la \
	libyuy2_i420_plugin.la \
	libyuy2_i422_plugin.la \
	librv32_plugin.la \
	libchain_plugin.la \
	$(LTLIBswscale)

EXTRA_LTLIBRARIES = libswscale_plugin.la libchroma_omx_plugin.la
57

58 59
# AltiVec
libi420_yuy2_altivec_plugin_la_SOURCES = i420_yuy2.c i420_yuy2.h
60 61
libi420_yuy2_altivec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_yuy2_altivec
62 63 64
libi420_yuy2_altivec_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALTIVEC_CFLAGS)

if HAVE_ALTIVEC
65
chroma_LTLIBRARIES += \
66 67 68
	libi420_yuy2_altivec_plugin.la
endif

69 70
# MMX
libi420_rgb_mmx_plugin_la_SOURCES = i420_rgb.c i420_rgb.h \
71 72
	i420_rgb16_x86.c i420_rgb_mmx.h
libi420_rgb_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMMX
73 74

libi420_yuy2_mmx_plugin_la_SOURCES = i420_yuy2.c i420_yuy2.h
75 76
libi420_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_yuy2_mmx
77 78

libi422_yuy2_mmx_plugin_la_SOURCES = i422_yuy2.c i422_yuy2.h
79 80
libi422_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i422_yuy2_mmx
81 82

if HAVE_MMX
83
chroma_LTLIBRARIES += \
84 85 86 87
	libi420_rgb_mmx_plugin.la \
	libi420_yuy2_mmx_plugin.la \
	libi422_yuy2_mmx_plugin.la
endif
88 89 90

# SSE2
libi420_rgb_sse2_plugin_la_SOURCES = i420_rgb.c i420_rgb.h \
91 92
	i420_rgb16_x86.c i420_rgb_sse2.h
libi420_rgb_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DSSE2
93 94

libi420_yuy2_sse2_plugin_la_SOURCES = i420_yuy2.c i420_yuy2.h
95 96
libi420_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_yuy2_sse2
97 98

libi422_yuy2_sse2_plugin_la_SOURCES = i422_yuy2.c i422_yuy2.h
99 100
libi422_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i422_yuy2_sse2
101 102

if HAVE_SSE2
103
chroma_LTLIBRARIES += \
104 105 106 107
	libi420_rgb_sse2_plugin.la \
	libi420_yuy2_sse2_plugin.la \
	libi422_yuy2_sse2_plugin.la
endif