1# Copyright (c) 2021 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("//build/ohos.gni") 15 16ohos_static_library("libsysinstallerkits") { 17 defines = [ "SYS_INSTALLER_KITS" ] 18 sources = [ 19 "//base/update/sys_installer/interfaces/innerkits/ipc_client/src/sys_installer_callback_stub.cpp", 20 "//base/update/sys_installer/interfaces/innerkits/ipc_client/src/sys_installer_kits_impl.cpp", 21 "//base/update/sys_installer/interfaces/innerkits/ipc_client/src/sys_installer_load_callback.cpp", 22 "//base/update/sys_installer/interfaces/innerkits/ipc_client/src/sys_installer_proxy.cpp", 23 ] 24 25 include_dirs = [ 26 "//base/update/sys_installer/include", 27 "//base/update/sys_installer/interfaces/innerkits", 28 "//base/update/sys_installer/interfaces/inner_api/include", 29 "//base/update/sys_installer/interfaces/innerkits/ipc_client/include", 30 "//base/update/updater/services/include", 31 "//base/update/updater/utils/include", 32 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", 33 "//foundation/distributedschedule/safwk/services/safwk/include", 34 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk", 35 "//foundation/distributedschedule/samgr/adapter/interfaces/innerkits/include", 36 "//third_party/bounds_checking_function/include", 37 "//commonlibrary/c_utils/base/include", 38 "//utils/system/safwk/native/include", 39 ] 40 41 deps = [ 42 "//base/update/updater/services/log:libupdaterlog", 43 "//base/update/updater/utils:libutils", 44 "//third_party/bounds_checking_function:libsec_static", 45 ] 46 47 external_deps = [ 48 "c_utils:utils", 49 "hiviewdfx_hilog_native:libhilog", 50 "init:libbegetutil", 51 "ipc:ipc_core", 52 "safwk:system_ability_fwk", 53 "samgr:samgr_proxy", 54 ] 55 56 part_name = "sys_installer" 57} 58 59ohos_executable("sys_installer_client") { 60 sources = [ "//base/update/sys_installer/interfaces/innerkits/ipc_client/src/sys_installer_client.cpp" ] 61 62 include_dirs = [ 63 "//base/update/sys_installer/interfaces/innerkits/ipc_client/include", 64 "//base/update/sys_installer/interfaces/inner_api/include", 65 ] 66 67 deps = [ 68 "//base/update/sys_installer/interfaces/innerkits/ipc_client:libsysinstallerkits", 69 "//third_party/bounds_checking_function:libsec_static", 70 ] 71 external_deps = [ 72 "c_utils:utils", 73 "hiviewdfx_hilog_native:libhilog", 74 "init:libbegetutil", 75 "ipc:ipc_core", 76 "safwk:system_ability_fwk", 77 "samgr:samgr_proxy", 78 ] 79 install_enable = true 80 part_name = "sys_installer" 81} 82