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 17ohos_static_library("libapplypatch") { 18 sources = [ 19 "block_set.cpp", 20 "block_writer.cpp", 21 "command.cpp", 22 "command_function.cpp", 23 "command_process.cpp", 24 "data_writer.cpp", 25 "partition_record.cpp", 26 "raw_writer.cpp", 27 "store.cpp", 28 "transfer_manager.cpp", 29 ] 30 31 include_dirs = [ 32 "//base/update/updater/services/include", 33 "//base/update/updater/services/applypatch", 34 "//base/update/updater/utils/include", 35 "//base/update/updater/interfaces/kits/include", 36 "//base/update/updater/services/include/script", 37 "//third_party/openssl/include", 38 "//third_party/zlib", 39 "//third_party/external/lz4/lib", 40 "//base/update/updater/services/include/package", 41 "//base/update/updater/services/include/log", 42 "//third_party/bounds_checking_function/include", 43 ] 44 45 deps = [ 46 "//base/update/updater/services/diffpatch/patch:libpatch", 47 "//base/update/updater/services/fs_manager:libfsmanager", 48 "//third_party/bounds_checking_function:libsec_static", 49 "//third_party/bzip2:libbz2", 50 ] 51 external_deps += [ "init:libbegetutil" ] 52 subsystem_name = "updater" 53 part_name = "updater" 54} 55