extensions/vp9: Control symbol visibility with libvpx.ver

This change reduces the final .so size by ~9% for armv7/arm64.

Arch : Size_before : Size_after
armeabi-v7a : 300548 : 271876
arm64-v8a : 247632 : 223056

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=150648668
This commit is contained in:
vigneshv 2017-03-20 11:08:53 -07:00 committed by Oliver Woodman
parent 25a093b37c
commit c8b9c7fe68
2 changed files with 2 additions and 1 deletions

View file

@ -68,7 +68,7 @@ limit=$((${#arch[@]} - 1))
# everything else will be removed.
allowed_files="libvpx_srcs.txt vpx_config.c vpx_config.h vpx_scale_rtcd.h"
allowed_files+=" vp8_rtcd.h vp9_rtcd.h vpx_version.h vpx_config.asm"
allowed_files+=" vpx_dsp_rtcd.h"
allowed_files+=" vpx_dsp_rtcd.h libvpx.ver"
remove_trailing_whitespace() {
perl -pi -e 's/\s\+$//' "$@"

View file

@ -54,4 +54,5 @@ LOCAL_SRC_FILES := $(sort $(LOCAL_SRC_FILES))
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/libvpx \
$(LOCAL_PATH)/libvpx/vpx
LOCAL_LDFLAGS := -Wl,--version-script=$(CONFIG_DIR)/libvpx.ver
include $(BUILD_SHARED_LIBRARY)