1# Copyright (c) 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("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16import("//drivers/peripheral/input/input.gni") 17 18ohos_shared_library("libinput_interfaces_service_1.0") { 19 include_dirs = [ 20 "//drivers/peripheral/input/interfaces/include/", 21 "//drivers/peripheral/input/hal/include/", 22 "//third_party/FreeBSD/sys/dev/evdev", 23 ] 24 if (drivers_peripheral_input_feature_model) { 25 deps = [ "//drivers/peripheral/input/hal:hdi_input" ] 26 } 27 if (drivers_peripheral_input_feature_udriver) { 28 include_dirs += [ "//drivers/peripheral/input/udriver/include/" ] 29 deps = [ "//drivers/peripheral/input/udriver:hdi_input_udriver" ] 30 } 31 32 sources = [ "input_interfaces_impl.cpp" ] 33 34 if (is_standard_system) { 35 external_deps = [ 36 "c_utils:utils", 37 "drivers_interface_input:input_idl_headers", 38 "hiviewdfx_hilog_native:libhilog", 39 "ipc:ipc_single", 40 ] 41 } else { 42 external_deps = [ 43 "hilog:libhilog", 44 "ipc:ipc_single", 45 ] 46 } 47 48 install_images = [ chipset_base_dir ] 49 subsystem_name = "hdf" 50 part_name = "drivers_peripheral_input" 51} 52 53ohos_shared_library("libinput_driver") { 54 include_dirs = [ 55 "//drivers/peripheral/input/interfaces/include/", 56 "//drivers/peripheral/input/hal/include/", 57 "//drivers/hdf_core/adapter/uhdf2/include/host/", 58 ] 59 60 sources = [ "input_interfaces_driver.cpp" ] 61 62 deps = [ "//drivers/interface/input/v1_0:libinput_stub_1.0" ] 63 64 if (is_standard_system) { 65 external_deps = [ 66 "c_utils:utils", 67 "hdf_core:libhdf_ipc_adapter", 68 "hdf_core:libhdi", 69 "hiviewdfx_hilog_native:libhilog", 70 "ipc:ipc_single", 71 ] 72 } else { 73 external_deps = [ 74 "hilog:libhilog", 75 "ipc:ipc_single", 76 ] 77 } 78 79 install_images = [ chipset_base_dir ] 80 subsystem_name = "hdf" 81 part_name = "drivers_peripheral_input" 82} 83 84group("hdi_input_service") { 85 deps = [ 86 ":libinput_driver", 87 ":libinput_interfaces_service_1.0", 88 ] 89} 90