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 external_deps = [ 26 "c_utils:utils", 27 "drivers_interface_partitionslot:partitionslot_idl_headers", 28 "hiviewdfx_hilog_native:libhilog", 29 "init:libbegetutil", 30 ] 31 32 install_images = [ chipset_base_dir ] 33 subsystem_name = "hdf" 34 part_name = "drivers_peripheral_partitionslot" 35} 36 37ohos_shared_library("libpartitionslot_driver") { 38 include_dirs = [ 39 "include", 40 "//drivers/hdf_core/adapter/uhdf2/include/host", 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_ipc_adapter", 49 "hdf_core:libhdi", 50 "hiviewdfx_hilog_native:libhilog", 51 "ipc:ipc_single", 52 ] 53 54 install_images = [ chipset_base_dir ] 55 subsystem_name = "hdf" 56 part_name = "drivers_peripheral_partitionslot" 57} 58 59group("hdf_partitionslot_service") { 60 deps = [ 61 ":libpartition_slot_service_1.0", 62 ":libpartitionslot_driver", 63 ] 64} 65