1# Copyright (c) 2024 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") 15import("//foundation/arkui/ace_engine/ace_config.gni") 16 17ohos_source_set("rawinput-injector") { 18 sources = [ 19 "injecting_executor.cpp", 20 "injector_utils.cpp", 21 "raw_input_command.cpp", 22 "raw_input_injector.cpp", 23 ] 24 branch_protector_ret = "pac_ret" 25 26 sanitize = { 27 cfi = true 28 cfi_cross_dso = true 29 debug = false 30 } 31 32 external_deps = [ 33 "c_utils:utils", 34 "input:libmmi-client", 35 ] 36 part_name = ace_engine_part 37 subsystem_name = ace_engine_subsystem 38} 39 40ohos_executable("rawinput") { 41 sources = [ "main.cpp" ] 42 configs = [ "$ace_root:ace_coverage_config" ] 43 44 branch_protector_ret = "pac_ret" 45 sanitize = { 46 cfi = true 47 cfi_cross_dso = true 48 debug = false 49 } 50 51 deps = [ ":rawinput-injector" ] 52 53 part_name = ace_engine_part 54 subsystem_name = ace_engine_subsystem 55} 56