1# Copyright (c) 2021 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("//base/hiviewdfx/hidumper/hidumper.gni") 15 16config("dump_usage_config") { 17 visibility = [ "*:*" ] 18 19 include_dirs = [ 20 ".", 21 "${hidumper_frameworks_path}/include", 22 "//utils/native/base/include", 23 "//base/hiviewdfx/hidumper/utils/native/include/", 24 "//base/hiviewdfx/hidumper/frameworks/native", 25 "//base/hiviewdfx/hidumper/services/native/include", 26 "//base/hiviewdfx/hidumper/interfaces/native/innerkits/include" 27 ] 28} 29 30 31ohos_shared_library("lib_dump_usage") { 32 public_configs = [ ":dump_usage_config" ] 33 34 deps = [ 35 "//base/hiviewdfx/hidumper/services:hidumperservice", 36 ] 37 38 external_deps = [ 39 "hilog_native:libhilog", 40 "ipc:ipc_core", 41 ] 42 43 sources = [ 44 "//base/hiviewdfx/hidumper/interfaces/innerkits/dump_usage.cpp", 45 ] 46 subsystem_name = "hiviewdfx" 47 part_name = "hidumper" 48} 49 50 51