• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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
17updater_path = rebase_path("${updater_absolutely_path}", ".")
18
19config("libstreamupdate_exported_headers") {
20  visibility = [ ":*" ]
21  include_dirs = [
22    "${updater_path}/services/stream_update",
23    "${updater_path}/services",
24    "${updater_path}/services/common",
25    "${updater_path}/services/include",
26    "${updater_path}/services/include/applypatch",
27    "${updater_path}/services/include/log",
28    "${updater_path}/services/include/package",
29    "${updater_path}/services/include/script",
30    "${updater_path}/services/package",
31    "${updater_path}/services/package/pkg_algorithm",
32    "${updater_path}/services/package/pkg_manager",
33    "${updater_path}/services/package/pkg_package",
34    "${updater_path}/services/script",
35  ]
36}
37
38ohos_static_library("libbinchunkupdate") {
39  sources = [ "bin_chunk_update.cpp" ]
40
41  include_dirs = [
42    "${updater_path}/interfaces/kits/include",
43    "${updater_path}/utils/include",
44  ]
45  deps = [
46    "${updater_path}/interfaces/kits/packages:libpackageExt",
47    "${updater_path}/services/applypatch:libapplypatch",
48    "${updater_path}/services/fs_manager:libfsmanager",
49    "${updater_path}/services/log:libupdaterlog",
50    "${updater_path}/services/package:libupdaterpackage",
51    "${updater_path}/utils:libutils",
52  ]
53  external_deps = [
54    "bounds_checking_function:libsec_static",
55    "init:libbegetutil_static",
56    "init:libfsmanager_static_real",
57    "openssl:libcrypto_static",
58  ]
59
60  public_configs = [ ":libstreamupdate_exported_headers" ]
61
62  subsystem_name = "updater"
63  part_name = "updater"
64}
65