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 device_status_intention_framework = true 18 device_status_rust_enabled = false 19 device_status_interaction_coordination = false 20 device_status_drag_enable_monitor = true 21 device_status_drag_enable_interceptor = false 22 device_status_drag_enable_animation = false 23 device_status_performance_check = true 24 device_status_sensor_enable = true 25 device_status_memmgr_enable = false 26 if (defined(global_parts_info)) { 27 if (!defined(global_parts_info.sensors_sensor)) { 28 device_status_sensor_enable = false 29 } 30 if (defined(global_parts_info.resourceschedule_memmgr_override)) { 31 device_status_memmgr_enable = true 32 } 33 } 34} 35 36ability_runtime_path = "//foundation/ability/ability_runtime" 37ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits" 38device_status_part_name = "device_status" 39device_status_subsystem_name = "msdp" 40device_status_root_path = "//base/msdp/device_status" 41device_status_interfaces_path = "${device_status_root_path}/interfaces" 42device_status_libs_path = "${device_status_root_path}/libs" 43device_status_frameworks_path = "${device_status_root_path}/frameworks" 44device_status_intention_path = "${device_status_root_path}/intention" 45device_status_service_path = "${device_status_root_path}/services" 46device_status_utils_path = "${device_status_root_path}/utils/common" 47device_status_fuzz_output_path = "${device_status_part_name}/device_status" 48intention_root_path = "//base/msdp/device_status/intention" 49file_dfs_service_path = "//foundation/filemanagement/dfs_service" 50 51device_status_default_defines = [] 52 53if (device_status_intention_framework) { 54 device_status_default_defines += [ "OHOS_BUILD_ENABLE_INTENTION_FRAMEWORK" ] 55} 56 57if (device_status_rust_enabled) { 58 device_status_default_defines += [ "OHOS_BUILD_ENABLE_RUST_IMPL" ] 59} 60 61if (device_status_interaction_coordination) { 62 device_status_default_defines += [ "OHOS_BUILD_ENABLE_COORDINATION" ] 63} 64 65if (device_status_performance_check) { 66 device_status_default_defines += [ "ENABLE_PERFORMANCE_CHECK" ] 67} 68 69if (device_status_drag_enable_monitor) { 70 device_status_default_defines += [ "OHOS_DRAG_ENABLE_MONITOR" ] 71} 72 73if (device_status_drag_enable_interceptor) { 74 device_status_default_defines += [ "OHOS_DRAG_ENABLE_INTERCEPTOR" ] 75} 76 77if (device_status_drag_enable_animation) { 78 device_status_default_defines += [ "OHOS_DRAG_ENABLE_ANIMATION" ] 79} 80