• 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("//build/ohos.gni")
15
16config("updater_config") {
17  visibility = [ ":*" ]
18  include_dirs = [
19    "//base/update/updater/interfaces/kits/include",
20    "//base/update/updater/services/include/package",
21    "//base/update/updater/services/include/script",
22    "//base/update/updater/services/include/log",
23    "//base/update/updater/services/include",
24    "//base/update/updater/utils/include",
25    "//base/update/updater/services/include/applypatch",
26    "//third_party/cJSON",
27    "//third_party/openssl/include",
28    "//third_party/bounds_checking_function/include",
29    "//drivers/hdf/frameworks/include/utils",
30  ]
31}
32
33ohos_executable("updater_binary") {
34  sources = [
35    "//base/update/updater/services/updater_binary/main.cpp",
36    "//base/update/updater/services/updater_binary/update_image_block.cpp",
37    "//base/update/updater/services/updater_binary/update_partitions.cpp",
38    "//base/update/updater/services/updater_binary/update_processor.cpp",
39  ]
40  configs = [ ":updater_config" ]
41
42  ldflags = [ "-Wl -std=c++11" ]
43
44  deps = [
45    "//base/update/updater/interfaces/kits/misc_info:libmiscinfo",
46    "//base/update/updater/services/applypatch:libapplypatch",
47    "//base/update/updater/services/diffpatch/patch:libpatch",
48    "//base/update/updater/services/fs_manager:libfsmanager",
49    "//base/update/updater/services/log:libupdaterlog",
50    "//base/update/updater/services/package:libupdaterpackage",
51    "//base/update/updater/services/script:libupdaterscript",
52    "//base/update/updater/utils:libutils",
53    "//third_party/bzip2:libbz2",
54    "//third_party/cJSON:cjson_static",
55    "//third_party/lz4:liblz4_static",
56    "//third_party/openssl:libcrypto_static",
57    "//third_party/openssl:ssl_source",
58    "//third_party/zlib:libz",
59  ]
60
61  external_deps = [ "init:libbegetutil" ]
62
63  install_enable = true
64  part_name = "updater"
65}
66