• 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("libpackageExt_exported_headers") {
20  visibility = [ ":*" ]
21  include_dirs = [
22    "${updater_path}/interfaces/kits/include",
23    "${updater_path}/services/include/package",
24  ]
25}
26
27ohos_shared_library("libpackage_shared") {
28  sources = [ "package.cpp" ]
29
30  include_dirs = [
31    "${updater_path}/interfaces/kits/include",
32    "${updater_path}/services/common",
33    "${updater_path}/services/include",
34    "${updater_path}/utils/include",
35    "//third_party/bounds_checking_function/include",
36  ]
37
38  public_configs = [ ":libpackageExt_exported_headers" ]
39
40  deps = [
41    "${updater_path}/interfaces/kits/misc_info:libmiscinfo",
42    "${updater_path}/services/fs_manager:libfsmanager",
43    "${updater_path}/services/log:libupdaterlog",
44    "${updater_path}/services/package:libupdaterpackage",
45    "${updater_path}/utils:libutils",
46    "//third_party/bounds_checking_function:libsec_shared",
47    "//third_party/lz4:liblz4_static",
48    "//third_party/openssl:libcrypto_shared",
49    "//third_party/openssl:libssl_shared",
50    "//third_party/zlib:shared_libz",
51  ]
52
53  innerapi_tags = [
54    "platformsdk",
55    "sasdk",
56  ]
57
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("libpackageExt") {
68  sources = [ "package.cpp" ]
69
70  include_dirs = [
71    "${updater_path}/interfaces/kits/include",
72    "${updater_path}/services/common",
73    "${updater_path}/services/include",
74    "${updater_path}/utils/include",
75    "//third_party/bounds_checking_function/include",
76  ]
77
78  public_configs = [ ":libpackageExt_exported_headers" ]
79
80  deps = [
81    "${updater_path}/services/log:libupdaterlog",
82    "${updater_path}/services/package:libupdaterpackage",
83    "//third_party/bounds_checking_function:libsec_static",
84    "//third_party/lz4:liblz4_static",
85    "//third_party/openssl:libcrypto_shared",
86    "//third_party/openssl:libssl_shared",
87    "//third_party/zlib:libz",
88  ]
89  subsystem_name = "updater"
90  part_name = "updater"
91}
92