• 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}", ".")
18sys_installer_gen("sys_installer") {
19  defines = [ "SYS_INSTALLER_SERVICE" ]
20
21  sources = [
22    "${sys_installer_path}/frameworks/ipc_server/src/sys_installer_server.cpp",
23  ]
24
25  include_dirs = [
26    "${sys_installer_path}/common/include",
27    "${sys_installer_path}/frameworks/ipc_server/include",
28    "${sys_installer_path}/frameworks/installer_manager/include",
29    "${sys_installer_path}/frameworks/status_manager/include",
30    "${sys_installer_path}/interfaces/innerkits",
31    "${sys_installer_path}/interfaces/inner_api/include",
32  ]
33
34  public_configs = [
35    "${sys_installer_path}/interfaces/innerkits/ipc_client:idl_file_headers",
36  ]
37
38  deps = [
39    "${sys_installer_path}/frameworks/installer_manager:libinstallermanager",
40    "${sys_installer_path}/frameworks/status_manager:libstatusmanager",
41    "${sys_installer_path}/interfaces/innerkits/ipc_client:sys_installer_stub",
42    "${sys_installer_path}/interfaces/innerkits/ipc_client:libsysinstaller_shared",
43  ]
44
45  external_deps = [
46    "access_token:libaccesstoken_sdk",
47    "bounds_checking_function:libsec_static",
48    "cJSON:cjson",
49    "c_utils:utils",
50    "hilog:libhilog",
51    "init:libbegetutil",
52    "ipc:ipc_core",
53    "ipc:ipc_single",
54    "lz4:liblz4_static",
55    "safwk:system_ability_fwk",
56    "samgr:samgr_proxy",
57    "updater:libfsmanager",
58    "updater:libmiscinfo",
59    "updater:libupdaterlog",
60    "updater:libupdaterpackage",
61    "updater:libutils",
62  ]
63  if (ohos_indep_compiler_enable) {
64    external_deps += [
65      "init:libfsmanager_static",
66      "drivers_peripheral_partitionslot:libpartition_slot_manager",
67      "updater:libslotinfo",
68      "updater:libapplypatch",
69      "updater:libpatch",
70      "updater:libwritestate",
71      "openssl:libcrypto_static",
72      "updater:libupdaterpackage_shared",
73      "selinux_adapter:librestorecon",
74      "bzip2:libbz2",
75      "zlib:libz",
76    ]
77  }
78  if (!is_linux && !is_mingw && !is_mac && ohos_indep_compiler_enable) {
79    external_deps += [ "hilog:libhilog_base" ]
80  }
81  if (defined(sys_installer_custom_external_deps)) {
82    external_deps += sys_installer_custom_external_deps
83  }
84
85  part_name = "sys_installer"
86  subsystem_name = "updater"
87}
88