• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//base/update/updater/updater_default_cfg.gni")
15import("//build/ohos.gni")
16
17updater_path = rebase_path("${updater_absolutely_path}", ".")
18ohos_static_library("libapplypatch") {
19  sources = [
20    "block_set.cpp",
21    "block_writer.cpp",
22    "command.cpp",
23    "command_function.cpp",
24    "command_process.cpp",
25    "data_writer.cpp",
26    "partition_record.cpp",
27    "raw_writer.cpp",
28    "store.cpp",
29    "transfer_manager.cpp",
30  ]
31
32  include_dirs = [
33    "${updater_path}/services/include",
34    "${updater_path}/services/applypatch",
35    "${updater_path}/services/common",
36    "${updater_path}/utils/include",
37    "${updater_path}/interfaces/kits/include",
38    "${updater_path}/services/include/script",
39    "//third_party/zlib",
40    "//third_party/external/lz4/lib",
41    "${updater_path}/services/include/package",
42    "${updater_path}/services/include/log",
43    "//third_party/bounds_checking_function/include",
44  ]
45
46  deps = [
47    "${updater_path}/services/diffpatch/patch:libpatch",
48    "${updater_path}/services/fs_manager:libfsmanager",
49    "//third_party/bounds_checking_function:libsec_static",
50    "//third_party/bzip2:libbz2",
51    "//third_party/openssl:libcrypto_shared",
52  ]
53  external_deps = [ "init:libbegetutil" ]
54  subsystem_name = "updater"
55  part_name = "updater"
56}
57