gstreamer/examples/egl/Makefile.am
Guillaume Desmottes d7c589122b testegl: properly detect and use rpi specific libs
Use pkg-config to detect and configure rpi specific libs used in testegl
rather than hardcoding their flags.
2019-04-12 14:29:19 +05:30

41 lines
631 B
Makefile

noinst_PROGRAMS =
if USE_OMX_TARGET_RPI
noinst_PROGRAMS += testegl
else
if HAVE_X11
noinst_PROGRAMS += testegl
endif
endif
testegl_SOURCES = testegl.c
noinst_HEADERS = cube_texture_and_coords.h
testegl_LDADD = \
$(GST_PLUGINS_BASE_LIBS) \
-lgstvideo-@GST_API_VERSION@ \
$(GST_BASE_LIBS) \
$(GST_LIBS) \
$(GST_GL_LIBS) \
$(BRCMEGL_LIBS) \
-lm
if HAVE_GLES2
testegl_LDADD += $(GLES2_LIBS)
endif
if HAVE_EGL
testegl_LDADD += $(EGL_LIBS)
endif
if HAVE_X11
testegl_LDADD += $(X11_LIBS)
endif
testegl_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_CFLAGS) \
$(GST_GL_CFLAGS) \
$(BRCMEGL_CFLAGS)