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}", ".") 19sys_installer_gen("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/lz4:liblz4_static", 44 ] 45 46 external_deps = [ 47 "access_token:libaccesstoken_sdk", 48 "c_utils:utils", 49 "init:libbegetutil", 50 "ipc:ipc_core", 51 "ipc:ipc_single", 52 "safwk:system_ability_fwk", 53 "samgr:samgr_proxy", 54 "updater:libfsmanager", 55 "updater:libmiscinfo", 56 "updater:libupdaterlog", 57 "updater:libupdaterpackage", 58 "updater:libutils", 59 ] 60 61 if (defined(sys_installer_custom_external_deps)) { 62 external_deps += sys_installer_custom_external_deps 63 } 64 65 part_name = "sys_installer" 66 subsystem_name = "updater" 67} 68