• 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    "update_progress.cpp",
31  ]
32
33  include_dirs = [
34    "${updater_path}/services/include",
35    "${updater_path}/services/applypatch",
36    "${updater_path}/services/common",
37    "${updater_path}/services/script/script_manager",
38    "${updater_path}/services/script/threadpool",
39    "${updater_path}/utils/include",
40    "${updater_path}/interfaces/kits/include",
41    "${updater_path}/services/include/script",
42    "//third_party/zlib",
43    "//third_party/external/lz4/lib",
44    "${updater_path}/services/include/package",
45    "${updater_path}/services/include/log",
46    "//third_party/bounds_checking_function/include",
47  ]
48
49  deps = [
50    "${updater_path}/services/diffpatch/patch:libpatch",
51    "${updater_path}/services/fs_manager:libfsmanager",
52    "${updater_path}/services/script:libthreadpool",
53    "//third_party/bounds_checking_function:libsec_static",
54    "//third_party/bzip2:libbz2",
55    "//third_party/openssl:libcrypto_static",
56  ]
57  external_deps = [ "init:libbegetutil" ]
58  subsystem_name = "updater"
59  part_name = "updater"
60}
61