• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022-2023 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
14base_root = "../../../../../"
15import("//test/xts/tools/build/suite.gni")
16
17module_output_path = "dcts/distributedhardware"
18
19ohos_moduletest_suite("SubDctsdisAudioTest") {
20  module_out_path = module_output_path
21  include_dirs = [
22    "$base_root/drivers\peripheral\audio\interfaces\include",
23    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/common/log/include",
24    "$base_root/foundation/distributedhardware/distributed_audio/hdf_service/distributed_audio/hdi_service/common/include",
25    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/utils/include/log",
26  ]
27
28  sources = [
29    "daudio_automat_test.cpp",
30    "distributedaudiotest.cpp",
31  ]
32
33  deps = [
34    "$base_root/drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils",
35    "$base_root/foundation/distributedhardware/distributed_audio/services/hdfaudioclient:daudio_client",
36  ]
37
38  external_deps = [ "hilog:libhilog" ]
39
40  defines = [
41    "HI_LOG_ENABLE",
42    "DH_LOG_TAG=\"SubDctsdisAudioTest\"",
43    "LOG_DOMAIN=0xD004100",
44  ]
45
46  install_enable = true
47  install_images = [ chipset_base_dir ]
48  subsystem_name = "distributedhardware"
49  part_name = "distributed_audio"
50}
51