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("./../../../hdf_core/adapter/uhdf2/uhdf.gni") 16import("./../input.gni") 17 18ohos_shared_library("libhid_ddk_service_1.0") { 19 sources = [ "src/hid_ddk_service.cpp" ] 20 include_dirs = [ 21 "include/", 22 "include/emit_event_manager/", 23 ] 24 25 deps = [ "${input_driver_path}/ddk_service/src/emit_event_manager:emit_event_manager" ] 26 27 external_deps = [ 28 "c_utils:utils", 29 "drivers_interface_input:hid_ddk_idl_headers", 30 "hdf_core:libhdf_utils", 31 "hilog:libhilog", 32 "ipc:ipc_single", 33 ] 34 35 install_images = [ chipset_base_dir ] 36 subsystem_name = "hdf" 37 part_name = "drivers_peripheral_input" 38} 39 40ohos_shared_library("libhid_ddk_driver") { 41 sources = [ "src/hid_ddk_driver.cpp" ] 42 43 include_dirs = [ "include/" ] 44 45 external_deps = [ 46 "c_utils:utils", 47 "drivers_interface_input:libhid_ddk_stub_1.0", 48 "hdf_core:libhdf_host", 49 "hdf_core:libhdf_ipc_adapter", 50 "hdf_core:libhdf_utils", 51 "hdf_core:libhdi", 52 "hilog:libhilog", 53 "ipc:ipc_single", 54 ] 55 56 shlib_type = "hdi" 57 install_images = [ chipset_base_dir ] 58 subsystem_name = "hdf" 59 part_name = "drivers_peripheral_input" 60} 61 62group("hid_ddk_target") { 63 deps = [ 64 ":libhid_ddk_driver", 65 ":libhid_ddk_service_1.0", 66 ] 67} 68