1094332d3Sopenharmony_ci#!/bin/bash 2094332d3Sopenharmony_ci# ************************************************************************ 3094332d3Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 4094332d3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 5094332d3Sopenharmony_ci# you may not use this file except in compliance with the License. 6094332d3Sopenharmony_ci# You may obtain a copy of the License at 7094332d3Sopenharmony_ci# 8094332d3Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 9094332d3Sopenharmony_ci# 10094332d3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 11094332d3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 12094332d3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13094332d3Sopenharmony_ci# See the License for the specific language governing permissions and 14094332d3Sopenharmony_ci# limitations under the License. 15094332d3Sopenharmony_ci# ************************************************************************ 16094332d3Sopenharmony_ciset -e 17094332d3Sopenharmony_ci 18094332d3Sopenharmony_ciscript_path=$(cd $(dirname $0);pwd) 19094332d3Sopenharmony_cicd ${script_path} 20094332d3Sopenharmony_cicd ../../../../../../out/ohos-arm-release/packages/phone/system/lib; 21094332d3Sopenharmony_cilibcamera_client=$(stat -c %s "libcamera_client.z.so") 22094332d3Sopenharmony_ciecho "libcamera_client.z.so(B): "$libcamera_client 23094332d3Sopenharmony_ci 24094332d3Sopenharmony_cicamera_buffer_manager=$(stat -c %s "libcamera_buffer_manager.z.so") 25094332d3Sopenharmony_ciecho "libcamera_buffer_manager.z.so(B): "$camera_buffer_manager 26094332d3Sopenharmony_ci 27094332d3Sopenharmony_cicamera_device_manager=$(stat -c %s "libcamera_device_manager.z.so") 28094332d3Sopenharmony_ciecho "libcamera_device_manager.z.so(B): "$camera_device_manager 29094332d3Sopenharmony_ci 30094332d3Sopenharmony_cicamera_host_service_1.0=$(stat -c %s "libcamera_host_service_1.0.z.so") 31094332d3Sopenharmony_ciecho "libcamera_host_service_1.0.z.so(B): "$camera_host_service_1.0 32094332d3Sopenharmony_ci 33094332d3Sopenharmony_cicamera_pipeline_core=$(stat -c %s "libcamera_pipeline_core.z.so") 34094332d3Sopenharmony_ciecho "libcamera_pipeline_core.z.so(B): "$camera_pipeline_core 35094332d3Sopenharmony_ci 36094332d3Sopenharmony_cicamera_utils=$(stat -c %s "libcamera_utils.z.so") 37094332d3Sopenharmony_ciecho "libcamera_utils.z.so(B): "$camera_utils 38094332d3Sopenharmony_ci 39094332d3Sopenharmony_citotal=$[libcamera_client+camera_buffer_manager+camera_device_manager+camera_host_service_1.0+camera_pipeline_core+camera_utils] 40094332d3Sopenharmony_ci 41094332d3Sopenharmony_ciecho "so package total(KB):"$(expr $total / 1024) 42