mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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:
parent
25a093b37c
commit
c8b9c7fe68
2 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue