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.
13#
14import("//build/lite/config/test.gni")
15
16group("lite_audio_test") {
17  if (ohos_build_type == "debug") {
18    deps = [ ":lite_audio_unittest" ]
19  }
20}
21
22if (ohos_build_type == "debug") {
23  unittest("lite_audio_unittest") {
24    output_extension = "bin"
25    output_dir = "$root_out_dir/test/unittest/audiolite"
26    sources = [ "unittest/audiolite_test.cpp" ]
27    include_dirs = [
28      "//foundation/multimedia/audio_lite/frameworks/audio_encoder/include",
29      "//foundation/multimedia/audio_lite/frameworks/audio_source/include",
30      "//foundation/multimedia/audio_lite/interfaces/kits",
31      "//foundation/multimedia/media_utils_lite/include",
32      "//drivers/peripheral/audio/interfaces/include",
33      "//drivers/peripheral/codec/interfaces/include",
34      "//drivers/peripheral/format/interfaces/include",
35      "//drivers/peripheral/display/interfaces/include",
36      "//drivers/peripheral/base",
37      "//foundation/multimedia/audio_lite/test/unittest",
38      "//foundation/multimedia/media_utils_lite/interfaces/kits",
39    ]
40
41    deps = [
42      "//foundation/multimedia/audio_lite/frameworks:audio_capturer_lite",
43      "//foundation/multimedia/media_utils_lite:media_common",
44      "//third_party/bounds_checking_function:libsec_shared",
45    ]
46  }
47}
48