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("libmemory_tracker_interface_service_1.0") { 18 visibility = [ ":*" ] 19 include_dirs = [ "include" ] 20 sources = [ "src/memorytracker_interface_impl.cpp" ] 21 external_deps = [ 22 "c_utils:utils", 23 "drivers_interface_memorytracker:memorytracker_idl_headers", 24 "hilog:libhilog", 25 "ipc:ipc_single", 26 ] 27 28 install_images = [ chipset_base_dir ] 29 subsystem_name = "hdf" 30 part_name = "drivers_peripheral_memorytracker" 31} 32 33ohos_shared_library("libmemorytracker_driver") { 34 include_dirs = [ "include" ] 35 sources = [ "src/memorytracker_interface_driver.cpp" ] 36 37 external_deps = [ 38 "c_utils:utils", 39 "drivers_interface_memorytracker:libmemorytracker_stub_1.0", 40 "hdf_core:libhdf_host", 41 "hdf_core:libhdf_ipc_adapter", 42 "hdf_core:libhdf_utils", 43 "hdf_core:libhdi", 44 "hilog:libhilog", 45 "ipc:ipc_single", 46 ] 47 48 install_images = [ chipset_base_dir ] 49 subsystem_name = "hdf" 50 part_name = "drivers_peripheral_memorytracker" 51} 52 53group("hdf_memorytracker") { 54 deps = [ 55 ":libmemory_tracker_interface_service_1.0", 56 ":libmemorytracker_driver", 57 ] 58} 59