1 Star 0 Fork 258

Dragon51/msdp_device_status_zhangpeng4

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
device_status.gni 3.92 KB
一键复制 编辑 原始数据 按行查看 历史
tujingwei 提交于 2024-08-19 10:39 . feat: 隔离hisysevent
# Copyright (c) 2023-2024 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.
import("//build/ohos.gni")
declare_args() {
device_status_intention_framework = true
device_status_rust_enabled = false
device_status_interaction_coordination = false
device_status_drag_enable_monitor = true
device_status_drag_enable_interceptor = false
device_status_drag_enable_animation = false
device_status_performance_check = true
device_status_hisysevent_enable = false
# origin variables sets
if (!is_arkui_x) {
device_status_intention_framework = true
device_status_drag_enable_monitor = true
device_status_sensor_enable = true
device_status_memmgr_enable = false
if (defined(global_parts_info)) {
if (!defined(global_parts_info.sensors_sensor)) {
device_status_sensor_enable = false
}
if (defined(global_parts_info.resourceschedule_memmgr_override)) {
device_status_memmgr_enable = true
}
if (defined(global_parts_info.hiviewdfx_hisysevent)) {
device_status_hisysevent_enable = true
}
}
} else { # is_arkui_x
device_status_intention_framework = false
device_status_drag_enable_monitor = false
device_status_sensor_enable = false
device_status_memmgr_enable = false
}
}
ability_runtime_path = "//foundation/ability/ability_runtime"
ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits"
device_status_part_name = "device_status"
device_status_subsystem_name = "msdp"
device_status_root_path = "//base/msdp/device_status"
device_status_interfaces_path = "${device_status_root_path}/interfaces"
device_status_libs_path = "${device_status_root_path}/libs"
device_status_frameworks_path = "${device_status_root_path}/frameworks"
device_status_service_path = "${device_status_root_path}/services"
device_status_utils_path = "${device_status_root_path}/utils/common"
device_status_intention_path = "${device_status_root_path}/intention"
device_status_fuzz_output_path = "${device_status_part_name}/device_status"
intention_root_path = "//base/msdp/device_status/intention"
file_dfs_service_path = "//foundation/filemanagement/dfs_service"
file_framework_root_path = "//foundation/appframework"
file_arkui_root_path = "//foundation/arkui"
library_utils_path = "//commonlibrary/c_utils"
plugins_media_path = "//plugins/multimedia"
file_dfx_hilog_path = "//base/hiviewdfx/hilog"
foundation_media_path = "//foundation/multimedia"
foundation_input_path = "//foundation/multimodalinput"
foundation_graphic_path = "//foundation/graphic"
device_status_default_defines = []
if (device_status_intention_framework) {
device_status_default_defines += [ "OHOS_BUILD_ENABLE_INTENTION_FRAMEWORK" ]
}
if (device_status_rust_enabled) {
device_status_default_defines += [ "OHOS_BUILD_ENABLE_RUST_IMPL" ]
}
if (device_status_interaction_coordination) {
device_status_default_defines += [ "OHOS_BUILD_ENABLE_COORDINATION" ]
}
if (device_status_performance_check) {
device_status_default_defines += [ "ENABLE_PERFORMANCE_CHECK" ]
}
if (device_status_drag_enable_monitor) {
device_status_default_defines += [ "OHOS_DRAG_ENABLE_MONITOR" ]
}
if (device_status_drag_enable_interceptor) {
device_status_default_defines += [ "OHOS_DRAG_ENABLE_INTERCEPTOR" ]
}
if (device_status_drag_enable_animation) {
device_status_default_defines += [ "OHOS_DRAG_ENABLE_ANIMATION" ]
}
# add new macro
if (is_arkui_x) {
device_status_default_defines += [ "OHOS_BUILD_ENABLE_ARKUI_X" ]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dragon51/msdp_device_status_2.git
git@gitee.com:dragon51/msdp_device_status_2.git
dragon51
msdp_device_status_2
msdp_device_status_zhangpeng4
master

搜索帮助