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") 15 16config("intellvoice_native_config") { 17 include_dirs = [ 18 "../../interfaces/inner_api/native", 19 "../../services/intell_voice_engine", 20 "../../services/intell_voice_engine/proxy", 21 "../../utils", 22 ] 23} 24 25ohos_shared_library("intellvoice_native") { 26 sources = [ 27 "enroll_intell_voice_engine.cpp", 28 "intell_voice_manager.cpp", 29 "wakeup_intell_voice_engine.cpp", 30 ] 31 32 include_dirs = [ 33 "../../interfaces/inner_api/native", 34 "../../services/intell_voice_engine", 35 "../../services/intell_voice_engine/proxy", 36 "../../utils", 37 ] 38 39 public_configs = [ ":intellvoice_native_config" ] 40 41 cflags_cc = [ 42 "-Wno-error=unused-parameter", 43 "-DHILOG_ENABLE", 44 "-DENABLE_DEBUG", 45 ] 46 47 deps = [ "../../services:intell_voice_proxy" ] 48 49 external_deps = [ 50 "ability_base:base", 51 "ability_base:want", 52 "c_utils:utils", 53 "drivers_interface_intelligent_voice:intell_voice_engine_idl_headers", 54 "drivers_interface_intelligent_voice:libintell_voice_engine_proxy_1.0", 55 "drivers_interface_intelligent_voice:libintell_voice_engine_proxy_1.1", 56 "drivers_interface_intelligent_voice:libintell_voice_engine_proxy_1.2", 57 "hilog:libhilog", 58 "ipc:ipc_core", 59 "safwk:system_ability_fwk", 60 "samgr:samgr_proxy", 61 ] 62 63 innerapi_tags = [ "ndk" ] 64 subsystem_name = "ai" 65 part_name = "intelligent_voice_framework" 66} 67