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_ci
165490a39dSopenharmony_ciconfig("intellvoice_native_config") {
175490a39dSopenharmony_ci  include_dirs = [
185490a39dSopenharmony_ci    "../../interfaces/inner_api/native",
195490a39dSopenharmony_ci    "../../services/intell_voice_engine",
205490a39dSopenharmony_ci    "../../services/intell_voice_engine/proxy",
215490a39dSopenharmony_ci    "../../utils",
225490a39dSopenharmony_ci  ]
235490a39dSopenharmony_ci}
245490a39dSopenharmony_ci
255490a39dSopenharmony_ciohos_shared_library("intellvoice_native") {
265490a39dSopenharmony_ci  sources = [
275490a39dSopenharmony_ci    "enroll_intell_voice_engine.cpp",
285490a39dSopenharmony_ci    "intell_voice_manager.cpp",
295490a39dSopenharmony_ci    "wakeup_intell_voice_engine.cpp",
305490a39dSopenharmony_ci  ]
315490a39dSopenharmony_ci
325490a39dSopenharmony_ci  include_dirs = [
335490a39dSopenharmony_ci    "../../interfaces/inner_api/native",
345490a39dSopenharmony_ci    "../../services/intell_voice_engine",
355490a39dSopenharmony_ci    "../../services/intell_voice_engine/proxy",
365490a39dSopenharmony_ci    "../../utils",
375490a39dSopenharmony_ci  ]
385490a39dSopenharmony_ci
395490a39dSopenharmony_ci  public_configs = [ ":intellvoice_native_config" ]
405490a39dSopenharmony_ci
415490a39dSopenharmony_ci  cflags_cc = [
425490a39dSopenharmony_ci    "-Wno-error=unused-parameter",
435490a39dSopenharmony_ci    "-DHILOG_ENABLE",
445490a39dSopenharmony_ci    "-DENABLE_DEBUG",
455490a39dSopenharmony_ci  ]
465490a39dSopenharmony_ci
475490a39dSopenharmony_ci  deps = [ "../../services:intell_voice_proxy" ]
485490a39dSopenharmony_ci
495490a39dSopenharmony_ci  external_deps = [
505490a39dSopenharmony_ci    "ability_base:base",
515490a39dSopenharmony_ci    "ability_base:want",
525490a39dSopenharmony_ci    "c_utils:utils",
535490a39dSopenharmony_ci    "drivers_interface_intelligent_voice:intell_voice_engine_idl_headers",
545490a39dSopenharmony_ci    "drivers_interface_intelligent_voice:libintell_voice_engine_proxy_1.0",
555490a39dSopenharmony_ci    "drivers_interface_intelligent_voice:libintell_voice_engine_proxy_1.1",
565490a39dSopenharmony_ci    "drivers_interface_intelligent_voice:libintell_voice_engine_proxy_1.2",
575490a39dSopenharmony_ci    "hilog:libhilog",
585490a39dSopenharmony_ci    "ipc:ipc_core",
595490a39dSopenharmony_ci    "safwk:system_ability_fwk",
605490a39dSopenharmony_ci    "samgr:samgr_proxy",
615490a39dSopenharmony_ci  ]
625490a39dSopenharmony_ci
635490a39dSopenharmony_ci  innerapi_tags = [ "ndk" ]
645490a39dSopenharmony_ci  subsystem_name = "ai"
655490a39dSopenharmony_ci  part_name = "intelligent_voice_framework"
665490a39dSopenharmony_ci}
67