# Copyright (c) 2022-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. import("//build/ohos.gni") declare_args() { fusion_rust_enabled = false fusion_interaction_coordination = false fusion_drag_enable_monitor = false fusion_drag_enable_interceptor = true } 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_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_default_defines = [] 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_drag_enable_monitor) { device_status_default_defines += [ "OHOS_DRAG_ENABLE_MONITOR" ] } if (fusion_drag_enable_interceptor) { device_status_default_defines += [ "OHOS_DRAG_ENABLE_INTERCEPTOR" ] }