egl/dri: link directly to libglapi.so
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 27 Sep 2017 16:36:29 +0000 (17:36 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 2 Oct 2017 15:26:46 +0000 (16:26 +0100)
commitd884d8d0077c16d459b11699c552184dfec581b2
tree86c5680dc33479c9394a58dd05ab565569381737
parent21e271024d8e050b75361c2da2e5783100f2e87b
egl/dri: link directly to libglapi.so

Shared glapi (libglapi.so) has been a requirement for years, in order
to build EGL.

Remove the no longer necessary dlopen/dlsym dance and link to the
library directly.

This allows us to remove a handful of platform specific workarounds, due
to the different name of the library.

v2:
 - Android: export the include dir (RobH)
 - Drop unused local variable (Eric)

Cc: Jonathan Gray <jsg@jsg.id.au>
Cc: Jon Turney <jon.turney@dronecode.org.uk>
Cc: Julien Isorce <julien.isorce@gmail.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (v1)
Tested-by: Tomasz Figa <tfiga@chromium.org> (v1)
Tested-by: Rob Herring <robh@kernel.org>
src/egl/Android.mk
src/egl/Makefile.am
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/mapi/Android.mk