1# Copyright (C) 2023-2024 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("DctsSubAudioTest") {
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/drivers/peripheral/distributed_audio/hdi_service/common/include",
25    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/utils/include/log",
26    "$base_root/foundation/distributedhardware/distributed_audio/common/include",
27  ]
28
29  sources = [
30    "daudio_automat_test.cpp",
31    "distributedaudiotest.cpp",
32  ]
33
34  deps = [ "$base_root/drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils" ]
35
36  external_deps = [
37    "c_utils:utils",
38    "distributed_hardware_fwk:distributedhardwareutils",
39    "drivers_interface_distributed_audio:libdaudio_proxy_1.0",
40    "hdf_core:libhdf_utils",
41    "hilog:libhilog",
42  ]
43
44  defines = [
45    "HI_LOG_ENABLE",
46    "DH_LOG_TAG=\"DctsSubAudioTest\"",
47    "LOG_DOMAIN=0xD004100",
48  ]
49
50  install_enable = true
51  install_images = [ chipset_base_dir ]
52  subsystem_name = "distributedhardware"
53  part_name = "distributed_audio"
54}
55