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