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("//build/ohos.gni") 15import("../../../../drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16 17ohos_shared_library("libpartition_slot_service_1.0") { 18 include_dirs = [ 19 "include", 20 "../../../../base/user_iam/user_auth/common/logs", 21 ] 22 sources = [ "src/partitionslot_impl.cpp" ] 23 public_deps = [ 24 "../../../../drivers/peripheral/partitionslot/hal:partitionslot_source", 25 ] 26 external_deps = [ 27 "c_utils:utils", 28 "drivers_interface_partitionslot:partitionslot_idl_headers", 29 "hilog:libhilog", 30 "init:libbegetutil", 31 ] 32 33 install_images = [ chipset_base_dir ] 34 subsystem_name = "hdf" 35 part_name = "drivers_peripheral_partitionslot" 36} 37 38ohos_shared_library("libpartitionslot_driver") { 39 include_dirs = [ 40 "include", 41 "../../../../base/user_iam/user_auth/common/logs", 42 ] 43 sources = [ "src/partition_slot_driver.cpp" ] 44 deps = [ "../../../../drivers/interface/partitionslot/v1_0:libpartitionslot_stub_1.0" ] 45 46 external_deps = [ 47 "c_utils:utils", 48 "hdf_core:libhdf_host", 49 "hdf_core:libhdf_ipc_adapter", 50 "hdf_core:libhdf_utils", 51 "hdf_core:libhdi", 52 "hilog:libhilog", 53 "ipc:ipc_single", 54 ] 55 56 shlib_type = "hdi" 57 install_images = [ chipset_base_dir ] 58 subsystem_name = "hdf" 59 part_name = "drivers_peripheral_partitionslot" 60} 61 62group("hdf_partitionslot_service") { 63 deps = [ 64 ":libpartition_slot_service_1.0", 65 ":libpartitionslot_driver", 66 ] 67} 68