summaryrefslogtreecommitdiff
path: root/tests/elements/Makefile.am
blob: 73e39ed49ad3bc06b95b1b2ed8bc6ca079112df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
noinst_PROGRAMS = \
	test-vaapisink  \
	$(NULL)

TEST_CFLAGS = \
	-DGST_USE_UNSTABLE_API		\
	-I$(top_srcdir)/gst-libs	\
	-I$(top_builddir)/gst-libs	\
	$(LIBVA_CFLAGS)			\
	$(GST_CFLAGS)			\
	$(GST_VIDEO_CFLAGS)		\
	$(NULL)

GST_VAAPI_LIBS = $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi.la
TEST_LIBS = \
	$(LIBVA_LIBS)			\
	$(GST_LIBS)			\
	$(NULL)

if USE_DRM
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-drm.la
TEST_CFLAGS	+= $(LIBVA_DRM_CFLAGS)
TEST_LIBS	+= $(LIBVA_DRM_LIBS)
endif

if USE_X11
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-x11.la
TEST_CFLAGS	+= $(X11_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_X11_LIBS)		\
	$(X11_LIBS)			\
	$(NULL)
endif

if USE_GLX
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-glx.la
TEST_CFLAGS	+= $(X11_CFLAGS) $(GL_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_GLX_LIBS)		\
	$(X11_LIBS)			\
	$(GL_LIBS)			\
	$(NULL)
endif

if USE_EGL
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-egl.la
TEST_CFLAGS	+= $(EGL_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_EGL_LIBS)		\
	$(EGL_LIBS)			\
	$(NULL)
endif

if USE_WAYLAND
GST_VAAPI_LIBS  += $(top_builddir)/gst-libs/gst/vaapi/libgstvaapi-wayland.la
TEST_CFLAGS	+= $(WAYLAND_CFLAGS)
TEST_LIBS	+= \
	$(LIBVA_WAYLAND_LIBS)		\
	$(WAYLAND_LIBS)			\
	$(NULL)
endif

test_vaapisink_SOURCES	= test-vaapisink.c
test_vaapisink_CFLAGS	= $(TEST_CFLAGS)
test_vaapisink_LDFLAGS  = $(GST_VAAPI_LIBS)
test_vaapisink_LDADD	= $(TEST_LIBS)

-include $(top_srcdir)/git.mk