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