android: fix cflags and includes for amdgpu winsys
authorMauro Rossi <issor.oruam@gmail.com>
Tue, 18 Aug 2015 09:53:31 +0000 (11:53 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 22 Aug 2015 10:22:24 +0000 (11:22 +0100)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/winsys/amdgpu/drm/Android.mk

index 7d507aa79c6a7cbbb02ca9e597b38a44b8d2b8ed..57732347eead2ee4922621b57e04f44d57d0a846 100644 (file)
@@ -30,6 +30,16 @@ include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := $(C_SOURCES)
 
+LOCAL_CFLAGS := \
+       $(AMDGPU_CFLAGS) \
+       -DBRAHMA_BUILD=1
+
+LOCAL_C_INCLUDES := \
+       $(LOCAL_PATH)/addrlib \
+       $(LOCAL_PATH)/addrlib/core \
+       $(LOCAL_PATH)/addrlib/inc/chip/r800 \
+       $(LOCAL_PATH)/addrlib/r800/chip
+
 LOCAL_SHARED_LIBRARIES := libdrm libdrm_amdgpu
 LOCAL_MODULE := libmesa_winsys_amdgpu