ed8d4eddd47839318c2ca48efc7b44f4328b1909
[platform/upstream/gstreamer.git] / examples / egl / Makefile.am
1 noinst_PROGRAMS = 
2
3 if USE_OMX_TARGET_RPI
4 noinst_PROGRAMS += testegl
5 else
6 if HAVE_X11
7 noinst_PROGRAMS += testegl
8 endif
9 endif
10
11 testegl_SOURCES = testegl.c
12
13 noinst_HEADERS = cube_texture_and_coords.h
14
15 testegl_LDADD = \
16         $(GST_PLUGINS_BASE_LIBS) \
17   -lgstvideo-@GST_API_VERSION@ \
18         $(GST_BASE_LIBS) \
19         $(GST_LIBS) \
20         $(GST_GL_LIBS) \
21         $(BRCMEGL_LIBS) \
22         -lm
23
24 if HAVE_GLES2
25 testegl_LDADD += $(GLES2_LIBS)
26 endif
27
28 if HAVE_EGL
29 testegl_LDADD += $(EGL_LIBS)
30 endif
31
32 if HAVE_X11
33 testegl_LDADD += $(X11_LIBS)
34 endif
35
36 testegl_CFLAGS = \
37         $(GST_PLUGINS_BASE_CFLAGS) \
38         $(GST_BASE_CFLAGS) \
39         $(GST_CFLAGS) \
40         $(GST_GL_CFLAGS) \
41         $(BRCMEGL_CFLAGS)