1# Copyright (c) 2021-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_source_handler") { 19 include_dirs = [ 20 "include", 21 "${innerkits_path}/include", 22 "${innerkits_path}/src", 23 "${ipc_path}/include", 24 "${ipc_path}/src", 25 "${services_source_path}/sourcemanager/include", 26 "${frameworks_path}/include", 27 "${service_common}/include", 28 "${common_path}/include", 29 "${fwk_common_path}/log/include", 30 "${fwk_common_path}/utils/include", 31 "${dfx_utils_path}/include", 32 "${fwk_interfaces_path}/include", 33 "${fwk_interfaces_path}/include/ipc", 34 "${utils_path}/include", 35 "${services_source_path}/inputinject/include", 36 "${distributedinput_path}/services/state/include", 37 ] 38 39 sources = [ 40 "src/distributed_input_source_handler.cpp", 41 "src/load_d_input_source_callback.cpp", 42 ] 43 44 defines = [ 45 "HI_LOG_ENABLE", 46 "DH_LOG_TAG=\"distributedinputsourcehandler\"", 47 "LOG_DOMAIN=0xD004100", 48 ] 49 50 deps = [ 51 "${dfx_utils_path}:libdinput_dfx_utils", 52 "${innerkits_path}:libdinput_sdk", 53 "${utils_path}:libdinput_utils", 54 "//third_party/libevdev:libevdev", 55 ] 56 57 external_deps = [ 58 "c_utils:utils", 59 "eventhandler:libeventhandler", 60 "hisysevent:libhisysevent", 61 "ipc:ipc_core", 62 "safwk:system_ability_fwk", 63 "samgr:samgr_proxy", 64 ] 65 66 cflags_cc = [ "-DHILOG_ENABLE" ] 67 68 subsystem_name = "distributedhardware" 69 70 part_name = "distributed_input" 71} 72