android: i965: add per-gen libmesa_i965_gen{8,9} static
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 19 Aug 2016 22:04:29 +0000 (00:04 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 20 Aug 2016 23:18:31 +0000 (16:18 -0700)
Needed to fix android build after commit 16a9fcb
which enabled genxml for gen{8,9} state setup

This is the last patch needed, android build tested successfully.

src/mesa/drivers/dri/i965/Android.mk

index d4c4628f36603401813c6e9ab5c6a80f469bccfe..971c3c58e8a5895b3ac1f5190aaa996cbf58bdf7 100644 (file)
@@ -42,7 +42,9 @@ I965_PERGEN_STATIC_LIBRARIES := \
 I965_PERGEN_LIBS := \
        libmesa_i965_gen6 \
        libmesa_i965_gen7 \
-       libmesa_i965_gen75
+       libmesa_i965_gen75 \
+       libmesa_i965_gen8 \
+       libmesa_i965_gen9
 
 # ---------------------------------------
 # Build libmesa_i965_gen6
@@ -107,6 +109,48 @@ LOCAL_CFLAGS := -DGEN_VERSIONx10=75
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
 
+# ---------------------------------------
+# Build libmesa_i965_gen8
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_i965_gen8
+
+LOCAL_C_INCLUDES := $(I965_PERGEN_COMMON_INCLUDES)
+
+LOCAL_SRC_FILES := $(i965_gen8_FILES)
+
+LOCAL_SHARED_LIBRARIES := $(I965_PERGEN_SHARED_LIBRARIES)
+
+LOCAL_STATIC_LIBRARIES := $(I965_PERGEN_STATIC_LIBRARIES)
+
+LOCAL_CFLAGS := -DGEN_VERSIONx10=80
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+# ---------------------------------------
+# Build libmesa_i965_gen9
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_i965_gen9
+
+LOCAL_C_INCLUDES := $(I965_PERGEN_COMMON_INCLUDES)
+
+LOCAL_SRC_FILES := $(i965_gen9_FILES)
+
+LOCAL_SHARED_LIBRARIES := $(I965_PERGEN_SHARED_LIBRARIES)
+
+LOCAL_STATIC_LIBRARIES := $(I965_PERGEN_STATIC_LIBRARIES)
+
+LOCAL_CFLAGS := -DGEN_VERSIONx10=90
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
 # ---------------------------------------
 # Build i965_dri
 # ---------------------------------------