1# Copyright (c) 2022-2023 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("//build/ohos.gni") 15 16declare_args() { 17 fusion_intention_framework = false 18 fusion_rust_enabled = false 19 fusion_interaction_coordination = false 20 fusion_drag_enable_monitor = true 21 fusion_drag_enable_interceptor = false 22 fusion_drag_enable_animation = false 23 device_status_sensor_enable = true 24 if (defined(global_parts_info)) { 25 if (!defined(global_parts_info.sensors_sensor)) { 26 device_status_sensor_enable = false 27 } 28 } 29} 30 31if (fusion_interaction_coordination) { 32 import("//base/msdp/motion/motion.gni") 33} 34 35ability_runtime_path = "//foundation/ability/ability_runtime" 36ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits" 37device_status_part_name = "device_status" 38device_status_subsystem_name = "msdp" 39device_status_root_path = "//base/msdp/device_status" 40device_status_interfaces_path = "${device_status_root_path}/interfaces" 41device_status_libs_path = "${device_status_root_path}/libs" 42device_status_frameworks_path = "${device_status_root_path}/frameworks" 43device_status_service_path = "${device_status_root_path}/services" 44device_status_utils_path = "${device_status_root_path}/utils/common" 45device_status_fuzz_output_path = "${device_status_part_name}/device_status" 46intention_root_path = "//base/msdp/device_status/intention" 47file_dfs_service_path = "//foundation/filemanagement/dfs_service" 48 49device_status_default_defines = [] 50 51if (fusion_intention_framework) { 52 device_status_default_defines += [ "OHOS_BUILD_ENABLE_INTENTION_FRAMEWORK" ] 53} 54 55if (defined(fusion_interaction_motion_drag) && fusion_interaction_motion_drag) { 56 device_status_default_defines += [ "OHOS_BUILD_ENABLE_MOTION_DRAG" ] 57} 58 59if (fusion_rust_enabled) { 60 device_status_default_defines += [ "OHOS_BUILD_ENABLE_RUST_IMPL" ] 61} 62 63if (fusion_interaction_coordination) { 64 device_status_default_defines += [ "OHOS_BUILD_ENABLE_COORDINATION" ] 65} 66 67if (fusion_drag_enable_monitor) { 68 device_status_default_defines += [ "OHOS_DRAG_ENABLE_MONITOR" ] 69} 70 71if (fusion_drag_enable_interceptor) { 72 device_status_default_defines += [ "OHOS_DRAG_ENABLE_INTERCEPTOR" ] 73} 74 75if (fusion_drag_enable_animation) { 76 device_status_default_defines += [ "OHOS_DRAG_ENABLE_ANIMATION" ] 77} 78