gstreamer/examples/egl/Makefile.am
Julien Isorce 71ddf32df9 example: port testegl.c to desktop
Will be easier to maintain.

Also uniformize autotool build with meson build which is
already retrieving the gl libs.

https://bugzilla.gnome.org/show_bug.cgi?id=781606
2017-12-11 16:59:01 +00:00

43 lines
648 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) \
-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
if USE_OMX_TARGET_RPI
testegl_LDADD += -lbcm_host
endif
testegl_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_CFLAGS) \
$(GST_GL_CFLAGS)