• 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/ohos_var.gni")
15import("//drivers/adapter/uhdf2/uhdf.gni")
16import("//drivers/peripheral/audio/audio.gni")
17import("//test/xts/tools/build/suite.gni")
18
19###########################systemtest##############################
20module_output_path = "hdf/audio"
21
22###########################HatsHdfAudioRenderAttrTest######################
23ohos_moduletest_suite("HatsHdfAudioRenderAttrTest") {
24  module_out_path = module_output_path
25  sources = [
26    "../../../common/hdi_common/src/audio_hdi_common.cpp",
27    "src/audio_hdirender_attr_test.cpp",
28  ]
29
30  include_dirs = [
31    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
32    "//drivers/peripheral/audio/interfaces/include",
33    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
34    "//drivers/adapter/uhdf2/include/hdi",
35    "//drivers/adapter/uhdf2/shared/include",
36    "//drivers/framework/include/core",
37    "//drivers/framework/include/utils",
38    "//drivers/framework/include/osal",
39    "//drivers/framework/include",
40    "//third_party/bounds_checking_function/include",
41    "//drivers/framework/utils/include",
42    "//drivers/adapter/uhdf2/osal/include",
43    "//third_party/googletest/googletest/include/gtest",
44    "//drivers/peripheral/audio/test/systemtest/hdi/render/include",
45    "//test/xts/hats/hdf/audio/common/hdi_common/include",
46    "//test/xts/hats/hdf/audio/hdi/render/renderAttr/include",
47  ]
48  cflags = [
49    "-Wall",
50    "-Wextra",
51    "-Werror",
52    "-fsigned-char",
53    "-fno-common",
54    "-fno-strict-aliasing",
55  ]
56  deps = [
57    "//third_party/googletest:gmock_main",
58    "//third_party/googletest:gtest_main",
59  ]
60  defines = []
61  if (enable_audio_adm_so) {
62    defines += [ "AUDIO_ADM_SO" ]
63  }
64  if (enable_audio_mpi_so) {
65    defines += [ "AUDIO_MPI_SO" ]
66  }
67  if (enable_audio_adm_service) {
68    defines += [ "AUDIO_ADM_SERVICE" ]
69  }
70  if (enable_audio_mpi_service) {
71    defines += [ "AUDIO_MPI_SERVICE" ]
72  }
73}
74