1# Copyright (c) 2023 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}", ".") 18ohos_static_library("libBinFlowUpdate") { 19 sources = [ 20 "bin_flow_update.cpp", 21 "bin_process.cpp", 22 "component_processor.cpp", 23 ] 24 25 include_dirs = [ 26 "${updater_path}/interfaces/kits/include", 27 "${updater_path}/services", 28 "${updater_path}/services/common", 29 "${updater_path}/services/include", 30 "${updater_path}/services/include/applypatch", 31 "${updater_path}/services/include/log", 32 "${updater_path}/services/include/package", 33 "${updater_path}/services/include/script", 34 "${updater_path}/services/package", 35 "${updater_path}/services/package/pkg_algorithm", 36 "${updater_path}/services/package/pkg_manager", 37 "${updater_path}/services/package/pkg_package", 38 "${updater_path}/services/script", 39 "${updater_path}/utils/include", 40 ] 41 deps = [ 42 "${updater_path}/interfaces/kits/packages:libpackageExt", 43 "${updater_path}/services/applypatch:libapplypatch", 44 "${updater_path}/services/fs_manager:libfsmanager", 45 "${updater_path}/services/log:libupdaterlog", 46 "${updater_path}/services/package:libupdaterpackage", 47 "${updater_path}/utils:libutils", 48 ] 49 external_deps = [ 50 "bounds_checking_function:libsec_static", 51 "init:libbegetutil_static", 52 "init:libfsmanager_static_real", 53 "openssl:libcrypto_static", 54 ] 55 if (defined(use_ptable)) { 56 deps += [ "${updater_path}/services/ptable_parse:libptableparse" ] 57 external_deps += [ "cJSON:cjson_static" ] 58 defines = [ "UPDATER_USE_PTABLE" ] 59 } 60 subsystem_name = "updater" 61 part_name = "updater" 62} 63