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