1# Copyright (c) 2021-2024 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/hiview/hiview.gni") 15import("//build/ohos.gni") 16 17config("hiview_service_ability_config") { 18 visibility = [ "*:*" ] 19 20 include_dirs = [ 21 "include", 22 "$hiview_adapter/service/common/include", 23 "$hiview_base/utility/include", 24 "$hiview_service", 25 ] 26} 27 28ohos_source_set("hiview_service_impl") { 29 branch_protector_ret = "pac_ret" 30 sanitize = { 31 cfi = true 32 cfi_cross_dso = true 33 cfi_vcall_icall_only = true 34 debug = false 35 } 36 37 public_configs = [ ":hiview_service_ability_config" ] 38 39 include_dirs = [ 40 "$hiview_base/include", 41 "$hiview_interfaces/inner_api/unified_collection", 42 ] 43 44 sources = [ 45 "../common/src/hiview_file_info.cpp", 46 "src/hiview_log_config_manager.cpp", 47 "src/hiview_service_ability.cpp", 48 "src/hiview_service_ability_stub.cpp", 49 ] 50 51 deps = [ "$hiview_base:hiviewbase" ] 52 53 external_deps = [ 54 "access_token:libaccesstoken_sdk", 55 "bundle_framework:appexecfwk_core", 56 "c_utils:utils", 57 "hilog:libhilog", 58 "ipc:ipc_single", 59 "jsoncpp:jsoncpp", 60 "safwk:system_ability_fwk", 61 "samgr:samgr_proxy", 62 ] 63 64 part_name = "hiview" 65 66 subsystem_name = "hiviewdfx" 67} 68