188edb362Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 288edb362Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 388edb362Sopenharmony_ci# you may not use this file except in compliance with the License. 488edb362Sopenharmony_ci# You may obtain a copy of the License at 588edb362Sopenharmony_ci# 688edb362Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 788edb362Sopenharmony_ci# 888edb362Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 988edb362Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1088edb362Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1188edb362Sopenharmony_ci# See the License for the specific language governing permissions and 1288edb362Sopenharmony_ci# limitations under the License. 1388edb362Sopenharmony_ci 1488edb362Sopenharmony_ciimport("//base/update/sys_installer/sys_installer_default_cfg.gni") 1588edb362Sopenharmony_ciimport("//build/ohos.gni") 1688edb362Sopenharmony_ci 1788edb362Sopenharmony_cisys_installer_path = rebase_path("${sys_installer_absolutely_path}", ".") 1888edb362Sopenharmony_ci 1988edb362Sopenharmony_ciconfig("libinstallermanager_exported_headers") { 2088edb362Sopenharmony_ci visibility = [ ":*" ] 2188edb362Sopenharmony_ci include_dirs = [ 2288edb362Sopenharmony_ci "${sys_installer_path}/frameworks/actions/include", 2388edb362Sopenharmony_ci "${sys_installer_path}/frameworks/actions/verify_action/include", 2488edb362Sopenharmony_ci "${sys_installer_path}/frameworks/action_processer/include", 2588edb362Sopenharmony_ci "${sys_installer_path}/frameworks/installer_manager/include", 2688edb362Sopenharmony_ci "${sys_installer_path}/frameworks/status_manager/include", 2788edb362Sopenharmony_ci "${sys_installer_path}/services/ab_update/include", 2888edb362Sopenharmony_ci ] 2988edb362Sopenharmony_ci} 3088edb362Sopenharmony_ciohos_static_library("libinstallermanager") { 3188edb362Sopenharmony_ci sources = [ 3288edb362Sopenharmony_ci "${sys_installer_path}/frameworks/installer_manager/src/installer_manager.cpp", 3388edb362Sopenharmony_ci "${sys_installer_path}/frameworks/installer_manager/src/installer_manager_helper.cpp", 3488edb362Sopenharmony_ci ] 3588edb362Sopenharmony_ci 3688edb362Sopenharmony_ci include_dirs = [ 3788edb362Sopenharmony_ci "${sys_installer_path}/common/include", 3888edb362Sopenharmony_ci "${sys_installer_path}/interfaces/innerkits", 3988edb362Sopenharmony_ci "${sys_installer_path}/interfaces/inner_api/include", 4088edb362Sopenharmony_ci "${sys_installer_path}/frameworks/actions/include", 4188edb362Sopenharmony_ci "${sys_installer_path}/frameworks/actions/verify_action/include", 4288edb362Sopenharmony_ci "${sys_installer_path}/frameworks/action_processer/include", 4388edb362Sopenharmony_ci "${sys_installer_path}/frameworks/installer_manager/include", 4488edb362Sopenharmony_ci "${sys_installer_path}/frameworks/status_manager/include", 4588edb362Sopenharmony_ci "${sys_installer_path}/services/ab_update/include", 4688edb362Sopenharmony_ci ] 4788edb362Sopenharmony_ci 4888edb362Sopenharmony_ci deps = [ 4988edb362Sopenharmony_ci "${sys_installer_path}/frameworks/action_processer:libactionprocesser", 5088edb362Sopenharmony_ci "${sys_installer_path}/frameworks/actions/verify_action:libverifyaction", 5188edb362Sopenharmony_ci "${sys_installer_path}/services/ab_update:libabupdate", 5288edb362Sopenharmony_ci ] 5388edb362Sopenharmony_ci public_configs = [ ":libinstallermanager_exported_headers" ] 5488edb362Sopenharmony_ci external_deps = [ 5588edb362Sopenharmony_ci "hilog:libhilog", 5688edb362Sopenharmony_ci "openssl:libcrypto_shared", 5788edb362Sopenharmony_ci "openssl:libssl_static", 5888edb362Sopenharmony_ci "updater:libpackageExt", 5988edb362Sopenharmony_ci "updater:libringbuffer", 6088edb362Sopenharmony_ci "updater:libupdater", 6188edb362Sopenharmony_ci "updater:libupdaterlog", 6288edb362Sopenharmony_ci "updater:libupdaterpackage", 6388edb362Sopenharmony_ci ] 6488edb362Sopenharmony_ci part_name = "sys_installer" 6588edb362Sopenharmony_ci subsystem_name = "updater" 6688edb362Sopenharmony_ci} 67