1#!/bin/bash 2# ************************************************************************ 3# Copyright (c) 2021 Huawei Device Co., Ltd. 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# ************************************************************************ 16set -e 17 18script_path=$(cd $(dirname $0);pwd) 19cd ${script_path} 20cd ../../../../../../out/ohos-arm-release/packages/phone/system/lib; 21libcamera_client=$(stat -c %s "libcamera_client.z.so") 22echo "libcamera_client.z.so(B): "$libcamera_client 23 24camera_buffer_manager=$(stat -c %s "libcamera_buffer_manager.z.so") 25echo "libcamera_buffer_manager.z.so(B): "$camera_buffer_manager 26 27camera_device_manager=$(stat -c %s "libcamera_device_manager.z.so") 28echo "libcamera_device_manager.z.so(B): "$camera_device_manager 29 30camera_host_service_1.0=$(stat -c %s "libcamera_host_service_1.0.z.so") 31echo "libcamera_host_service_1.0.z.so(B): "$camera_host_service_1.0 32 33camera_pipeline_core=$(stat -c %s "libcamera_pipeline_core.z.so") 34echo "libcamera_pipeline_core.z.so(B): "$camera_pipeline_core 35 36camera_utils=$(stat -c %s "libcamera_utils.z.so") 37echo "libcamera_utils.z.so(B): "$camera_utils 38 39total=$[libcamera_client+camera_buffer_manager+camera_device_manager+camera_host_service_1.0+camera_pipeline_core+camera_utils] 40 41echo "so package total(KB):"$(expr $total / 1024) 42