• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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}", ".")
18
19config("libinstallermanager_exported_headers") {
20  visibility = [ ":*" ]
21  include_dirs = [
22    "${sys_installer_path}/frameworks/actions/include",
23    "${sys_installer_path}/frameworks/actions/verify_action/include",
24    "${sys_installer_path}/frameworks/action_processer/include",
25    "${sys_installer_path}/frameworks/installer_manager/include",
26    "${sys_installer_path}/frameworks/status_manager/include",
27    "${sys_installer_path}/services/ab_update/include",
28    "${sys_installer_path}/services/stream_update/include",
29  ]
30}
31ohos_static_library("libinstallermanager") {
32  sources = [
33    "${sys_installer_path}/frameworks/installer_manager/src/stream_installer_manager.cpp",
34    "${sys_installer_path}/frameworks/installer_manager/src/stream_installer_manager_helper.cpp",
35    "${sys_installer_path}/frameworks/installer_manager/src/sys_installer_manager.cpp",
36    "${sys_installer_path}/frameworks/installer_manager/src/sys_installer_manager_helper.cpp",
37  ]
38
39  include_dirs = [
40    "${sys_installer_path}/common/include",
41    "${sys_installer_path}/interfaces/innerkits",
42    "${sys_installer_path}/interfaces/inner_api/include",
43    "${sys_installer_path}/frameworks/actions/include",
44    "${sys_installer_path}/frameworks/actions/verify_action/include",
45    "${sys_installer_path}/frameworks/action_processer/include",
46    "${sys_installer_path}/frameworks/installer_manager/include",
47    "${sys_installer_path}/frameworks/status_manager/include",
48    "${sys_installer_path}/services/ab_update/include",
49    "${sys_installer_path}/services/stream_update/include",
50  ]
51
52  deps = [
53    "${sys_installer_path}/frameworks/action_processer:libactionprocesser",
54    "${sys_installer_path}/frameworks/actions/verify_action:libverifyaction",
55    "${sys_installer_path}/interfaces/innerkits/ipc_client:sysinstaller_interface",
56    "${sys_installer_path}/services/ab_update:libabupdate",
57    "${sys_installer_path}/services/stream_update:libstreamupdate",
58    "${sys_installer_path}/interfaces/innerkits/ipc_client:libsysinstaller_shared",
59  ]
60
61  public_configs = [
62    ":libinstallermanager_exported_headers",
63    "${sys_installer_path}/interfaces/innerkits/ipc_client:idl_file_headers",
64  ]
65
66  external_deps = [
67    "bounds_checking_function:libsec_static",
68    "c_utils:utils",
69    "hilog:libhilog",
70    "ipc:ipc_single",
71    "openssl:libcrypto_shared",
72    "openssl:libssl_static",
73    "updater:libbinchunkupdate",
74    "updater:libpackageExt",
75    "updater:libringbuffer",
76    "updater:libupdater",
77    "updater:libupdaterlog",
78    "updater:libupdaterpackage",
79  ]
80  part_name = "sys_installer"
81  subsystem_name = "updater"
82}
83