• 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}", ".")
18
19ohos_shared_library("libupdater_shared") {
20  sources = [ "updaterkits.cpp" ]
21
22  include_dirs = [
23    "../include",
24    "${updater_path}/services/include/log",
25    "${updater_path}/utils/include",
26    "//third_party/bounds_checking_function/include",
27  ]
28
29  deps = [
30    "${updater_path}/interfaces/kits/misc_info:libmiscinfo",
31    "${updater_path}/services/log:libupdaterlog",
32    "${updater_path}/services/package:libupdaterpackage",
33    "${updater_path}/utils:libutils",
34    "//third_party/bounds_checking_function:libsec_shared",
35    "//third_party/lz4:liblz4_static",
36    "//third_party/openssl:libcrypto_shared",
37    "//third_party/openssl:libssl_shared",
38    "//third_party/zlib:shared_libz",
39  ]
40
41  external_deps = [ "init:libbegetutil" ]
42
43  innerapi_tags = [
44    "platformsdk",
45    "sasdk",
46  ]
47
48  install_enable = true
49  install_images = [
50    "system",
51    "updater",
52  ]
53  subsystem_name = "updater"
54  part_name = "updater"
55}
56
57ohos_static_library("libupdaterkits") {
58  sources = [ "updaterkits.cpp" ]
59
60  include_dirs = [
61    "../include",
62    "${updater_path}/services/include/log",
63    "${updater_path}/utils/include",
64    "//third_party/bounds_checking_function/include",
65  ]
66
67  deps = [
68    "${updater_path}/services/log:libupdaterlog",
69    "${updater_path}/utils:libutils",
70    "../misc_info:libmiscinfo",
71    "//third_party/bounds_checking_function:libsec_static",
72  ]
73
74  external_deps = [ "init:libbegetutil" ]
75  subsystem_name = "updater"
76  part_name = "updater"
77}
78