freedreno/drm: android: add libfreedreno_registers static dependency
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 9 May 2020 07:44:35 +0000 (09:44 +0200)
committermaurossi <issor.oruam@gmail.com>
Sat, 9 May 2020 16:19:14 +0000 (16:19 +0000)
The dependency is required to get the necessary generated headers

Fixes the following building error:

In file included from external/mesa/src/freedreno/drm/msm_bo.c:27:
In file included from external/mesa/src/freedreno/drm/msm_priv.h:30:
In file included from external/mesa/src/freedreno/drm/freedreno_priv.h:51:
external/mesa/src/freedreno/drm/freedreno_ringbuffer.h:35:10: fatal error: 'adreno_common.xml.h' file not found
#include "adreno_common.xml.h"
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.

Fixes: 6c688ae8 ("freedreno: Deduplicate ringbuffer macros with computerator/fdperf")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4973>

src/freedreno/Android.drm.mk

index dfa9bed7d2ecf6b5d1bebc7b16dfe8ed79e30d0a..0a79fcf9a60c70ee1cdfdf7355621bba8f83c4c9 100644 (file)
@@ -37,5 +37,7 @@ LOCAL_C_INCLUDES := \
 
 LOCAL_MODULE := libfreedreno_drm
 
+LOCAL_STATIC_LIBRARIES := libfreedreno_registers
+
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)