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 "${updater_path}/services/package/pkg_verify", 25 ] 26} 27 28ohos_shared_library("libpackage_shared") { 29 sources = [ "package.cpp" ] 30 31 include_dirs = [ 32 "${updater_path}/interfaces/kits/include", 33 "${updater_path}/services/common", 34 "${updater_path}/services/include", 35 "${updater_path}/utils/include", 36 ] 37 38 public_configs = [ ":libpackageExt_exported_headers" ] 39 40 deps = [ 41 "${updater_path}/services/log:libupdaterlog_shared", 42 "${updater_path}/services/package:libupdaterpackage_shared", 43 ] 44 45 external_deps = [ "bounds_checking_function:libsec_static" ] 46 47 innerapi_tags = [ 48 "platformsdk", 49 "sasdk", 50 ] 51 52 install_enable = true 53 install_images = [ 54 "system", 55 "updater", 56 ] 57 subsystem_name = "updater" 58 part_name = "updater" 59} 60 61ohos_static_library("libpackageExt") { 62 sources = [ "package.cpp" ] 63 64 include_dirs = [ 65 "${updater_path}/interfaces/kits/include", 66 "${updater_path}/services/common", 67 "${updater_path}/services/include", 68 "${updater_path}/utils/include", 69 ] 70 71 public_configs = [ ":libpackageExt_exported_headers" ] 72 73 deps = [ 74 "${updater_path}/services/log:libupdaterlog", 75 "${updater_path}/services/package:libupdaterpackage", 76 ] 77 78 external_deps = [ 79 "bounds_checking_function:libsec_static", 80 "lz4:liblz4_static", 81 "openssl:libcrypto_static", 82 "openssl:libssl_static", 83 "zlib:libz", 84 ] 85 subsystem_name = "updater" 86 part_name = "updater" 87} 88