mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
Android.mk: update build flags
- split out release specific flags - set LOCAL_ARM_MODE to arm Change-Id: I272855216583d6c8d0a4106e8b3fde46aa59dfa9
This commit is contained in:
parent
80911aef38
commit
f910a84ea5
11
Android.mk
11
Android.mk
@ -54,11 +54,16 @@ LOCAL_SRC_FILES := \
|
||||
|
||||
LOCAL_CFLAGS := -Wall -DANDROID -DHAVE_MALLOC_H -DHAVE_PTHREAD \
|
||||
-DWEBP_USE_THREAD \
|
||||
-finline-functions -frename-registers -ffast-math \
|
||||
-s -fomit-frame-pointer -Isrc/webp
|
||||
|
||||
ifeq ($(APP_OPTIM),release)
|
||||
LOCAL_CFLAGS += -finline-functions -frename-registers -ffast-math -s
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
||||
|
||||
# prefer arm over thumb mode for performance gains
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
# Setting LOCAL_ARM_NEON will enable -mfpu=neon which may cause illegal
|
||||
# instructions to be generated for armv7a code. Instead target the neon code
|
||||
@ -69,7 +74,7 @@ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
endif
|
||||
LOCAL_STATIC_LIBRARIES := cpufeatures
|
||||
|
||||
LOCAL_MODULE:= webp
|
||||
LOCAL_MODULE := webp
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user