• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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(
16    "//foundation/distributedhardware/distributed_input/distributedinput.gni")
17
18ohos_shared_library("libdinput_state") {
19  include_dirs = [
20    "include",
21    "${common_path}/include",
22    "${utils_path}/include",
23    "${service_common}/include",
24    "${services_sink_path}/inputcollector/include",
25    "${distributedinput_path}/inputdevicehandler/include",
26    "${services_source_path}/inputinject/include",
27    "${services_sink_path}/transport/include",
28    "${frameworks_path}/include",
29    "${fwk_common_path}/utils/include",
30  ]
31
32  sources = [ "src/dinput_state.cpp" ]
33
34  defines = [
35    "HI_LOG_ENABLE",
36    "DH_LOG_TAG=\"distributedinputstate\"",
37    "LOG_DOMAIN=0xD004100",
38  ]
39
40  deps = [
41    "${dfx_utils_path}:libdinput_dfx_utils",
42    "${services_sink_path}/inputcollector:libdinput_collector",
43    "${services_sink_path}/transport:libdinput_sink_trans",
44    "${services_source_path}/inputinject:libdinput_inject",
45    "${utils_path}:libdinput_utils",
46    "//third_party/libevdev:libevdev",
47  ]
48
49  external_deps = [
50    "c_utils:utils",
51    "distributed_hardware_fwk:libdhfwk_sdk",
52    "dsoftbus:softbus_client",
53    "eventhandler:libeventhandler",
54    "hitrace:hitrace_meter",
55    "ipc:ipc_core",
56    "safwk:system_ability_fwk",
57    "samgr:samgr_proxy",
58  ]
59
60  cflags_cc = [ "-DHILOG_ENABLE" ]
61
62  subsystem_name = "distributedhardware"
63
64  part_name = "distributed_input"
65}
66