Commit c8b9c7fe by vigneshv Committed by Oliver Woodman

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
parent 25a093b3
...@@ -68,7 +68,7 @@ limit=$((${#arch[@]} - 1)) ...@@ -68,7 +68,7 @@ limit=$((${#arch[@]} - 1))
# everything else will be removed. # everything else will be removed.
allowed_files="libvpx_srcs.txt vpx_config.c vpx_config.h vpx_scale_rtcd.h" 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+=" 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() { remove_trailing_whitespace() {
perl -pi -e 's/\s\+$//' "$@" perl -pi -e 's/\s\+$//' "$@"
......
...@@ -54,4 +54,5 @@ LOCAL_SRC_FILES := $(sort $(LOCAL_SRC_FILES)) ...@@ -54,4 +54,5 @@ LOCAL_SRC_FILES := $(sort $(LOCAL_SRC_FILES))
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/libvpx \ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/libvpx \
$(LOCAL_PATH)/libvpx/vpx $(LOCAL_PATH)/libvpx/vpx
LOCAL_LDFLAGS := -Wl,--version-script=$(CONFIG_DIR)/libvpx.ver
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment