diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/Android.mk | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/i965/Android.mk b/src/mesa/drivers/dri/i965/Android.mk index e125eb6d394..fbad63a0824 100644 --- a/src/mesa/drivers/dri/i965/Android.mk +++ b/src/mesa/drivers/dri/i965/Android.mk @@ -71,6 +71,7 @@ include $(BUILD_STATIC_LIBRARY) # Build libmesa_intel_tiled_memcpy_sse41 # --------------------------------------- +ifeq ($(ARCH_X86_HAVE_SSE4_1),true) include $(CLEAR_VARS) LOCAL_MODULE := libmesa_intel_tiled_memcpy_sse41 @@ -79,13 +80,12 @@ LOCAL_C_INCLUDES := $(I965_PERGEN_COMMON_INCLUDES) LOCAL_SRC_FILES := $(intel_tiled_memcpy_sse41_FILES) -ifeq ($(ARCH_X86_HAVE_SSE4_1),true) LOCAL_CFLAGS += \ -DUSE_SSE41 -msse4.1 -mstackrealign -endif include $(MESA_COMMON_MK) include $(BUILD_STATIC_LIBRARY) +endif # --------------------------------------- # Build libmesa_i965_gen4 @@ -310,11 +310,6 @@ LOCAL_LDFLAGS += $(MESA_DRI_LDFLAGS) LOCAL_CFLAGS := \ $(MESA_DRI_CFLAGS) -ifeq ($(ARCH_X86_HAVE_SSE4_1),true) -LOCAL_CFLAGS += \ - -DUSE_SSE41 -endif - LOCAL_C_INCLUDES := \ $(MESA_DRI_C_INCLUDES) \ $(MESA_TOP)/include/drm-uapi @@ -326,13 +321,19 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \ $(MESA_DRI_WHOLE_STATIC_LIBRARIES) \ $(I965_PERGEN_LIBS) \ libmesa_intel_tiled_memcpy \ - libmesa_intel_tiled_memcpy_sse41 \ libmesa_intel_dev \ libmesa_intel_common \ libmesa_isl \ libmesa_blorp \ libmesa_intel_compiler +ifeq ($(ARCH_X86_HAVE_SSE4_1),true) +LOCAL_CFLAGS += \ + -DUSE_SSE41 +LOCAL_WHOLE_STATIC_LIBRARIES += \ + libmesa_intel_tiled_memcpy_sse41 +endif + LOCAL_SHARED_LIBRARIES := \ $(MESA_DRI_SHARED_LIBRARIES) |