2012-07-20 14:37:01 +00:00
|
|
|
noinst_PROGRAMS = \
|
2013-01-15 16:33:18 +00:00
|
|
|
simple-decoder \
|
2012-07-20 14:37:01 +00:00
|
|
|
test-decode \
|
|
|
|
test-display \
|
2013-07-08 08:54:55 +00:00
|
|
|
test-filter \
|
2012-07-20 14:37:01 +00:00
|
|
|
test-surfaces \
|
|
|
|
test-windows \
|
|
|
|
test-subpicture \
|
2015-06-18 10:19:26 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
if USE_ENCODERS
|
|
|
|
noinst_PROGRAMS += \
|
2015-05-05 11:08:25 +00:00
|
|
|
simple-encoder \
|
2010-03-16 08:49:16 +00:00
|
|
|
$(NULL)
|
2015-06-18 10:19:26 +00:00
|
|
|
endif
|
2010-03-16 08:49:16 +00:00
|
|
|
|
2017-08-10 01:46:09 +00:00
|
|
|
if USE_H264_FEI_ENCODER
|
|
|
|
noinst_PROGRAMS += \
|
|
|
|
test-fei-enc-out \
|
|
|
|
test-fei-enc-in \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2010-03-26 08:10:23 +00:00
|
|
|
if USE_GLX
|
2012-07-20 14:37:01 +00:00
|
|
|
noinst_PROGRAMS += \
|
|
|
|
test-textures \
|
2010-03-25 17:28:49 +00:00
|
|
|
$(NULL)
|
2010-03-26 08:10:23 +00:00
|
|
|
endif
|
2010-03-25 17:28:49 +00:00
|
|
|
|
2012-07-20 14:37:01 +00:00
|
|
|
TEST_CFLAGS = \
|
|
|
|
-DGST_USE_UNSTABLE_API \
|
|
|
|
-I$(top_srcdir)/gst-libs \
|
2013-01-11 12:34:45 +00:00
|
|
|
-I$(top_builddir)/gst-libs \
|
2012-07-20 14:37:01 +00:00
|
|
|
$(LIBVA_CFLAGS) \
|
|
|
|
$(GST_CFLAGS) \
|
2013-11-26 12:06:07 +00:00
|
|
|
$(GST_VIDEO_CFLAGS) \
|
2012-07-20 14:37:01 +00:00
|
|
|
$(NULL)
|
2010-03-16 08:49:16 +00:00
|
|
|
|
2015-12-09 18:52:33 +00:00
|
|
|
GST_VAAPI_LIBS = $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi.la
|
2010-03-16 08:49:16 +00:00
|
|
|
TEST_LIBS = \
|
2012-07-20 14:37:01 +00:00
|
|
|
$(LIBVA_LIBS) \
|
|
|
|
$(GST_LIBS) \
|
2015-12-09 15:59:16 +00:00
|
|
|
$(NULL)
|
2010-03-26 08:10:23 +00:00
|
|
|
|
2012-08-01 13:44:49 +00:00
|
|
|
if USE_DRM
|
2015-12-09 18:52:33 +00:00
|
|
|
GST_VAAPI_LIBS += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-drm.la
|
2012-08-01 13:44:49 +00:00
|
|
|
TEST_CFLAGS += $(LIBVA_DRM_CFLAGS)
|
2015-12-09 15:59:16 +00:00
|
|
|
TEST_LIBS += $(LIBVA_DRM_LIBS)
|
2012-08-01 13:44:49 +00:00
|
|
|
endif
|
|
|
|
|
2012-07-20 14:37:01 +00:00
|
|
|
if USE_X11
|
2015-12-09 18:52:33 +00:00
|
|
|
GST_VAAPI_LIBS += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11.la
|
2012-07-20 14:37:01 +00:00
|
|
|
TEST_CFLAGS += $(X11_CFLAGS)
|
|
|
|
TEST_LIBS += \
|
|
|
|
$(LIBVA_X11_LIBS) \
|
|
|
|
$(X11_LIBS) \
|
2015-12-09 15:59:16 +00:00
|
|
|
$(NULL)
|
2012-07-20 14:37:01 +00:00
|
|
|
endif
|
2010-03-16 08:49:16 +00:00
|
|
|
|
2010-03-26 08:10:23 +00:00
|
|
|
if USE_GLX
|
2015-12-09 18:52:33 +00:00
|
|
|
GST_VAAPI_LIBS += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-glx.la
|
2012-07-20 14:37:01 +00:00
|
|
|
TEST_CFLAGS += $(X11_CFLAGS) $(GL_CFLAGS)
|
|
|
|
TEST_LIBS += \
|
|
|
|
$(LIBVA_GLX_LIBS) \
|
|
|
|
$(X11_LIBS) \
|
|
|
|
$(GL_LIBS) \
|
2015-12-09 15:59:16 +00:00
|
|
|
$(NULL)
|
2010-03-26 08:10:23 +00:00
|
|
|
endif
|
2010-03-25 17:28:49 +00:00
|
|
|
|
2014-12-01 13:52:39 +00:00
|
|
|
if USE_EGL
|
2015-12-09 18:52:33 +00:00
|
|
|
GST_VAAPI_LIBS += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-egl.la
|
2014-12-01 13:52:39 +00:00
|
|
|
TEST_CFLAGS += $(EGL_CFLAGS)
|
|
|
|
TEST_LIBS += \
|
|
|
|
$(LIBVA_EGL_LIBS) \
|
|
|
|
$(EGL_LIBS) \
|
2015-12-09 15:59:16 +00:00
|
|
|
$(NULL)
|
2014-12-01 13:52:39 +00:00
|
|
|
endif
|
|
|
|
|
2012-07-23 10:56:33 +00:00
|
|
|
if USE_WAYLAND
|
2015-12-09 18:52:33 +00:00
|
|
|
GST_VAAPI_LIBS += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-wayland.la
|
2012-07-23 10:56:33 +00:00
|
|
|
TEST_CFLAGS += $(WAYLAND_CFLAGS)
|
|
|
|
TEST_LIBS += \
|
|
|
|
$(LIBVA_WAYLAND_LIBS) \
|
|
|
|
$(WAYLAND_LIBS) \
|
2015-12-09 15:59:16 +00:00
|
|
|
$(NULL)
|
2012-07-23 10:56:33 +00:00
|
|
|
endif
|
|
|
|
|
2013-01-10 10:22:38 +00:00
|
|
|
test_utils_dec_source_c = \
|
|
|
|
decoder.c \
|
2012-12-17 10:51:17 +00:00
|
|
|
test-h264.c \
|
|
|
|
test-jpeg.c \
|
|
|
|
test-mpeg2.c \
|
|
|
|
test-mpeg4.c \
|
|
|
|
test-vc1.c \
|
|
|
|
$(NULL)
|
2013-01-10 10:22:38 +00:00
|
|
|
test_utils_dec_source_h = $(test_utils_dec_source_c:%.c=%.h) test-decode.h
|
2010-04-23 16:11:55 +00:00
|
|
|
|
2013-01-15 16:30:57 +00:00
|
|
|
test_utils_source_c = codec.c image.c output.c
|
|
|
|
test_utils_source_h = codec.h image.h output.h
|
2012-07-23 12:11:16 +00:00
|
|
|
|
2013-01-10 10:22:38 +00:00
|
|
|
noinst_LTLIBRARIES = libutils.la libutils_dec.la
|
2015-12-09 15:59:16 +00:00
|
|
|
|
2012-07-23 12:11:16 +00:00
|
|
|
libutils_la_SOURCES = $(test_utils_source_c)
|
|
|
|
libutils_la_CFLAGS = $(TEST_CFLAGS)
|
2015-12-09 15:59:16 +00:00
|
|
|
libutils_la_LDFLAGS = $(GST_VAAPI_LIBS)
|
|
|
|
|
2013-01-10 10:22:38 +00:00
|
|
|
libutils_dec_la_SOURCES = $(test_utils_dec_source_c)
|
|
|
|
libutils_dec_la_CFLAGS = $(TEST_CFLAGS)
|
2015-12-09 15:59:16 +00:00
|
|
|
libutils_dec_la_LDFLAGS = $(GST_VAAPI_LIBS)
|
2012-07-23 12:11:16 +00:00
|
|
|
|
2013-01-10 10:22:38 +00:00
|
|
|
test_decode_SOURCES = test-decode.c
|
2012-07-20 14:37:01 +00:00
|
|
|
test_decode_CFLAGS = $(TEST_CFLAGS)
|
2013-01-10 10:22:38 +00:00
|
|
|
test_decode_LDADD = libutils.la libutils_dec.la $(TEST_LIBS)
|
2010-04-23 16:11:55 +00:00
|
|
|
|
2010-03-16 08:49:16 +00:00
|
|
|
test_display_SOURCES = test-display.c
|
2012-07-20 14:37:01 +00:00
|
|
|
test_display_CFLAGS = $(TEST_CFLAGS)
|
2015-12-09 15:59:16 +00:00
|
|
|
test_display_LDFLAGS = $(GST_VAAPI_LIBS)
|
2012-07-23 12:11:16 +00:00
|
|
|
test_display_LDADD = libutils.la $(TEST_LIBS)
|
2010-03-16 08:49:16 +00:00
|
|
|
|
2013-07-08 08:54:55 +00:00
|
|
|
test_filter_SOURCES = test-filter.c
|
2013-11-26 12:06:07 +00:00
|
|
|
test_filter_CFLAGS = $(TEST_CFLAGS)
|
2015-12-09 15:59:16 +00:00
|
|
|
test_filter_LDFLAGS = $(GST_VAAPI_LIBS)
|
2015-04-03 14:01:45 +00:00
|
|
|
test_filter_LDADD = libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS)
|
2013-07-08 08:54:55 +00:00
|
|
|
|
2010-03-16 08:49:16 +00:00
|
|
|
test_surfaces_SOURCES = test-surfaces.c
|
2013-07-10 11:07:37 +00:00
|
|
|
test_surfaces_CFLAGS = $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
|
2015-12-09 15:59:16 +00:00
|
|
|
test_surfaces_LDFLAGS = $(GST_VAAPI_LIBS)
|
2015-04-03 14:01:45 +00:00
|
|
|
test_surfaces_LDADD = libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS)
|
2010-03-16 08:49:16 +00:00
|
|
|
|
2012-07-23 12:15:42 +00:00
|
|
|
test_subpicture_SOURCES = test-subpicture.c test-subpicture-data.c
|
2013-01-10 12:09:28 +00:00
|
|
|
test_subpicture_CFLAGS = $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
|
|
|
|
test_subpicture_LDADD = libutils.la libutils_dec.la $(TEST_LIBS) \
|
|
|
|
$(GST_VIDEO_LIBS)
|
2015-12-09 15:59:16 +00:00
|
|
|
test_subpicture_LDFLAGS = $(GST_VAAPI_LIBS)
|
2011-10-14 16:00:12 +00:00
|
|
|
|
2012-07-23 12:11:16 +00:00
|
|
|
test_windows_SOURCES = test-windows.c
|
2012-07-20 14:37:01 +00:00
|
|
|
test_windows_CFLAGS = $(TEST_CFLAGS)
|
2015-12-09 15:59:16 +00:00
|
|
|
test_windows_LDFLAGS = $(GST_VAAPI_LIBS)
|
2012-07-23 12:11:16 +00:00
|
|
|
test_windows_LDADD = libutils.la $(TEST_LIBS)
|
2010-03-25 17:28:49 +00:00
|
|
|
|
2012-07-23 12:11:16 +00:00
|
|
|
test_textures_SOURCES = test-textures.c
|
2012-07-20 14:37:01 +00:00
|
|
|
test_textures_CFLAGS = $(TEST_CFLAGS)
|
2015-12-09 15:59:16 +00:00
|
|
|
test_textures_LDFLAGS = $(GST_VAAPI_LIBS)
|
2012-07-23 12:11:16 +00:00
|
|
|
test_textures_LDADD = libutils.la $(TEST_LIBS)
|
2010-01-25 15:04:10 +00:00
|
|
|
|
2017-08-10 01:46:09 +00:00
|
|
|
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)
|
|
|
|
|
2013-01-15 16:33:18 +00:00
|
|
|
simple_decoder_source_c = simple-decoder.c
|
|
|
|
simple_decoder_source_h =
|
|
|
|
simple_decoder_SOURCES = $(simple_decoder_source_c)
|
2013-01-16 12:29:06 +00:00
|
|
|
simple_decoder_CFLAGS = $(TEST_CFLAGS) $(GST_VIDEO_CFLAGS)
|
2015-12-09 15:59:16 +00:00
|
|
|
simple_decoder_LDFLAGS = $(GST_VAAPI_LIBS)
|
2015-04-03 14:01:45 +00:00
|
|
|
simple_decoder_LDADD = libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS)
|
2013-01-15 16:33:18 +00:00
|
|
|
|
2015-05-05 11:08:25 +00:00
|
|
|
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)
|
2015-12-09 15:59:16 +00:00
|
|
|
simple_encoder_LDFLAGS = $(GST_VAAPI_LIBS)
|
2015-05-05 11:08:25 +00:00
|
|
|
simple_encoder_LDADD = libutils.la $(TEST_LIBS) $(GST_VIDEO_LIBS)
|
|
|
|
|
2010-05-03 22:42:46 +00:00
|
|
|
EXTRA_DIST = \
|
2013-01-10 10:22:38 +00:00
|
|
|
test-subpicture-data.h \
|
2013-01-15 16:33:18 +00:00
|
|
|
$(simple_decoder_source_h) \
|
2015-05-13 09:54:01 +00:00
|
|
|
$(simple_encoder_source_h) \
|
2013-01-10 10:22:38 +00:00
|
|
|
$(test_utils_dec_source_h) \
|
|
|
|
$(test_utils_source_h) \
|
2010-05-03 22:42:46 +00:00
|
|
|
$(NULL)
|
2010-03-29 14:40:26 +00:00
|
|
|
|
2016-07-01 07:01:54 +00:00
|
|
|
SUBDIRS = elements
|
|
|
|
|
2015-05-13 08:38:24 +00:00
|
|
|
-include $(top_srcdir)/git.mk
|