mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 06:22:29 +00:00
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.
This commit is contained in:
parent
9b68aaeeb5
commit
d7c589122b
3 changed files with 12 additions and 5 deletions
|
@ -253,6 +253,10 @@ if test "x$ac_cv_omx_target" = "xtizonia"; then
|
|||
AC_SUBST(TIZONIA_LIBDIR)
|
||||
fi
|
||||
|
||||
if test "x$ac_cv_omx_target" = "xrpi"; then
|
||||
PKG_CHECK_MODULES([BRCMEGL], [brcmegl])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH([omx-header-path],
|
||||
AS_HELP_STRING([--with-omx-header-path],[path of external OpenMAX IL header files]),
|
||||
[omx_header_path="$withval"], [omx_header_path="none"])
|
||||
|
|
|
@ -18,6 +18,7 @@ testegl_LDADD = \
|
|||
$(GST_BASE_LIBS) \
|
||||
$(GST_LIBS) \
|
||||
$(GST_GL_LIBS) \
|
||||
$(BRCMEGL_LIBS) \
|
||||
-lm
|
||||
|
||||
if HAVE_GLES2
|
||||
|
@ -32,12 +33,9 @@ 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)
|
||||
$(GST_GL_CFLAGS) \
|
||||
$(BRCMEGL_CFLAGS)
|
||||
|
|
|
@ -16,6 +16,11 @@ if x11_dep.found() or omx_target == 'rpi'
|
|||
gles2_dep = cc.find_library ('GLESv2')
|
||||
endif
|
||||
|
||||
if omx_target == 'rpi'
|
||||
brcmegl_dep = dependency('brcmegl', required : true)
|
||||
optional_deps += brcmegl_dep
|
||||
endif
|
||||
|
||||
executable ('testegl',
|
||||
sources : egl_sources,
|
||||
c_args : gst_omx_args,
|
||||
|
|
Loading…
Reference in a new issue