1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//base/update/sys_installer/sys_installer_default_cfg.gni") 15import("//build/ohos.gni") 16 17sys_installer_path = rebase_path("${sys_installer_absolutely_path}", ".") 18 19config("libinstallermanager_exported_headers") { 20 visibility = [ ":*" ] 21 include_dirs = [ 22 "${sys_installer_path}/frameworks/actions/include", 23 "${sys_installer_path}/frameworks/actions/verify_action/include", 24 "${sys_installer_path}/frameworks/action_processer/include", 25 "${sys_installer_path}/frameworks/installer_manager/include", 26 "${sys_installer_path}/frameworks/status_manager/include", 27 "${sys_installer_path}/services/ab_update/include", 28 "${sys_installer_path}/services/stream_update/include", 29 ] 30} 31ohos_static_library("libinstallermanager") { 32 sources = [ 33 "${sys_installer_path}/frameworks/installer_manager/src/stream_installer_manager.cpp", 34 "${sys_installer_path}/frameworks/installer_manager/src/stream_installer_manager_helper.cpp", 35 "${sys_installer_path}/frameworks/installer_manager/src/sys_installer_manager.cpp", 36 "${sys_installer_path}/frameworks/installer_manager/src/sys_installer_manager_helper.cpp", 37 ] 38 39 include_dirs = [ 40 "${sys_installer_path}/common/include", 41 "${sys_installer_path}/interfaces/innerkits", 42 "${sys_installer_path}/interfaces/inner_api/include", 43 "${sys_installer_path}/frameworks/actions/include", 44 "${sys_installer_path}/frameworks/actions/verify_action/include", 45 "${sys_installer_path}/frameworks/action_processer/include", 46 "${sys_installer_path}/frameworks/installer_manager/include", 47 "${sys_installer_path}/frameworks/status_manager/include", 48 "${sys_installer_path}/services/ab_update/include", 49 "${sys_installer_path}/services/stream_update/include", 50 ] 51 52 deps = [ 53 "${sys_installer_path}/frameworks/action_processer:libactionprocesser", 54 "${sys_installer_path}/frameworks/actions/verify_action:libverifyaction", 55 "${sys_installer_path}/services/ab_update:libabupdate", 56 "${sys_installer_path}/services/stream_update:libstreamupdate", 57 ] 58 public_configs = [ ":libinstallermanager_exported_headers" ] 59 external_deps = [ 60 "bounds_checking_function:libsec_static", 61 "hilog:libhilog", 62 "openssl:libcrypto_shared", 63 "openssl:libssl_static", 64 "updater:libbinchunkupdate", 65 "updater:libpackageExt", 66 "updater:libringbuffer", 67 "updater:libupdater", 68 "updater:libupdaterlog", 69 "updater:libupdaterpackage", 70 ] 71 part_name = "sys_installer" 72 subsystem_name = "updater" 73} 74