1# Copyright (c) 2022 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") 16SUBSYSTEM_DIR = "//base/update/updater/services/ptable_parse" 17 18config("updater_config") { 19 visibility = [ ":*" ] 20 include_dirs = [ 21 "//base/update/updater/services/include", 22 "//base/update/updater/utils/include", 23 "//base/update/updater/utils/json", 24 "//third_party/bounds_checking_function/include", 25 "//drivers/hdf/frameworks/include/utils", 26 "//base/update/updater/interfaces/kits/include/", 27 "//base/update/updater/services/include/script", 28 "//base/update/updater/services/include/package", 29 "//base/update/updater/services/include/applypatch", 30 "//base/update/updater/services/include/log", 31 ] 32} 33 34ohos_static_library("libptableparse") { 35 sources = [ 36 "${SUBSYSTEM_DIR}/ptable.cpp", 37 "${SUBSYSTEM_DIR}/ptable_manager.cpp", 38 "${SUBSYSTEM_DIR}/ufs_ptable.cpp", 39 ] 40 configs = [ ":updater_config" ] 41 42 ldflags = [ "-Wl -std=c++11" ] 43 44 deps = [ 45 "//base/update/updater/services/log:libupdaterlog", 46 "//base/update/updater/utils:libutils", 47 "//third_party/bzip2:libbz2", 48 "//third_party/cJSON:cjson", 49 "//third_party/zlib:libz", 50 ] 51 52 part_name = "updater" 53 subsystem_name = "updater" 54} 55