diff options
author | Colin Cross <ccross@android.com> | 2014-02-12 17:15:53 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-02-14 17:29:22 -0800 |
commit | ff75a8000c5b70b9dd895f9f7a8fb7412c2aa423 (patch) | |
tree | b8405b0639f4e29af957e616a51d99ec6e59c50c /opengl/libagl | |
parent | 7d86b45472898373bbe3ef03286b66d71ea82b79 (diff) | |
download | frameworks_native-ff75a8000c5b70b9dd895f9f7a8fb7412c2aa423.zip frameworks_native-ff75a8000c5b70b9dd895f9f7a8fb7412c2aa423.tar.gz frameworks_native-ff75a8000c5b70b9dd895f9f7a8fb7412c2aa423.tar.bz2 |
libagl: support multilib build
Use LOCAL_SRC_FILES_arch and LOCAL_CFLAGS_arch to support building
for multiple architectures.
Change-Id: I829c1bea880739bf8184df4006d0a481ffccc5c2
Diffstat (limited to 'opengl/libagl')
-rw-r--r-- | opengl/libagl/Android.mk | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/opengl/libagl/Android.mk b/opengl/libagl/Android.mk index 95a8ef2..32bc5d9 100644 --- a/opengl/libagl/Android.mk +++ b/opengl/libagl/Android.mk @@ -29,17 +29,13 @@ LOCAL_CFLAGS += -fvisibility=hidden LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils liblog libpixelflinger libETC1 libui LOCAL_LDLIBS := -lpthread -ldl -ifeq ($(TARGET_ARCH),arm) - LOCAL_SRC_FILES += fixed_asm.S iterators.S - LOCAL_CFLAGS += -fstrict-aliasing -endif - -ifeq ($(TARGET_ARCH),mips) - LOCAL_SRC_FILES += arch-$(TARGET_ARCH)/fixed_asm.S - LOCAL_CFLAGS += -fstrict-aliasing - # The graphics code can generate division by zero - LOCAL_CFLAGS += -mno-check-zero-division -endif +LOCAL_SRC_FILES_arm += fixed_asm.S iterators.S +LOCAL_CFLAGS_arm += -fstrict-aliasing + +LOCAL_SRC_FILES_mips += arch-mips/fixed_asm.S +LOCAL_CFLAGS_mips += -fstrict-aliasing +# The graphics code can generate division by zero +LOCAL_CFLAGS_mips += -mno-check-zero-division # we need to access the private Bionic header <bionic_tls.h> LOCAL_C_INCLUDES += bionic/libc/private |