i965/perf: restore mdapi statistics query metrics
[mesa.git] / src / mesa / drivers / dri / Android.mk
index 1789762663a5260507e6bef2219d1081b5396db8..60c8476a38a7b6955bf7583ab338f35990077104 100644 (file)
@@ -28,9 +28,6 @@ include $(LOCAL_PATH)/common/Makefile.sources
 #-----------------------------------------------
 # Variables common to all DRI drivers
 
-MESA_DRI_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/dri
-MESA_DRI_MODULE_UNSTRIPPED_PATH := $(TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED)/dri
-
 MESA_DRI_CFLAGS := \
        -DHAVE_ANDROID_PLATFORM
 
@@ -52,22 +49,21 @@ MESA_DRI_WHOLE_STATIC_LIBRARIES := \
 MESA_DRI_SHARED_LIBRARIES := \
        libcutils \
        libdl \
-       libdrm \
-       libexpat \
        libglapi \
-       liblog
-
-#-----------------------------------------------
-# Build drivers and libmesa_dri_common
+       liblog \
+       libz
 
-SUBDIRS := common
-
-ifneq ($(filter i915, $(MESA_GPU_DRIVERS)),)
-       SUBDIRS += i915
+# If Android version >=8 MESA should static link libexpat else should dynamic link
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?), 0)
+MESA_DRI_WHOLE_STATIC_LIBRARIES += \
+       libexpat
+else
+MESA_DRI_SHARED_LIBRARIES += \
+       libexpat
 endif
 
-ifneq ($(filter i965, $(MESA_GPU_DRIVERS)),)
-       SUBDIRS += i965
-endif
+#-----------------------------------------------
+# Build drivers and libmesa_dri_common
 
+SUBDIRS := common i915 i965
 include $(foreach d, $(SUBDIRS), $(LOCAL_PATH)/$(d)/Android.mk)