diff options
author | Ying Wang <wangying@android.com> | 2016-03-25 21:41:41 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-03-25 21:41:41 +0000 |
commit | b7c209490772cb1a4c76b7f086af314e04d6bc25 (patch) | |
tree | 1994c9e72108b87e54ed4b027b6a384eecaf73b6 | |
parent | b937fcf1c310758b28d2d19bb0e10c5f881365f9 (diff) | |
parent | 3ee66b8d1a59b69545419a57d7c2721a587aef28 (diff) | |
download | jpeg-b7c209490772cb1a4c76b7f086af314e04d6bc25.tar.gz |
Merge "Use arch-specific variables"android-wear-n-preview-3android-wear-n-preview-1android-n-preview-4android-n-preview-3android-n-preview-2
-rw-r--r-- | Android.mk | 38 |
1 files changed, 16 insertions, 22 deletions
@@ -28,36 +28,30 @@ LOCAL_CFLAGS += -Wno-unused-parameter # enable tile based decode LOCAL_CFLAGS += -DANDROID_TILE_BASED_DECODE -ifeq ($(TARGET_ARCH),x86) - LOCAL_CFLAGS += -DANDROID_INTELSSE2_IDCT - LOCAL_SRC_FILES += jidctintelsse.c -endif +LOCAL_CFLAGS_x86 += -DANDROID_INTELSSE2_IDCT +LOCAL_SRC_FILES_x86 += jidctintelsse.c LOCAL_SRC_FILES_arm64 += \ jsimd_arm64_neon.S \ jsimd_neon.c -ifeq ($(strip $(TARGET_ARCH)),arm) - ifeq ($(ARCH_ARM_HAVE_NEON),true) - #use NEON accelerations - LOCAL_CFLAGS += -DNV_ARM_NEON -D__ARM_HAVE_NEON - LOCAL_SRC_FILES += \ - jsimd_arm_neon.S \ - jsimd_neon.c - else - # enable armv6 idct assembly - LOCAL_CFLAGS += -DANDROID_ARMV6_IDCT - endif +ifeq ($(ARCH_ARM_HAVE_NEON),true) + #use NEON accelerations + LOCAL_CFLAGS_arm += -DNV_ARM_NEON -D__ARM_HAVE_NEON + LOCAL_SRC_FILES_arm += \ + jsimd_arm_neon.S \ + jsimd_neon.c +else + # enable armv6 idct assembly + LOCAL_CFLAGS_arm += -DANDROID_ARMV6_IDCT endif # use mips assembler IDCT implementation if MIPS DSP-ASE is present -ifeq ($(strip $(TARGET_ARCH)),mips) - ifeq ($(strip $(ARCH_MIPS_HAS_DSP)),true) - LOCAL_CFLAGS += -DANDROID_MIPS_IDCT - LOCAL_SRC_FILES += \ - mips_jidctfst.c \ - mips_idct_le.S - endif +ifeq ($(strip $(ARCH_MIPS_HAS_DSP)),true) +LOCAL_CFLAGS_mips += -DANDROID_MIPS_IDCT +LOCAL_SRC_FILES_mips += \ + mips_jidctfst.c \ + mips_idct_le.S endif LOCAL_MODULE := libjpeg_static |