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