1c29fa5a6Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2c29fa5a6Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3c29fa5a6Sopenharmony_ci# you may not use this file except in compliance with the License. 4c29fa5a6Sopenharmony_ci# You may obtain a copy of the License at 5c29fa5a6Sopenharmony_ci# 6c29fa5a6Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7c29fa5a6Sopenharmony_ci# 8c29fa5a6Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9c29fa5a6Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10c29fa5a6Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11c29fa5a6Sopenharmony_ci# See the License for the specific language governing permissions and 12c29fa5a6Sopenharmony_ci# limitations under the License. 13c29fa5a6Sopenharmony_ci 14c29fa5a6Sopenharmony_ciimport("../../../multimodalinput_mini.gni") 15c29fa5a6Sopenharmony_ci 16c29fa5a6Sopenharmony_ciconfig("virtual_device_sources_public_config") { 17c29fa5a6Sopenharmony_ci include_dirs = [ "include" ] 18c29fa5a6Sopenharmony_ci} 19c29fa5a6Sopenharmony_ci 20c29fa5a6Sopenharmony_ciohos_source_set("virtual_device_sources") { 21c29fa5a6Sopenharmony_ci branch_protector_ret = "pac_ret" 22c29fa5a6Sopenharmony_ci sanitize = { 23c29fa5a6Sopenharmony_ci cfi = true 24c29fa5a6Sopenharmony_ci cfi_cross_dso = true 25c29fa5a6Sopenharmony_ci debug = false 26c29fa5a6Sopenharmony_ci } 27c29fa5a6Sopenharmony_ci 28c29fa5a6Sopenharmony_ci include_dirs = [ "include" ] 29c29fa5a6Sopenharmony_ci 30c29fa5a6Sopenharmony_ci sources = [ 31c29fa5a6Sopenharmony_ci "src/general_crown.cpp", 32c29fa5a6Sopenharmony_ci "src/general_device.cpp", 33c29fa5a6Sopenharmony_ci "src/general_joystick.cpp", 34c29fa5a6Sopenharmony_ci "src/general_keyboard.cpp", 35c29fa5a6Sopenharmony_ci "src/general_mouse.cpp", 36c29fa5a6Sopenharmony_ci "src/general_stylus.cpp", 37c29fa5a6Sopenharmony_ci "src/general_touchpad.cpp", 38c29fa5a6Sopenharmony_ci "src/general_touchscreen.cpp", 39c29fa5a6Sopenharmony_ci "src/general_uwb_remote_control.cpp", 40c29fa5a6Sopenharmony_ci "src/v_input_device.cpp", 41c29fa5a6Sopenharmony_ci ] 42c29fa5a6Sopenharmony_ci 43c29fa5a6Sopenharmony_ci public_configs = [ ":virtual_device_sources_public_config" ] 44c29fa5a6Sopenharmony_ci 45c29fa5a6Sopenharmony_ci deps = [ "${mmi_path}/util:libmmi-util" ] 46c29fa5a6Sopenharmony_ci 47c29fa5a6Sopenharmony_ci public_deps = [ "${mmi_path}/tools/vuinput:libmmi-virtual-device" ] 48c29fa5a6Sopenharmony_ci 49c29fa5a6Sopenharmony_ci external_deps = [ 50c29fa5a6Sopenharmony_ci "c_utils:utils", 51c29fa5a6Sopenharmony_ci "hilog:libhilog", 52c29fa5a6Sopenharmony_ci ] 53c29fa5a6Sopenharmony_ci 54c29fa5a6Sopenharmony_ci part_name = "${mmi_part_name}" 55c29fa5a6Sopenharmony_ci subsystem_name = "${mmi_subsystem_name}" 56c29fa5a6Sopenharmony_ci} 57