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