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("../../intelligent_voice.gni") 16 17ohos_shared_library("intell_voice_engine_manager_service_1.0") { 18 include_dirs = [ 19 "//third_party/bounds_checking_function/include", 20 "../../interfaces", 21 "../../utils", 22 ] 23 24 sources = [ 25 "intell_voice_engine_adapter_impl.cpp", 26 "intell_voice_engine_manager_impl.cpp", 27 ] 28 29 if (is_standard_system) { 30 external_deps = [ 31 "c_utils:utils", 32 "drivers_interface_intelligent_voice:intell_voice_engine_idl_headers", 33 "hilog:libhilog", 34 "ipc:ipc_single", 35 ] 36 } else { 37 external_deps = [ 38 "hilog:libhilog", 39 "ipc:ipc_single", 40 ] 41 } 42 43 install_enable = true 44 install_images = [ chipset_base_dir ] 45 subsystem_name = "hdf" 46 part_name = "drivers_peripheral_intelligent_voice" 47} 48 49ohos_shared_library("intell_voice_engine_driver") { 50 include_dirs = [ "../../utils" ] 51 52 sources = [ "intell_voice_engine_driver.cpp" ] 53 54 if (is_standard_system) { 55 external_deps = [ 56 "c_utils:utils", 57 "drivers_interface_intelligent_voice:libintell_voice_engine_stub_1.0", 58 "hdf_core:libhdf_host", 59 "hdf_core:libhdf_ipc_adapter", 60 "hdf_core:libhdf_utils", 61 "hdf_core:libhdi", 62 "hilog:libhilog", 63 "ipc:ipc_single", 64 ] 65 } else { 66 external_deps = [ 67 "hilog:libhilog", 68 "ipc:ipc_single", 69 ] 70 } 71 72 shlib_type = "hdi" 73 install_enable = true 74 install_images = [ chipset_base_dir ] 75 subsystem_name = "hdf" 76 part_name = "drivers_peripheral_intelligent_voice" 77} 78 79group("hdi_intell_voice_engine_service") { 80 deps = [ 81 ":intell_voice_engine_driver", 82 ":intell_voice_engine_manager_service_1.0", 83 "etc:intelligent_voice_engine_cfg", 84 ] 85 86 if (drivers_peripheral_intelligent_voice_feature_community) { 87 deps += [ "../../passthrough:vendor_intell_voice_engine" ] 88 } 89} 90