mirror of
https://github.com/joel16/android_device_sony_kitakami-common.git
synced 2024-11-23 03:39:50 +00:00
kitakami-common: Add prebuilt protobuf from sdk28
Change-Id: I980a9e66cc0f99b5292210428c6ae9737e5b3969
This commit is contained in:
parent
b79f56d1e6
commit
956c8b6d13
@ -266,6 +266,13 @@ PRODUCT_PACKAGES += \
|
||||
libprotobuf-cpp-full-vendorcompat \
|
||||
libprotobuf-cpp-lite-vendorcompat
|
||||
|
||||
# Prebuilt Protobuf
|
||||
PRODUCT_COPY_FILES += \
|
||||
prebuilts/vndk/v28/arm64/arch-arm-armv8-a/shared/vndk-core/libprotobuf-cpp-lite.so:$(TARGET_COPY_OUT_VENDOR)/lib/libprotobuf-cpp-lite-v28.so \
|
||||
prebuilts/vndk/v28/arm64/arch-arm64-armv8-a/shared/vndk-core/libprotobuf-cpp-full.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libprotobuf-cpp-full-v28.so \
|
||||
prebuilts/vndk/v28/arm64/arch-arm-armv8-a/shared/vndk-core/libprotobuf-cpp-full.so:$(TARGET_COPY_OUT_VENDOR)/lib/libprotobuf-cpp-full-v28.so \
|
||||
prebuilts/vndk/v28/arm64/arch-arm64-armv8-a/shared/vndk-core/libprotobuf-cpp-lite.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libprotobuf-cpp-lite-v28.so
|
||||
|
||||
# Public Libraries
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
|
||||
|
@ -33,6 +33,19 @@ if [ ! -f "$HELPER" ]; then
|
||||
fi
|
||||
. "$HELPER"
|
||||
|
||||
function blob_fixup() {
|
||||
case "${1}" in
|
||||
vendor/lib/mediadrm/libwvdrmengine.so)
|
||||
patchelf --replace-needed "libprotobuf-cpp-lite.so" "libprotobuf-cpp-lite-v28.so" "${2}"
|
||||
;;
|
||||
vendor/lib64/libwvhidl.so)
|
||||
patchelf --replace-needed "libprotobuf-cpp-lite.so" "libprotobuf-cpp-lite-v28.so" "${2}"
|
||||
;;
|
||||
vendor/lib64/libsettings.so)
|
||||
patchelf --replace-needed "libprotobuf-cpp-full.so" "libprotobuf-cpp-full-v28.so" "${2}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
# Default to sanitizing the vendor folder before extraction
|
||||
CLEAN_VENDOR=true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user