• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_rust_enabled = false
18  fusion_interaction_coordination = false
19  fusion_drag_enable_monitor = false
20  fusion_drag_enable_interceptor = true
21}
22
23if (fusion_interaction_coordination) {
24  import("//base/msdp/motion/motion.gni")
25}
26
27ability_runtime_path = "//foundation/ability/ability_runtime"
28ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits"
29device_status_part_name = "device_status"
30device_status_subsystem_name = "msdp"
31device_status_root_path = "//base/msdp/device_status"
32device_status_interfaces_path = "${device_status_root_path}/interfaces"
33device_status_frameworks_path = "${device_status_root_path}/frameworks"
34device_status_service_path = "${device_status_root_path}/services"
35device_status_utils_path = "${device_status_root_path}/utils/common"
36
37device_status_default_defines = []
38
39if (defined(fusion_interaction_motion_drag) && fusion_interaction_motion_drag) {
40  device_status_default_defines += [ "OHOS_BUILD_ENABLE_MOTION_DRAG" ]
41}
42
43if (fusion_rust_enabled) {
44  device_status_default_defines += [ "OHOS_BUILD_ENABLE_RUST_IMPL" ]
45}
46
47if (fusion_interaction_coordination) {
48  device_status_default_defines += [ "OHOS_BUILD_ENABLE_COORDINATION" ]
49}
50
51if (fusion_drag_enable_monitor) {
52  device_status_default_defines += [ "OHOS_DRAG_ENABLE_MONITOR" ]
53}
54
55if (fusion_drag_enable_interceptor) {
56  device_status_default_defines += [ "OHOS_DRAG_ENABLE_INTERCEPTOR" ]
57}
58