• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//foundation/multimodalinput/input/multimodalinput_mini.gni")
16event_filter_path = "${mmi_path}/service/filter"
17
18config("mmi_event_filter_config") {
19  include_dirs = [
20    "//foundation/multimodalinput/input/common/include",
21    "//foundation/multimodalinput/input/interfaces/native/innerkits/common/include",
22    "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include",
23    "//foundation/multimodalinput/input/frameworks/util/common/include",
24    "${event_filter_path}/include",
25  ]
26}
27
28ohos_source_set("mmi_event_filter_service") {
29  sources = [
30    "${event_filter_path}/src/event_filter_parcel.cpp",
31    "${event_filter_path}/src/event_filter_service.cpp",
32    "${event_filter_path}/src/event_filter_stub.cpp",
33  ]
34
35  public_configs = [ ":mmi_event_filter_config" ]
36
37  configs = [ ":mmi_event_filter_config" ]
38
39  external_deps = [
40    "hiviewdfx_hilog_native:libhilog",
41    "ipc:ipc_core",
42    "safwk:system_ability_fwk",
43  ]
44}
45
46ohos_source_set("mmi_event_filter_proxy") {
47  sources = [
48    "${event_filter_path}/src/event_filter_death_recipient.cpp",
49    "${event_filter_path}/src/event_filter_parcel.cpp",
50    "${event_filter_path}/src/event_filter_proxy.cpp",
51    "${event_filter_path}/src/event_filter_wrap.cpp",
52  ]
53
54  public_configs = [ ":mmi_event_filter_config" ]
55
56  configs = [ ":mmi_event_filter_config" ]
57
58  external_deps = [
59    "hiviewdfx_hilog_native:libhilog",
60    "ipc:ipc_core",
61    "safwk:system_ability_fwk",
62  ]
63}
64