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("//base/update/updater/updater_default_cfg.gni") 16import("//build/ohos.gni") 17 18sys_installer_path = rebase_path("${sys_installer_absolutely_path}", ".") 19ohos_shared_library("sys_installer") { 20 defines = [ "SYS_INSTALLER_SERVICE" ] 21 22 sources = [ 23 "${sys_installer_path}/frameworks/ipc_server/src/sys_installer_callback_proxy.cpp", 24 "${sys_installer_path}/frameworks/ipc_server/src/sys_installer_server.cpp", 25 "${sys_installer_path}/frameworks/ipc_server/src/sys_installer_stub.cpp", 26 ] 27 28 include_dirs = [ 29 "${sys_installer_path}/common/include", 30 "${sys_installer_path}/frameworks/ipc_server/include", 31 "${sys_installer_path}/frameworks/installer_manager/include", 32 "${sys_installer_path}/frameworks/status_manager/include", 33 "${sys_installer_path}/interfaces/innerkits", 34 "${sys_installer_path}/interfaces/inner_api/include", 35 "//third_party/bounds_checking_function/include", 36 ] 37 38 deps = [ 39 "${sys_installer_path}/frameworks/installer_manager:libinstallermanager", 40 "${sys_installer_path}/frameworks/status_manager:libstatusmanager", 41 "//third_party/bounds_checking_function:libsec_static", 42 "//third_party/cJSON:cjson", 43 "//third_party/curl:curl", 44 "//third_party/lz4:liblz4_static", 45 ] 46 47 if (defined(sys_installer_custom_lib)) { 48 deps += sys_installer_custom_lib 49 } 50 51 external_deps = [ 52 "access_token:libaccesstoken_sdk", 53 "c_utils:utils", 54 "init:libbegetutil", 55 "ipc:ipc_core", 56 "ipc:ipc_single", 57 "safwk:system_ability_fwk", 58 "samgr:samgr_proxy", 59 "updater:libfsmanager", 60 "updater:libmiscinfo", 61 "updater:libupdaterlog", 62 "updater:libupdaterpackage", 63 "updater:libutils", 64 ] 65 66 part_name = "sys_installer" 67 subsystem_name = "updater" 68} 69