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