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