1# Copyright (c) 2021 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. 13import("//build/lite/config/component/lite_component.gni") 14 15executable("kws_app") { 16 sources = [ 17 "audio_cache.cpp", 18 "kws_app.cpp", 19 "kws_manager.cpp", 20 ] 21 cflags = [ "-Wall" ] 22 cflags_cc = cflags 23 include_dirs = [ 24 "//foundation/ai/engine/services/common/platform/os_wrapper/audio_loader/include", 25 "//foundation/ai/engine/services/common/platform/os_wrapper/audio_loader/include/codec", 26 "//foundation/ai/engine/interfaces/kits/asr/keyword_spotting", 27 "//foundation/ai/engine/interfaces/kits", 28 "//foundation/multimedia/interfaces/kits/audio_lite", 29 "//foundation/ai/engine/services/common/utils", 30 "//foundation/ai/engine/services/common/platform/utils", 31 "//foundation/ai/engine/services/common/platform/os_wrapper/utils", 32 "//third_party/bounds_checking_function/include", 33 ] 34 ldflags = [ 35 "-lstdc++", 36 "-lpthread", 37 "-lcodec", 38 ] 39 deps = [ 40 "//foundation/ai/engine/services/client/algorithm_sdk/asr:asr", 41 "//foundation/ai/engine/services/common/platform/os_wrapper/audio_loader:audio_loader", 42 "//foundation/multimedia/audio_lite/frameworks:audio_capturer_lite", 43 "//foundation/multimedia/utils/lite:media_common", 44 "//third_party/bounds_checking_function:libsec_static", 45 ] 46 output_dir = "$root_out_dir/dev_tools" 47} 48 49lite_component("kws") { 50 features = [ ":kws_app" ] 51} 52