android: adapt to the megadriver mechanism
authorAdrian Negreanu <adrian.m.negreanu@intel.com>
Fri, 6 Jun 2014 09:16:06 +0000 (12:16 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 9 Jun 2014 21:50:41 +0000 (22:50 +0100)
commitaba0f152be5bbc9fa844a53014bde7c02f056e4f
treea92aba97bf4a11a121f10f52b492b0f0a0bc5e6f
parenteb3f80dbba3c7e6e33d9b98a6b88761550fddb97
android: adapt to the megadriver mechanism

Fixes linker error:
  ld:
  .../libmesa_dri_common_intermediates/libmesa_dri_common.a(dri_util.o):
    in function globalDriverAPI:dri_util.c(.data.rel+0x0): error:
    undefined reference to 'driDriverAPI'

As an example, you can see that mesa_dri_drivers
also uses common/libmegadriver_stub (src/mesa/drivers/dri/Makefile.am)

The _stub part might be confusing, but
it actually provides the dri-driver shared lib constructor,
megadriver_stub_init, which will later on load the real
platform dependent part and call
l __driDriverGetExtensions_<platform>

Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/mesa/drivers/dri/Android.mk
src/mesa/drivers/dri/common/Android.mk