10704ebd2Sopenharmony_ci# Copyright (C) 2023-2024 Huawei Device Co., Ltd.
20704ebd2Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30704ebd2Sopenharmony_ci# you may not use this file except in compliance with the License.
40704ebd2Sopenharmony_ci# You may obtain a copy of the License at
50704ebd2Sopenharmony_ci#
60704ebd2Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
70704ebd2Sopenharmony_ci#
80704ebd2Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90704ebd2Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100704ebd2Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110704ebd2Sopenharmony_ci# See the License for the specific language governing permissions and
120704ebd2Sopenharmony_ci# limitations under the License.
130704ebd2Sopenharmony_ci
140704ebd2Sopenharmony_cibase_root = "../../../../../"
150704ebd2Sopenharmony_ciimport("//test/xts/tools/build/suite.gni")
160704ebd2Sopenharmony_ci
170704ebd2Sopenharmony_cimodule_output_path = "dcts/distributedhardware"
180704ebd2Sopenharmony_ci
190704ebd2Sopenharmony_ciohos_moduletest_suite("DctsSubAudioTest") {
200704ebd2Sopenharmony_ci  module_out_path = module_output_path
210704ebd2Sopenharmony_ci  include_dirs = [
220704ebd2Sopenharmony_ci    "$base_root/drivers\peripheral\audio\interfaces\include",
230704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/common/log/include",
240704ebd2Sopenharmony_ci    "$base_root/drivers/peripheral/distributed_audio/hdi_service/common/include",
250704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_hardware_fwk/utils/include/log",
260704ebd2Sopenharmony_ci    "$base_root/foundation/distributedhardware/distributed_audio/common/include",
270704ebd2Sopenharmony_ci  ]
280704ebd2Sopenharmony_ci
290704ebd2Sopenharmony_ci  sources = [
300704ebd2Sopenharmony_ci    "daudio_automat_test.cpp",
310704ebd2Sopenharmony_ci    "distributedaudiotest.cpp",
320704ebd2Sopenharmony_ci  ]
330704ebd2Sopenharmony_ci
340704ebd2Sopenharmony_ci  deps = [ "$base_root/drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils" ]
350704ebd2Sopenharmony_ci
360704ebd2Sopenharmony_ci  external_deps = [
370704ebd2Sopenharmony_ci    "c_utils:utils",
380704ebd2Sopenharmony_ci    "distributed_hardware_fwk:distributedhardwareutils",
390704ebd2Sopenharmony_ci    "drivers_interface_distributed_audio:libdaudio_proxy_1.0",
400704ebd2Sopenharmony_ci    "hdf_core:libhdf_utils",
410704ebd2Sopenharmony_ci    "hilog:libhilog",
420704ebd2Sopenharmony_ci  ]
430704ebd2Sopenharmony_ci
440704ebd2Sopenharmony_ci  defines = [
450704ebd2Sopenharmony_ci    "HI_LOG_ENABLE",
460704ebd2Sopenharmony_ci    "DH_LOG_TAG=\"DctsSubAudioTest\"",
470704ebd2Sopenharmony_ci    "LOG_DOMAIN=0xD004100",
480704ebd2Sopenharmony_ci  ]
490704ebd2Sopenharmony_ci
500704ebd2Sopenharmony_ci  install_enable = true
510704ebd2Sopenharmony_ci  install_images = [ chipset_base_dir ]
520704ebd2Sopenharmony_ci  subsystem_name = "distributedhardware"
530704ebd2Sopenharmony_ci  part_name = "distributed_audio"
540704ebd2Sopenharmony_ci}
55