libagl: support multilib build

Use LOCAL_SRC_FILES_arch and LOCAL_CFLAGS_arch to support building
for multiple architectures.

Change-Id: I829c1bea880739bf8184df4006d0a481ffccc5c2
This commit is contained in:
Colin Cross 2014-02-12 17:15:53 -08:00
parent 7d86b45472
commit ff75a8000c

View File

@ -29,17 +29,13 @@ LOCAL_CFLAGS += -fvisibility=hidden
LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils liblog libpixelflinger libETC1 libui LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils liblog libpixelflinger libETC1 libui
LOCAL_LDLIBS := -lpthread -ldl LOCAL_LDLIBS := -lpthread -ldl
ifeq ($(TARGET_ARCH),arm) LOCAL_SRC_FILES_arm += fixed_asm.S iterators.S
LOCAL_SRC_FILES += fixed_asm.S iterators.S LOCAL_CFLAGS_arm += -fstrict-aliasing
LOCAL_CFLAGS += -fstrict-aliasing
endif
ifeq ($(TARGET_ARCH),mips) LOCAL_SRC_FILES_mips += arch-mips/fixed_asm.S
LOCAL_SRC_FILES += arch-$(TARGET_ARCH)/fixed_asm.S LOCAL_CFLAGS_mips += -fstrict-aliasing
LOCAL_CFLAGS += -fstrict-aliasing # The graphics code can generate division by zero
# The graphics code can generate division by zero LOCAL_CFLAGS_mips += -mno-check-zero-division
LOCAL_CFLAGS += -mno-check-zero-division
endif
# we need to access the private Bionic header <bionic_tls.h> # we need to access the private Bionic header <bionic_tls.h>
LOCAL_C_INCLUDES += bionic/libc/private LOCAL_C_INCLUDES += bionic/libc/private