Add libpanfrost_shared to Android build
authorRoman Stratiienko <roman.stratiienko@globallogic.com>
Tue, 6 Aug 2019 07:14:50 +0000 (10:14 +0300)
committerRoman Stratiienko <roman.stratiienko@globallogic.com>
Thu, 8 Aug 2019 17:47:22 +0000 (17:47 +0000)
1. Add missing directory to ./Android.mk
2. Fix ./src/panfrost/Android.shared.mk

Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com>
Reviewed-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Qiang Yu <yuq825@gmail.com>
Android.mk
src/panfrost/Android.shared.mk

index 8d274e5683689d50e51ae277b9dd24315c6cdea3..76d26f9bd83043dfad624fd4887dac118fefaf59 100644 (file)
@@ -115,7 +115,8 @@ SUBDIRS := \
        src/broadcom \
        src/intel \
        src/mesa/drivers/dri \
-       src/vulkan
+       src/vulkan \
+       src/panfrost \
 
 INC_DIRS := $(call all-named-subdir-makefiles,$(SUBDIRS))
 INC_DIRS += $(call all-named-subdir-makefiles,src/gallium)
index e1dd3babfe6682c0863b6b82ebc7054369978faa..6b921756ecb874386300d20962b636d65db8ac60 100644 (file)
 include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := \
-       $(shared_SOURCES)
+       $(shared_FILES)
 
 LOCAL_C_INCLUDES := \
+       $(MESA_TOP)/src/gallium/auxiliary/ \
+       $(MESA_TOP)/src/gallium/include/ \
 
 LOCAL_STATIC_LIBRARIES := \
 
@@ -39,5 +41,8 @@ LOCAL_MODULE := libpanfrost_shared
 
 LOCAL_GENERATED_SOURCES := \
 
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+       $(MESA_TOP)/src/panfrost/shared/ \
+
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)