• 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
19config("libring_buffer_headers") {
20  visibility = [ ":*" ]
21  include_dirs = [
22    "${updater_path}/service/common",
23    "${updater_path}/service/common/ring_buffer",
24  ]
25}
26
27ohos_shared_library("libupdater_shared") {
28  sources = [ "updaterkits.cpp" ]
29
30  include_dirs = [
31    "../include",
32    "${updater_path}/services/include/log",
33    "${updater_path}/utils/include",
34  ]
35
36  deps = [
37    "${updater_path}/interfaces/kits/misc_info:libmiscinfo",
38    "${updater_path}/services/log:libupdaterlog",
39    "${updater_path}/utils:libutils_common",
40    "${updater_path}/utils:libutils_fs",
41  ]
42
43  external_deps = [
44    "bounds_checking_function:libsec_shared",
45    "hilog:libhilog",
46    "init:libbegetutil_static",
47    "lz4:liblz4_static",
48    "openssl:libcrypto_shared",
49    "openssl:libssl_static",
50    "zlib:shared_libz",
51  ]
52
53  innerapi_tags = [
54    "platformsdk",
55    "sasdk",
56  ]
57  public_configs = [ ":libring_buffer_headers" ]
58  install_enable = true
59  install_images = [
60    "system",
61    "updater",
62  ]
63  subsystem_name = "updater"
64  part_name = "updater"
65}
66
67ohos_static_library("libupdaterkits") {
68  sources = [ "updaterkits.cpp" ]
69
70  include_dirs = [
71    "../include",
72    "${updater_path}/services/include/log",
73    "${updater_path}/utils/include",
74  ]
75
76  deps = [
77    "${updater_path}/services/log:libupdaterlog",
78    "${updater_path}/utils:libutils",
79    "../misc_info:libmiscinfo",
80  ]
81
82  external_deps = [
83    "bounds_checking_function:libsec_static",
84    "init:libbegetutil_static",
85  ]
86  public_configs = [ ":libring_buffer_headers" ]
87  subsystem_name = "updater"
88  part_name = "updater"
89}
90