• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/test.gni")
15
16module_output_path = "hdf/audio"
17ohos_unittest("khdf_audio_adm_test") {
18  module_out_path = module_output_path
19
20  include_dirs = [
21    "//drivers/hdf_core/framework/test/unittest/model/audio/include",
22    "//drivers/hdf_core/framework/model/audio/core/test/unittest/common",
23    "//drivers/hdf_core/framework/model/audio/common/test/unittest/common",
24  ]
25
26  defines = [ "__USER__" ]
27  sources = [
28    "//drivers/hdf_core/framework/model/audio/common/test/unittest/common/audio_codec_base_test.cpp",
29    "//drivers/hdf_core/framework/model/audio/common/test/unittest/common/audio_dai_base_test.cpp",
30    "//drivers/hdf_core/framework/model/audio/common/test/unittest/common/audio_dma_base_test.cpp",
31    "//drivers/hdf_core/framework/model/audio/common/test/unittest/common/audio_dsp_base_test.cpp",
32    "//drivers/hdf_core/framework/model/audio/common/test/unittest/common/audio_platform_base_test.cpp",
33    "//drivers/hdf_core/framework/model/audio/core/test/unittest/common/audio_core_test.cpp",
34    "//drivers/hdf_core/framework/model/audio/core/test/unittest/common/audio_host_test.cpp",
35    "//drivers/hdf_core/framework/model/audio/core/test/unittest/common/audio_parse_test.cpp",
36    "//drivers/hdf_core/framework/model/audio/sapm/test/unittest/common/audio_sapm_test.cpp",
37  ]
38
39  cflags = [
40    "-Wall",
41    "-Wextra",
42    "-Werror",
43    "-fsigned-char",
44    "-fno-common",
45    "-fno-strict-aliasing",
46  ]
47
48  deps = [ "//drivers/hdf_core/adapter/build/test_common:libhdf_test_common" ]
49  if (is_standard_system) {
50    external_deps = [
51      "c_utils:utils",
52      "hdf_core:libhdf_utils",
53      "hiviewdfx_hilog_native:libhilog",
54    ]
55  } else {
56    external_deps = [ "hilog:libhilog" ]
57  }
58}
59