Makefile.am 4.92 KB
Newer Older
1
noinst_PROGRAMS = \
2
	simple-decoder			\
3 4
	test-decode			\
	test-display			\
5
	test-filter			\
6 7 8
	test-surfaces			\
	test-windows			\
	test-subpicture			\
9 10 11 12
	$(NULL)

if USE_ENCODERS
noinst_PROGRAMS += \
13
	simple-encoder			\
14
	$(NULL)
15
endif
16

17 18 19 20 21 22 23
if USE_H264_FEI_ENCODER
noinst_PROGRAMS += \
        test-fei-enc-out            	\
        test-fei-enc-in            	\
        $(NULL)
endif

gb's avatar
gb committed
24
if USE_GLX
25 26
noinst_PROGRAMS += \
	test-textures			\
gb's avatar
gb committed
27
	$(NULL)
gb's avatar
gb committed
28
endif
gb's avatar
gb committed
29

30 31 32
TEST_CFLAGS = \
	-DGST_USE_UNSTABLE_API		\
	-I$(top_srcdir)/gst-libs	\
33
	-I$(top_builddir)/gst-libs	\
34 35
	$(LIBVA_CFLAGS)			\
	$(GST_CFLAGS)			\
36
	$(GST_VIDEO_CFLAGS)		\
37
	$(NULL)
38

39
GST_VAAPI_LIBS = $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi.la
40
TEST_LIBS = \
41 42
	$(LIBVA_LIBS)			\
	$(GST_LIBS)			\
43
	$(NULL)
gb's avatar
gb committed
44

45
if USE_DRM
46
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-drm.la
47
TEST_CFLAGS	+= $(LIBVA_DRM_CFLAGS)
48
TEST_LIBS	+= $(LIBVA_DRM_LIBS)
49 50
endif

51
if USE_X11
52
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11.la
53 54 55 56
TEST_CFLAGS	+= $(X11_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_X11_LIBS)		\
	$(X11_LIBS)			\
57
	$(NULL)
58
endif
59

gb's avatar
gb committed
60
if USE_GLX
61
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-glx.la
62 63 64 65 66
TEST_CFLAGS	+= $(X11_CFLAGS) $(GL_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_GLX_LIBS)		\
	$(X11_LIBS)			\
	$(GL_LIBS)			\
67
	$(NULL)
gb's avatar
gb committed
68
endif
gb's avatar
gb committed
69

Gwenole Beauchesne's avatar
Gwenole Beauchesne committed
70
if USE_EGL
71
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-egl.la
Gwenole Beauchesne's avatar
Gwenole Beauchesne committed
72 73 74 75
TEST_CFLAGS	+= $(EGL_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_EGL_LIBS)		\
	$(EGL_LIBS)			\
76
	$(NULL)
Gwenole Beauchesne's avatar
Gwenole Beauchesne committed
77 78
endif

79
if USE_WAYLAND
80
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-wayland.la
81 82 83 84
TEST_CFLAGS	+= $(WAYLAND_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_WAYLAND_LIBS)		\
	$(WAYLAND_LIBS)			\
85
	$(NULL)
86 87
endif

88 89
test_utils_dec_source_c =	\
	decoder.c	\
90 91 92 93 94 95
	test-h264.c	\
	test-jpeg.c	\
	test-mpeg2.c	\
	test-mpeg4.c	\
	test-vc1.c	\
	$(NULL)
96
test_utils_dec_source_h	= $(test_utils_dec_source_c:%.c=%.h) test-decode.h
97

98 99
test_utils_source_c	= codec.c image.c output.c
test_utils_source_h	= codec.h image.h output.h
100

101
noinst_LTLIBRARIES	= libutils.la libutils_dec.la
102

103 104
libutils_la_SOURCES	= $(test_utils_source_c)
libutils_la_CFLAGS	= $(TEST_CFLAGS)
105 106
libutils_la_LDFLAGS     = $(GST_VAAPI_LIBS)

107 108
libutils_dec_la_SOURCES	= $(test_utils_dec_source_c)
libutils_dec_la_CFLAGS	= $(TEST_CFLAGS)
109
libutils_dec_la_LDFLAGS = $(GST_VAAPI_LIBS)
110

111
test_decode_SOURCES	= test-decode.c
112
test_decode_CFLAGS	= $(TEST_CFLAGS)
113
test_decode_LDADD	= libutils.la libutils_dec.la $(TEST_LIBS)
114

115
test_display_SOURCES	= test-display.c
116
test_display_CFLAGS	= $(TEST_CFLAGS)
117
test_display_LDFLAGS    = $(GST_VAAPI_LIBS)
118
test_display_LDADD	= libutils.la $(TEST_LIBS)
119

120
test_filter_SOURCES	= test-filter.c
121
test_filter_CFLAGS	= $(TEST_CFLAGS)
122
test_filter_LDFLAGS     = $(GST_VAAPI_LIBS)
123
test_filter_LDADD	= libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS)
124

125
test_surfaces_SOURCES	= test-surfaces.c
126
test_surfaces_CFLAGS	= $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
127
test_surfaces_LDFLAGS   = $(GST_VAAPI_LIBS)
128
test_surfaces_LDADD	= libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS)
129

130
test_subpicture_SOURCES = test-subpicture.c test-subpicture-data.c
131 132 133
test_subpicture_CFLAGS  = $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
test_subpicture_LDADD   = libutils.la libutils_dec.la $(TEST_LIBS) \
	$(GST_VIDEO_LIBS)
134
test_subpicture_LDFLAGS = $(GST_VAAPI_LIBS)
135

136
test_windows_SOURCES	= test-windows.c
137
test_windows_CFLAGS	= $(TEST_CFLAGS)
138
test_windows_LDFLAGS    = $(GST_VAAPI_LIBS)
139
test_windows_LDADD	= libutils.la $(TEST_LIBS)
gb's avatar
gb committed
140

141
test_textures_SOURCES	= test-textures.c
142
test_textures_CFLAGS	= $(TEST_CFLAGS)
143
test_textures_LDFLAGS   = $(GST_VAAPI_LIBS)
144
test_textures_LDADD	= libutils.la $(TEST_LIBS)
gb's avatar
gb committed
145

146 147 148 149 150 151 152 153 154 155 156 157
test_fei_enc_out_SOURCES     = test-fei-enc-out.c ../gst/vaapi/gstvaapifeivideometa.h
test_fei_enc_out_CFLAGS      = $(TEST_CFLAGS)
test_fei_enc_out_LDFLAGS     = $(GST_VAAPI_LIBS)
test_fei_enc_out_LDADD       = libutils.la $(TEST_LIBS)

test_fei_enc_in_sources_c   = test-fei-enc-in.c ../gst/vaapi/gstvaapifeivideometa.h y4mreader.c
test_fei_enc_in_sources_h   = y4mreader.h
test_fei_enc_in_SOURCES     = $(test_fei_enc_in_sources_c)
test_fei_enc_in_CFLAGS      = $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
test_fei_enc_in_LDFLAGS     = $(GST_VAAPI_LIBS)
test_fei_enc_in_LDADD       = libutils.la $(TEST_LIBS)  $(GST_VIDEO_LIBS)

158 159 160
simple_decoder_source_c	= simple-decoder.c
simple_decoder_source_h	=
simple_decoder_SOURCES	= $(simple_decoder_source_c)
161
simple_decoder_CFLAGS	= $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
162
simple_decoder_LDFLAGS  = $(GST_VAAPI_LIBS)
163
simple_decoder_LDADD	= libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS)
164

165 166 167 168
simple_encoder_source_c = simple-encoder.c y4mreader.c
simple_encoder_source_h = y4mreader.h
simple_encoder_SOURCES  = $(simple_encoder_source_c)
simple_encoder_CFLAGS   = $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
169
simple_encoder_LDFLAGS  = $(GST_VAAPI_LIBS)
170 171
simple_encoder_LDADD    = libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS)

gb's avatar
gb committed
172
EXTRA_DIST = \
173
	test-subpicture-data.h		\
174
	$(simple_decoder_source_h)	\
175
	$(simple_encoder_source_h)	\
176 177
	$(test_utils_dec_source_h)	\
	$(test_utils_source_h)		\
gb's avatar
gb committed
178
	$(NULL)
gb's avatar
gb committed
179

180 181
SUBDIRS = elements

182
-include $(top_srcdir)/git.mk