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") 15import("../../multimodalinput_mini.gni") 16event_filter_path = "${mmi_path}/service/filter" 17 18config("mmi_event_filter_config") { 19 include_dirs = [ 20 "${mmi_path}/interfaces/native/innerkits/common/include", 21 "${mmi_path}/interfaces/native/innerkits/event/include", 22 "${mmi_path}/service/connect_manager/include", 23 "${mmi_path}/service/device_config/include", 24 "${mmi_path}/service/event_handler/include", 25 "${mmi_path}/service/device_manager/include", 26 "${mmi_path}/util/common/include", 27 "${mmi_path}/util/network/include", 28 "${mmi_path}/util/socket/include", 29 "${event_filter_path}/include", 30 ] 31} 32 33ohos_source_set("mmi_event_filter_service") { 34 part_name = "input" 35 subsystem_name = "multimodalinput" 36 sources = [ 37 "${event_filter_path}/src/event_filter_service.cpp", 38 "${event_filter_path}/src/event_filter_stub.cpp", 39 ] 40 41 configs = [ ":mmi_event_filter_config" ] 42 43 external_deps = [ 44 "hilog:libhilog", 45 "ipc:ipc_single", 46 "safwk:system_ability_fwk", 47 ] 48} 49 50ohos_source_set("mmi_event_filter_proxy") { 51 part_name = "input" 52 subsystem_name = "multimodalinput" 53 sources = [ 54 "${event_filter_path}/src/event_filter_death_recipient.cpp", 55 "${event_filter_path}/src/event_filter_handler.cpp", 56 "${event_filter_path}/src/event_filter_proxy.cpp", 57 ] 58 59 configs = [ ":mmi_event_filter_config" ] 60 61 defines = input_default_defines 62 63 external_deps = [ 64 "hilog:libhilog", 65 "ipc:ipc_single", 66 "safwk:system_ability_fwk", 67 ] 68} 69