#
LOCAL_PATH := $(call my-dir)
+
+# Import variables i965_FILES.
+include $(LOCAL_PATH)/Makefile.sources
+
+I965_PERGEN_COMMON_INCLUDES := \
+ $(MESA_DRI_C_INCLUDES) \
+ $(MESA_TOP)/src/intel
+
+I965_PERGEN_SHARED_LIBRARIES := \
+ $(MESA_DRI_SHARED_LIBRARIES) \
+ libdrm_intel
+
+I965_PERGEN_STATIC_LIBRARIES := \
+ libmesa_genxml \
+ libmesa_nir
+
+I965_PERGEN_LIBS := \
+ libmesa_i965_gen6
+
+# ---------------------------------------
+# Build libmesa_i965_gen6
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_i965_gen6
+
+LOCAL_C_INCLUDES := $(I965_PERGEN_COMMON_INCLUDES)
+
+LOCAL_SRC_FILES := $(i965_gen6_FILES)
+
+LOCAL_SHARED_LIBRARIES := $(I965_PERGEN_SHARED_LIBRARIES)
+
+LOCAL_STATIC_LIBRARIES := $(I965_PERGEN_STATIC_LIBRARIES)
+
+LOCAL_CFLAGS := -DGEN_VERSIONx10=60
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+# ---------------------------------------
+# Build i965_dri
+# ---------------------------------------
+
include $(CLEAR_VARS)
LOCAL_MODULE := i965_dri
LOCAL_UNSTRIPPED_PATH := $(MESA_DRI_MODULE_UNSTRIPPED_PATH)
endif
-# Import variables i965_FILES.
-include $(LOCAL_PATH)/Makefile.sources
-
LOCAL_CFLAGS := \
$(MESA_DRI_CFLAGS)
LOCAL_WHOLE_STATIC_LIBRARIES := \
$(MESA_DRI_WHOLE_STATIC_LIBRARIES) \
+ $(I965_PERGEN_LIBS) \
libmesa_isl
LOCAL_SHARED_LIBRARIES := \