Makefile.am 4.99 KB
Newer Older
1
chromadir = $(pluginsdir)/video_chroma
2

3
libchain_plugin_la_SOURCES = video_chroma/chain.c
4

5 6 7
libchroma_copy_la_SOURCES = video_chroma/copy.c video_chroma/copy.h
libchroma_copy_la_LDFLAGS = -static
noinst_LTLIBRARIES += libchroma_copy.la
8

9
libchroma_omx_plugin_la_SOURCES = video_chroma/omxdl.c
10
libchroma_omx_plugin_la_CFLAGS = $(AM_CFLAGS) $(OMXIP_CFLAGS)
11
libchroma_omx_plugin_la_LIBADD = $(OMXIP_LIBS)
12

13
libswscale_plugin_la_SOURCES = video_chroma/swscale.c codec/avcodec/chroma.c
14
libswscale_plugin_la_CFLAGS = $(AM_CFLAGS) $(SWSCALE_CFLAGS)
15
libswscale_plugin_la_LIBADD = $(SWSCALE_LIBS) $(LIBM)
16
libswscale_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(chromadir)'
17

18
libgrey_yuv_plugin_la_SOURCES = video_chroma/grey_yuv.c
19

20 21
libi420_rgb_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
	video_chroma/i420_rgb8.c video_chroma/i420_rgb16.c video_chroma/i420_rgb_c.h
22
libi420_rgb_plugin_la_LIBADD = $(LIBM)
23

24
libi420_yuy2_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
25 26
libi420_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_yuy2
27

28
libi420_nv12_plugin_la_SOURCES = video_chroma/i420_nv12.c
29 30
libi420_nv12_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_nv12
31
libi420_nv12_plugin_la_LIBADD = libchroma_copy.la
32

33
libi420_10_p010_plugin_la_SOURCES = video_chroma/i420_10_p010.c
34 35
libi420_10_p010_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_10_p010
36
libi420_10_p010_plugin_la_LIBADD = libchroma_copy.la
37

38
libi422_i420_plugin_la_SOURCES = video_chroma/i422_i420.c
39

40
libi422_yuy2_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
41 42
libi422_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i422_yuy2
43

44
librv32_plugin_la_SOURCES = video_chroma/rv32.c
45

46
libyuy2_i420_plugin_la_SOURCES = video_chroma/yuy2_i420.c
47

48
libyuy2_i422_plugin_la_SOURCES = video_chroma/yuy2_i422.c
49

50 51
libyuvp_plugin_la_SOURCES = video_chroma/yuvp.c

52
chroma_LTLIBRARIES = \
53 54
	libi420_rgb_plugin.la \
	libi420_yuy2_plugin.la \
55
	libi420_nv12_plugin.la \
56
	libi420_10_p010_plugin.la \
57 58 59 60 61 62 63
	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 \
64
	libyuvp_plugin.la \
65 66
	$(LTLIBswscale)

67
EXTRA_LTLIBRARIES += libswscale_plugin.la libchroma_omx_plugin.la
68

69
# AltiVec
70
libi420_yuy2_altivec_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
71 72
libi420_yuy2_altivec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_yuy2_altivec
73 74 75
libi420_yuy2_altivec_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALTIVEC_CFLAGS)

if HAVE_ALTIVEC
76
chroma_LTLIBRARIES += \
77 78 79
	libi420_yuy2_altivec_plugin.la
endif

80
# MMX
81 82
libi420_rgb_mmx_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
	video_chroma/i420_rgb16_x86.c video_chroma/i420_rgb_mmx.h
83
libi420_rgb_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMMX
84

85
libi420_yuy2_mmx_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
86 87
libi420_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_yuy2_mmx
88

89
libi422_yuy2_mmx_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
90 91
libi422_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i422_yuy2_mmx
92 93

if HAVE_MMX
94
chroma_LTLIBRARIES += \
95 96 97 98
	libi420_rgb_mmx_plugin.la \
	libi420_yuy2_mmx_plugin.la \
	libi422_yuy2_mmx_plugin.la
endif
99 100

# SSE2
101 102
libi420_rgb_sse2_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
	video_chroma/i420_rgb16_x86.c video_chroma/i420_rgb_sse2.h
103
libi420_rgb_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DSSE2
104

105
libi420_yuy2_sse2_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
106 107
libi420_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i420_yuy2_sse2
108

109
libi422_yuy2_sse2_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
110 111
libi422_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_i422_yuy2_sse2
112 113

if HAVE_SSE2
114
chroma_LTLIBRARIES += \
115 116 117 118
	libi420_rgb_sse2_plugin.la \
	libi420_yuy2_sse2_plugin.la \
	libi422_yuy2_sse2_plugin.la
endif
119

120 121 122 123 124 125 126 127 128 129
libcvpx_plugin_la_SOURCES = codec/vt_utils.c codec/vt_utils.h video_chroma/cvpx.c
if HAVE_OSX
libcvpx_plugin_la_CFLAGS = $(AM_CFLAGS) -mmacosx-version-min=10.8
endif
if HAVE_IOS
libcvpx_plugin_la_CFLAGS = $(AM_CFLAGS) -miphoneos-version-min=8.0
endif
if HAVE_TVOS
libcvpx_plugin_la_CFLAGS = $(AM_CFLAGS) -mtvos-version-min=10.2
endif
130 131 132
libcvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(chromadir)' -Wl,-framework,Foundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo
EXTRA_LTLIBRARIES += libcvpx_plugin.la
chroma_LTLIBRARIES += $(LTLIBcvpx)
Thomas Guillem's avatar
Thomas Guillem committed
133 134 135 136 137 138 139

# Tests
chroma_copy_sse_test_SOURCES = $(libchroma_copy_la_SOURCES)
chroma_copy_sse_test_CFLAGS = -DCOPY_TEST
chroma_copy_sse_test_LDADD = ../src/libvlccore.la

chroma_copy_test_SOURCES = $(libchroma_copy_la_SOURCES)
Thomas Guillem's avatar
Thomas Guillem committed
140
chroma_copy_test_CFLAGS = -DCOPY_TEST -DCOPY_TEST_NOOPTIM
Thomas Guillem's avatar
Thomas Guillem committed
141 142 143 144 145 146 147 148
chroma_copy_test_LDADD = ../src/libvlccore.la

if HAVE_SSE2
check_PROGRAMS += chroma_copy_sse_test
TESTS += chroma_copy_sse_test
endif
check_PROGRAMS += chroma_copy_test
TESTS += chroma_copy_test