mirror of
https://gitee.com/openharmony/msdp_device_status
synced 2024-12-02 12:56:49 +00:00
6ae1ce0208
Signed-off-by: wuliangdong <wuliangdong1@huawei.com> Change-Id: I410d663319cfcf4c51d6c850264af16d57f4104f
84 lines
2.9 KiB
Plaintext
84 lines
2.9 KiB
Plaintext
# 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() {
|
|
fusion_intention_framework = true
|
|
fusion_rust_enabled = false
|
|
fusion_interaction_coordination = false
|
|
fusion_drag_enable_monitor = true
|
|
fusion_drag_enable_interceptor = false
|
|
fusion_drag_enable_animation = false
|
|
fusion_performance_check = true
|
|
device_status_sensor_enable = true
|
|
if (defined(global_parts_info)) {
|
|
if (!defined(global_parts_info.sensors_sensor)) {
|
|
device_status_sensor_enable = false
|
|
}
|
|
}
|
|
}
|
|
|
|
if (fusion_interaction_coordination) {
|
|
import("//base/msdp/motion/motion.gni")
|
|
}
|
|
|
|
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"
|
|
|
|
device_status_default_defines = []
|
|
|
|
if (fusion_intention_framework) {
|
|
device_status_default_defines += [ "OHOS_BUILD_ENABLE_INTENTION_FRAMEWORK" ]
|
|
}
|
|
|
|
if (defined(fusion_interaction_motion_drag) && fusion_interaction_motion_drag) {
|
|
device_status_default_defines += [ "OHOS_BUILD_ENABLE_MOTION_DRAG" ]
|
|
}
|
|
|
|
if (fusion_rust_enabled) {
|
|
device_status_default_defines += [ "OHOS_BUILD_ENABLE_RUST_IMPL" ]
|
|
}
|
|
|
|
if (fusion_interaction_coordination) {
|
|
device_status_default_defines += [ "OHOS_BUILD_ENABLE_COORDINATION" ]
|
|
}
|
|
|
|
if (fusion_performance_check) {
|
|
device_status_default_defines += [ "ENABLE_PERFORMANCE_CHECK" ]
|
|
}
|
|
|
|
if (fusion_drag_enable_monitor) {
|
|
device_status_default_defines += [ "OHOS_DRAG_ENABLE_MONITOR" ]
|
|
}
|
|
|
|
if (fusion_drag_enable_interceptor) {
|
|
device_status_default_defines += [ "OHOS_DRAG_ENABLE_INTERCEPTOR" ]
|
|
}
|
|
|
|
if (fusion_drag_enable_animation) {
|
|
device_status_default_defines += [ "OHOS_DRAG_ENABLE_ANIMATION" ]
|
|
}
|