15490a39dSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 25490a39dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 35490a39dSopenharmony_ci# you may not use this file except in compliance with the License. 45490a39dSopenharmony_ci# You may obtain a copy of the License at 55490a39dSopenharmony_ci# 65490a39dSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 75490a39dSopenharmony_ci# 85490a39dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 95490a39dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 105490a39dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115490a39dSopenharmony_ci# See the License for the specific language governing permissions and 125490a39dSopenharmony_ci# limitations under the License. 135490a39dSopenharmony_ci 145490a39dSopenharmony_ciimport("//build/ohos.gni") 155490a39dSopenharmony_ciimport("//build/ohos/ace/ace.gni") 165490a39dSopenharmony_ci 175490a39dSopenharmony_cijs_declaration("intelligentvoice_js") { 185490a39dSopenharmony_ci part_name = "intelligent_voice_framework" 195490a39dSopenharmony_ci sources = [ "//foundation/ai/intelligent_voice_framework/interfaces/kits/js/@ohos.ai.intelligentVoice.d.ts" ] 205490a39dSopenharmony_ci} 215490a39dSopenharmony_ci 225490a39dSopenharmony_ciohos_copy("intelligentvoice_declaration") { 235490a39dSopenharmony_ci sources = [ "//foundation/ai/intelligent_voice_framework/interfaces/kits/js/@ohos.ai.intelligentVoice.d.ts" ] 245490a39dSopenharmony_ci outputs = [ target_out_dir + "/$target_name/" ] 255490a39dSopenharmony_ci module_source_dir = target_out_dir + "/$target_name" 265490a39dSopenharmony_ci module_install_name = "" 275490a39dSopenharmony_ci} 285490a39dSopenharmony_ci 295490a39dSopenharmony_ciohos_shared_library("intelligentvoice") { 305490a39dSopenharmony_ci sources = [ 315490a39dSopenharmony_ci "napi/engine_event_callback_napi.cpp", 325490a39dSopenharmony_ci "napi/enroll_intell_voice_engine_callback_napi.cpp", 335490a39dSopenharmony_ci "napi/enroll_intell_voice_engine_napi.cpp", 345490a39dSopenharmony_ci "napi/intell_voice_common_napi.cpp", 355490a39dSopenharmony_ci "napi/intell_voice_manager_napi.cpp", 365490a39dSopenharmony_ci "napi/intell_voice_napi_queue.cpp", 375490a39dSopenharmony_ci "napi/intell_voice_napi_util.cpp", 385490a39dSopenharmony_ci "napi/intell_voice_update_callback_napi.cpp", 395490a39dSopenharmony_ci "napi/service_change_callback_napi.cpp", 405490a39dSopenharmony_ci "napi/wakeup_intell_voice_engine_napi.cpp", 415490a39dSopenharmony_ci "napi/wakeup_manager_napi.cpp", 425490a39dSopenharmony_ci ] 435490a39dSopenharmony_ci 445490a39dSopenharmony_ci include_dirs = [ 455490a39dSopenharmony_ci "../../../../arkui/napi/interfaces/kits", 465490a39dSopenharmony_ci "../../interfaces/inner_api/native", 475490a39dSopenharmony_ci "../../services/intell_voice_engine", 485490a39dSopenharmony_ci "../../services/intell_voice_engine/proxy", 495490a39dSopenharmony_ci "../../utils", 505490a39dSopenharmony_ci "napi", 515490a39dSopenharmony_ci ] 525490a39dSopenharmony_ci 535490a39dSopenharmony_ci cflags_cc = [ 545490a39dSopenharmony_ci "-Wno-error=unused-parameter", 555490a39dSopenharmony_ci "-DHILOG_ENABLE", 565490a39dSopenharmony_ci "-DENABLE_DEBUG", 575490a39dSopenharmony_ci ] 585490a39dSopenharmony_ci 595490a39dSopenharmony_ci deps = [ 605490a39dSopenharmony_ci "../../frameworks/native:intellvoice_native", 615490a39dSopenharmony_ci "../../services:intell_voice_proxy", 625490a39dSopenharmony_ci ] 635490a39dSopenharmony_ci 645490a39dSopenharmony_ci external_deps = [ 655490a39dSopenharmony_ci "ability_base:want", 665490a39dSopenharmony_ci "access_token:libaccesstoken_sdk", 675490a39dSopenharmony_ci "access_token:libtokenid_sdk", 685490a39dSopenharmony_ci "c_utils:utils", 695490a39dSopenharmony_ci "drivers_interface_intelligent_voice:intell_voice_engine_idl_headers", 705490a39dSopenharmony_ci "hilog:libhilog", 715490a39dSopenharmony_ci "ipc:ipc_core", 725490a39dSopenharmony_ci "napi:ace_napi", 735490a39dSopenharmony_ci "safwk:system_ability_fwk", 745490a39dSopenharmony_ci "samgr:samgr_proxy", 755490a39dSopenharmony_ci ] 765490a39dSopenharmony_ci 775490a39dSopenharmony_ci relative_install_dir = "module/ai" 785490a39dSopenharmony_ci subsystem_name = "ai" 795490a39dSopenharmony_ci part_name = "intelligent_voice_framework" 805490a39dSopenharmony_ci} 81