• 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/unittest/driver"
17ohos_unittest("khdf_audio_driver_test") {
18  module_out_path = module_output_path
19
20  include_dirs = [ "//drivers/peripheral/audio/chipsets/hi3516dv300/codec/test/unittest/common" ]
21
22  defines = [ "__USER__" ]
23  sources = [
24    "//drivers/peripheral/audio/chipsets/hi3516dv300/codec/test/unittest/common/hi3516_codec_impl_test.cpp",
25    "//drivers/peripheral/audio/chipsets/hi3516dv300/codec/test/unittest/common/hi3516_codec_ops_test.cpp",
26    "//drivers/peripheral/audio/chipsets/hi3516dv300/soc/test/unittest/common/hi3516_aiao_impl_test.cpp",
27    "//drivers/peripheral/audio/chipsets/hi3516dv300/soc/test/unittest/common/hi3516_dai_ops_test.cpp",
28    "//drivers/peripheral/audio/chipsets/hi3516dv300/soc/test/unittest/common/hi3516_dma_ops_test.cpp",
29  ]
30
31  cflags = [
32    "-Wall",
33    "-Wextra",
34    "-Werror",
35    "-fsigned-char",
36    "-fno-common",
37    "-fno-strict-aliasing",
38  ]
39  if (is_standard_system) {
40    external_deps = [
41      "device_driver_framework:libhdf_test_common",
42      "device_driver_framework:libhdf_utils",
43      "hiviewdfx_hilog_native:libhilog",
44      "utils_base:utils",
45    ]
46  } else {
47    external_deps = [ "hilog:libhilog" ]
48  }
49}
50
51group("khdf_test_audio_driver") {
52  testonly = true
53  deps = [ ":khdf_audio_driver_test" ]
54}
55