1# Copyright (c) 2021-2022 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 16mmi_path = "//foundation/multimodalinput/input" 17ability_runtime_path = "//foundation/ability/ability_runtime" 18ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits" 19 20declare_args() { 21 resource_schedule_service_enabled = false 22 input_feature_combination_key = true 23 input_feature_pointer_drawing = true 24 input_feature_interceptor = true 25 input_feature_monitor = true 26 input_feature_keyboard = true 27 input_feature_mouse = true 28 input_feature_joystick = true 29 input_feature_touchscreen = true 30 input_feature_input_device = true 31 input_feature_input_cooperation = false 32 33 if (defined(global_parts_info) && 34 defined(global_parts_info.resourceschedule_resource_schedule_service)) { 35 resource_schedule_service_enabled = true 36 } 37} 38 39if (input_feature_joystick) { 40 input_feature_mouse = true 41} 42 43print("input_feature_combination_key = ${input_feature_combination_key}") 44print("input_feature_pointer_drawing = ${input_feature_pointer_drawing}") 45print("input_feature_monitor = ${input_feature_monitor}") 46print("input_feature_interceptor = ${input_feature_interceptor}") 47print("input_feature_keyboard = ${input_feature_keyboard}") 48print("input_feature_mouse = ${input_feature_mouse}") 49print("input_feature_joystick = ${input_feature_joystick}") 50print("input_feature_touchscreen = ${input_feature_touchscreen}") 51print("input_feature_input_device = ${input_feature_input_device}") 52print("input_feature_input_cooperation = ${input_feature_input_cooperation}") 53