mapi/shared-glapi/test: rework glapitable.h handling
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 13 Oct 2017 15:35:47 +0000 (16:35 +0100)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 13 Oct 2017 18:12:08 +0000 (11:12 -0700)
commit9b753e8ca35cf8fa19a9520c3670b6bc736cc84b
treef2ee3c4f79e4a7c2cc9a336c85dba6b28d35b0fb
parent142dc8b9de58748e46c9bbc7f4dccbb0ad692a6a
mapi/shared-glapi/test: rework glapitable.h handling

Currently all the build systems but Meson generate the header in
src/mapi/glapi. Meson cannot do that since:
 - it does not allow user control over the location of output files
 - moving the generation rule(s) causes explosion due to the unusual
structure of glapi and friends
 - copying the file into the correct location is a non-trivial task

To workaround the above deficiency in the least invasive way, let's
adjust the #include directive and add a few -I flags to the autotools
build.

Note: both builddir and srcdir, should be used. Otherwise building from
a release tarball fails badly.

Cc: Dylan Baker <dylanx.c.baker@intel.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/mapi/Makefile.am
src/mapi/shared-glapi/tests/check_table.cpp