加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
hiview.gni 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
ericlee 提交于 2023-11-15 18:06 . Do not depend on hiperf directly
# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# build type definitions
is_phone = true
is_tv = false
is_watch = false
# hiview path definitions
hiview_root = "//base/hiviewdfx/hiview"
hiview_adapter = "//base/hiviewdfx/hiview/adapter"
hiview_base = "//base/hiviewdfx/hiview/base"
hiview_core = "//base/hiviewdfx/hiview/core"
hiview_plugin = "//base/hiviewdfx/hiview/plugins"
hiview_service = "//base/hiviewdfx/hiview/service"
hiview_framework = "//base/hiviewdfx/hiview/framework"
hiview_interfaces = "//base/hiviewdfx/hiview/interfaces"
hiview_test = "//base/hiviewdfx/hiview/test"
# hiview plugin path definitions
hiview_faultlogger = "//base/hiviewdfx/hiview/plugins/faultlogger"
hiview_eventlogger = "//base/hiviewdfx/hiview/plugins/eventlogger"
# hiview module
hiview_module = "hiview/hiview"
declare_args() {
device_usage_statistics_enable = true
if (defined(global_parts_info) &&
!defined(global_parts_info.resourceschedule_device_usage_statistics)) {
device_usage_statistics_enable = false
}
battery_statistics_enable = true
if (defined(global_parts_info) &&
!defined(global_parts_info.powermgr_battery_statistics)) {
battery_statistics_enable = false
}
power_manager_enable = true
if (defined(global_parts_info) &&
!defined(global_parts_info.powermgr_power_manager)) {
power_manager_enable = false
}
enable_hiview_usage_event_report_build = true
has_hiperf = true
if (defined(global_parts_info) &&
!defined(global_parts_info.developtools_hiperf)) {
has_hiperf = false
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化