android: virgl: fix generated virgl_driinfo.h building rules
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 21 Jun 2019 17:50:45 +0000 (19:50 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Sat, 29 Jun 2019 14:25:01 +0000 (16:25 +0200)
commitc237654dca131be938d11a2565d402a600cfa618
tree32aa927bb59492db07f66a3edd11528d1db8d77b
parent5847de6e9afe12bd29ad694a76860a0575ab4747
android: virgl: fix generated virgl_driinfo.h building rules

Changelog in Android makefile:
- Add LOCAL_MODULE_CLASS, intermediates and LOCAL_GENERATED_SOURCES
- Use LOCAL_EXPORT_C_INCLUDE_DIRS to export $(intermediates) path
- Move generated header rules before 'include $(BUILD_STATIC_LIBRARY)'

Fixes the following building error:

In file included from external/mesa/src/gallium/targets/dri/target.c:1:
external/mesa/src/gallium/auxiliary/target-helpers/drm_helper.h:257:16:
fatal error: 'virgl/virgl_driinfo.h' file not found
      #include "virgl/virgl_driinfo.h"
               ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Fixes: cf800998a ("virgl: Add driinfo file and tie it into the build")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Review-by: Chih-Wei Huang <cwhuang@linux.org.tw>
src/gallium/drivers/virgl/Android.mk